Skip to content

Instantly share code, notes, and snippets.

@andyfaff
Created November 11, 2024 00:29
Show Gist options
  • Save andyfaff/b964e2ecbfe73ca5dcfbfe14adaed89a to your computer and use it in GitHub Desktop.
Save andyfaff/b964e2ecbfe73ca5dcfbfe14adaed89a to your computer and use it in GitHub Desktop.
Skipping build
SciPy from development installed path at: /Users/andrew/Documents/Andy/programming/scipy/build-install/lib/python3.12/site-packages
Running tests for scipy version:1.15.0.dev0+git20241110.b919b4a, installed at:/Users/andrew/Documents/Andy/programming/scipy/build-install/lib/python3.12/site-packages/scipy
============================= test session starts ==============================
platform darwin -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
rootdir: /Users/andrew/Documents/Andy/programming/scipy
configfile: pytest.ini
plugins: hypothesis-6.118.7
collected 6136 items / 7 deselected / 6129 selected
scipy/linalg/tests/test_basic.py ....................................... [ 0%]
........................................................................ [ 1%]
......s................................................................. [ 2%]
........................................................................ [ 4%]
........................................................................ [ 5%]
........................................................................ [ 6%]
........................................................................ [ 7%]
........................................................................ [ 8%]
........................................................................ [ 10%]
........................................................................ [ 11%]
..............................................s......................... [ 12%]
................................. [ 12%]
scipy/linalg/tests/test_blas.py ........................................ [ 13%]
...........x. [ 13%]
scipy/linalg/tests/test_cython_blas.py ...... [ 13%]
scipy/linalg/tests/test_cython_lapack.py ... [ 13%]
scipy/linalg/tests/test_cythonized_array_utils.py ...................... [ 14%]
............................ [ 14%]
scipy/linalg/tests/test_decomp.py ................F..................... [ 15%]
........................................................................ [ 16%]
........................................................................ [ 17%]
........................................................................ [ 18%]
........................................................................ [ 20%]
........................................................................ [ 21%]
...............................................................FFFFFF.FF [ 22%]
....x................................................. [ 23%]
scipy/linalg/tests/test_decomp_cholesky.py .....s....................... [ 23%]
.......................................... [ 24%]
scipy/linalg/tests/test_decomp_cossin.py ............................... [ 24%]
.................................................................s....ss [ 26%]
...sss..ssss.s....s....ss...sss..ssss.ss...ss...ss...sss..ssss.sss..sss. [ 27%]
.sss..sss..ssss.ssss.ssss.ssss.ssss.ssss......s....ss...sss..ssss.s....s [ 28%]
....ss...sss..ssss.ss...ss...ss...sss..ssss.sss..sss..sss..sss..ssss.sss [ 29%]
s.ssss.ssss.ssss.ssss.. [ 30%]
scipy/linalg/tests/test_decomp_ldl.py ............ [ 30%]
scipy/linalg/tests/test_decomp_lu.py ................................... [ 30%]
......................................................... [ 31%]
scipy/linalg/tests/test_decomp_polar.py ................................ [ 32%]
[ 32%]
scipy/linalg/tests/test_decomp_update.py ............................... [ 32%]
........................................................................ [ 33%]
........................................................................ [ 35%]
........FFF.FFF.FFF.FFFFF.FF.........FFF.FFF.FFF.FFF.FFFFFF............. [ 36%]
........................................................................ [ 37%]
........................................................................ [ 38%]
.......................................F.FFF.FFFFF...FFF.F.FFFF.FFF.FFF. [ 39%]
..F....F.FFF.FFF.FFF.FFFF............................................... [ 40%]
........................................................................ [ 42%]
..............FFFFFFFFFFFF.....FFFFFFFFFFFFFFFFFFF........ [ 43%]
scipy/linalg/tests/test_extending.py . [ 43%]
scipy/linalg/tests/test_fblas.py ....................................... [ 43%]
........................................................................ [ 44%]
.................. [ 45%]
scipy/linalg/tests/test_interpolative.py ............................... [ 45%]
................ [ 45%]
scipy/linalg/tests/test_lapack.py ...................................... [ 46%]
........................................................................ [ 47%]
........................................................................ [ 48%]
..........................s............................................. [ 50%]
........................................................................ [ 51%]
........................................................................ [ 52%]
........................................................................ [ 53%]
........................................................................ [ 54%]
........................................................................ [ 56%]
........................................................................ [ 57%]
........................................................................ [ 58%]
........................................................................ [ 59%]
........................................................................ [ 60%]
........................................................................ [ 61%]
........................................................................ [ 63%]
........................................................................ [ 64%]
........................................................................ [ 65%]
........................................................................ [ 66%]
........................................................................ [ 67%]
........................................................................ [ 68%]
........................................................................ [ 70%]
........................................................................ [ 71%]
........................................................................ [ 72%]
........................................................................ [ 73%]
........................................................................ [ 74%]
........................................................................ [ 75%]
........................................................................ [ 77%]
........................................................................ [ 78%]
..........................F.....F...F.....F.......................s.s... [ 79%]
..s.s................................................................... [ 80%]
........................................................................ [ 81%]
........................................................................ [ 83%]
........................................................................ [ 84%]
........................................................................ [ 85%]
. [ 85%]
scipy/linalg/tests/test_matfuncs.py ................xxxxx............... [ 85%]
....x...................X............................................... [ 87%]
.......................................... [ 87%]
scipy/linalg/tests/test_matmul_toeplitz.py .... [ 87%]
scipy/linalg/tests/test_procrustes.py .............. [ 88%]
scipy/linalg/tests/test_sketches.py ..... [ 88%]
scipy/linalg/tests/test_solve_toeplitz.py ......X....................... [ 88%]
.. [ 88%]
scipy/linalg/tests/test_solvers.py .................................x... [ 89%]
.x....x.xxFFF........................................................... [ 90%]
........................................................................ [ 91%]
........................................................................ [ 92%]
........................................................................ [ 94%]
........................................................................ [ 95%]
..................................................ssssssssssssssssssssss [ 96%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 97%]
sssssssssssssssssssssssssssssss [ 98%]
scipy/linalg/tests/test_special_matrices.py ............................ [ 98%]
........................................................................ [ 99%]
.................. [100%]
=================================== FAILURES ===================================
__________________________ TestEig.test_make_eigvals ___________________________
scipy/linalg/tests/test_decomp.py:326: in test_make_eigvals
self._check_gen_eig(A, B)
A = array([[0.27646426+0.56119619j, 0.80187218+0.50308317j,
0.95813935+0.01376845j],
[0.87593263+0.77282662... 0.50099513+0.36488598j],
[0.68346294+0.61539618j, 0.71270203+0.07538124j,
0.37025075+0.36882401j]])
B = array([[0.9331401 +0.14376682j, 0.65137814+0.70426097j,
0.39720258+0.70458131j],
[0.78873014+0.21879211... 0.56809865+0.44214076j],
[0.86912739+0.90931596j, 0.43617342+0.05980922j,
0.80214764+0.18428708j]])
rng = RandomState(MT19937) at 0x11693AD40
self = <scipy.linalg.tests.test_decomp.TestEig object at 0x1150b49e0>
scipy/linalg/tests/test_decomp.py:204: in _check_gen_eig
assert_allclose(val1[:, i], val2[:, i],
A = array([[0.27646426+0.56119619j, 0.80187218+0.50308317j,
0.95813935+0.01376845j],
[0.87593263+0.77282662... 0.50099513+0.36488598j],
[0.68346294+0.61539618j, 0.71270203+0.07538124j,
0.37025075+0.36882401j]])
B = array([[0.9331401 +0.14376682j, 0.65137814+0.70426097j,
0.39720258+0.70458131j],
[0.78873014+0.21879211... 0.56809865+0.44214076j],
[0.86912739+0.90931596j, 0.43617342+0.05980922j,
0.80214764+0.18428708j]])
B0 = array([[0.9331401 +0.14376682j, 0.65137814+0.70426097j,
0.39720258+0.70458131j],
[0.78873014+0.21879211... 0.56809865+0.44214076j],
[0.86912739+0.90931596j, 0.43617342+0.05980922j,
0.80214764+0.18428708j]])
atol = 1e-13
atol_homog = 1e-13
i = 0
msg = '\narray([[0.27646426+0.56119619j, 0.80187218+0.50308317j,\n 0.95813935+0.01376845j],\n [0.87593263+0.772... 0.56809865+0.44214076j],\n [0.86912739+0.90931596j, 0.43617342+0.05980922j,\n 0.80214764+0.18428708j]])'
rtol = 1e-13
rtol_homog = 1e-13
self = <scipy.linalg.tests.test_decomp.TestEig object at 0x1150b49e0>
val1 = array([[ 0.2778093 +0.11831413j, 0.05649555+0.03632154j,
1.4450086 +1.19574397j],
[ 0.06204922-0.0699... 0.8939075 +1.61597772j],
[-0.09755887-0.07836551j, 0.45273412+0.28640781j,
1.43288267+0.42784694j]])
val2 = array([[ 0.2778093 +0.11831414j, 0.05649556+0.03632154j,
1.44500857+1.19574398j],
[ 0.06204921-0.0699... 0.89390752+1.61597769j],
[-0.09755887-0.0783655j , 0.45273414+0.2864078j ,
1.43288268+0.42784697j]])
vr = array([[-0.28208078-0.30000955j, 0.24895885-0.38923656j,
0.24911172-0.13215906j],
[-0.09577809-0.2747... 0.94601237+0.10437254j],
[ 0.40630742+0.76202272j, 0.2999832 -0.43936919j,
0.07095695+0.09802758j]])
w = array([[-0.58468261-0.28244235j, 0.52094854+0.4714277j ,
1.77532798-0.14639109j],
[ 0.5235699 +0.j , 0.96725589+0.j ,
1.57795521+0.j ]])
wt = array([[-0.58468261-0.28244235j, 0.52094854+0.4714277j ,
1.77532798-0.14639109j],
[ 0.5235699 +0.j , 0.96725589+0.j ,
1.57795521+0.j ]])
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=1e-13
E
E array([[0.27646426+0.56119619j, 0.80187218+0.50308317j,
E 0.95813935+0.01376845j],
E [0.87593263+0.77282662j, 0.35781727+0.88264119j,
E 0.50099513+0.36488598j],
E [0.68346294+0.61539618j, 0.71270203+0.07538124j,
E 0.37025075+0.36882401j]])
E array([[0.9331401 +0.14376682j, 0.65137814+0.70426097j,
E 0.39720258+0.70458131j],
E [0.78873014+0.21879211j, 0.31683612+0.92486763j,
E 0.56809865+0.44214076j],
E [0.86912739+0.90931596j, 0.43617342+0.05980922j,
E 0.80214764+0.18428708j]])
E Mismatched elements: 3 / 3 (100%)
E Max absolute difference among violations: 1.02464347e-08
E Max relative difference among violations: 1.09578636e-07
E ACTUAL: array([ 0.277809+0.118314j, 0.062049-0.069954j, -0.097559-0.078366j])
E DESIRED: array([ 0.277809+0.118314j, 0.062049-0.069954j, -0.097559-0.078366j])
args = (<function assert_allclose.<locals>.compare at 0x116dd4180>, array([ 0.2778093 +0.11831413j, 0.06204922-0.06995402j,
... -0.09755887-0.07836551j]), array([ 0.2778093 +0.11831414j, 0.06204921-0.06995403j,
-0.09755887-0.0783655j ]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '\narray([[0.27646426+0.56119619j, 0.80187218+0.50308317j,\n 0.95813935+0.013768...,\n 0.80214764+0.18428708j]])', 'header': 'Not equal to tolerance rtol=1e-13, atol=1e-13', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
______________________________ TestOrdQZ.test_lhp ______________________________
scipy/linalg/tests/test_decomp.py:2578: in test_lhp
self.check_all('lhp')
self = <scipy.linalg.tests.test_decomp.TestOrdQZ object at 0x1151e8380>
scipy/linalg/tests/test_decomp.py:2575: in check_all
self.check(Ai, Bi, sort, *reti)
Ai = array([[-21.1 -22.5j , 53.5 -50.5j , -34.5 +127.5j , 7.5 +0.5j ],
[ -0.46 -7.78j, -3.5 -37.5j , -15.5....7 -17.1j , -68.5 +12.5j , -7.5 -3.5j ],
[ 5.5 +4.4j , 14.4 +43.3j , -32.5 -46.j , -19. -32.5j ]])
Bi = array([[ 1. -5.j , 1.6+1.2j, -3. +0.j , 0. -1.j ],
[ 0.8-0.6j, 0. -5.j , -4. +3.j , -2.4-3.2j],
[ 1. +0.j , 2.4+1.8j, -4. -5.j , 0. -3.j ],
[ 0. +1.j , -1.8+2.4j, 0. -4.j , 4. -5.j ]])
ret = ((array([[ 18.42240126 +3.4358705j , 75.88772994-30.1733327j ,
108.27451025-76.82846841j, 95.8650841 +35.990...]]), array([1.+0.j, 0.+0.j]), array([1., 0.]), array([[1., 0.],
[0., 1.]]), array([[1., 0.],
[0., 1.]])))
reti = (array([[ 18.42240126 +3.4358705j , 75.88772994-30.1733327j ,
108.27451025-76.82846841j, 95.8650841 +35.9909...
[-0.21659698-0.08429822j, 0.27887189+0.49425304j,
0.27754946+0.05742719j, 0.04959235-0.73561739j]]))
self = <scipy.linalg.tests.test_decomp.TestOrdQZ object at 0x1151e8380>
sort = 'lhp'
scipy/linalg/tests/test_decomp.py:2531: in check
assert_array_almost_equal(Q @ AA, A @ Z)
A = array([[-21.1 -22.5j , 53.5 -50.5j , -34.5 +127.5j , 7.5 +0.5j ],
[ -0.46 -7.78j, -3.5 -37.5j , -15.5....7 -17.1j , -68.5 +12.5j , -7.5 -3.5j ],
[ 5.5 +4.4j , 14.4 +43.3j , -32.5 -46.j , -19. -32.5j ]])
AA = array([[ 18.42240126 +3.4358705j , 75.88772994-30.1733327j ,
108.27451025-76.82846841j, 95.8650841 +35.99092... [ 0. +0.j , 0. +0.j ,
0. +0.j , 22.01064257-27.74452428j]])
B = array([[ 1. -5.j , 1.6+1.2j, -3. +0.j , 0. -1.j ],
[ 0.8-0.6j, 0. -5.j , -4. +3.j , -2.4-3.2j],
[ 1. +0.j , 2.4+1.8j, -4. -5.j , 0. -3.j ],
[ 0. +1.j , -1.8+2.4j, 0. -4.j , 4. -5.j ]])
BB = array([[ 4.60834725+0.j , 1.54749245+2.58730959j,
3.32485375+1.90749714j, 1.57470985+5.63508974j],
...,
[ 0. +0.j , 0. +0.j ,
0. +0.j , 5.52734134+0.j ]])
Id = array([[1., 0., 0., 0.],
[0., 1., 0., 0.],
[0., 0., 1., 0.],
[0., 0., 0., 1.]])
Q = array([[-0.0931709 +0.91558908j, 0.16951305+0.29810212j,
-0.10911833-0.15140205j, 0.00556395-0.02357781j],
...,
[-0.14827293-0.12772274j, 0.54954374-0.08414917j,
0.09970858-0.30507469j, -0.72385568-0.16013494j]])
Z = array([[-0.88527067+0.16165442j, -0.37294514-0.19829297j,
0.08719469-0.06411061j, 0.0049234 -0.00425184j],
...,
[-0.21659698-0.08429822j, 0.27887189+0.49425304j,
0.27754946+0.05742719j, 0.04959235-0.73561739j]])
alpha = array([18.42240126 +3.4358705j , 13.97022966-31.91704071j,
12.04763594-31.45876591j, 22.01064257-27.74452428j])
beta = array([4.60834725+0.j, 4.13853513+0.j, 6.25021152+0.j, 5.52734134+0.j])
self = <scipy.linalg.tests.test_decomp.TestOrdQZ object at 0x1151e8380>
sort = 'lhp'
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
args = (array([[ -4.86227729+16.54722628j, 32.43851925+71.0474536j ,
50.85869417+91.19579346j, -34.41352748+73.3616...[ -2.29270516 -2.86240561j, -10.11445779-23.93409469j,
-61.48254671-13.89345597j, -40.68513026-20.10859138j]]))
func = <function assert_array_almost_equal at 0x104a1b420>
kwds = {}
self = <contextlib._GeneratorContextManager object at 0x104a526f0>
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/site-packages/numpy/_utils/__init__.py:85: in wrapper
return fun(*args, **kwargs)
args = (array([[ -4.86227729+16.54722628j, 32.43851925+71.0474536j ,
50.85869417+91.19579346j, -34.41352748+73.3616...[ -2.29270516 -2.86240561j, -10.11445779-23.93409469j,
-61.48254671-13.89345597j, -40.68513026-20.10859138j]]))
dep_version = '2.0.0'
fun = <function assert_array_almost_equal at 0x104a1b380>
kwargs = {}
new_name = 'desired'
new_names = ['actual', 'desired']
old_name = 'y'
old_names = ['x', 'y']
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Arrays are not almost equal to 6 decimals
E
E Mismatched elements: 5 / 16 (31.2%)
E Max absolute difference among violations: 3.63393137e-06
E Max relative difference among violations: 9.38163202e-08
E ACTUAL: array([[ -4.862277+16.547226j, 32.438519+71.047454j,
E 50.858694+91.195793j, -34.413527+73.361697j],
E [ 0.347466 +5.666454j, -2.459573+19.845278j,...
E DESIRED: array([[ -4.862277+16.547226j, 32.43852 +71.047454j,
E 50.858694+91.195793j, -34.413527+73.361697j],
E [ 0.347466 +5.666454j, -2.459574+19.845278j,...
args = (<function assert_array_almost_equal.<locals>.compare at 0x116b7a340>, array([[ -4.86227729+16.54722628j, 32.43851925...[ -2.29270516 -2.86240561j, -10.11445779-23.93409469j,
-61.48254671-13.89345597j, -40.68513026-20.10859138j]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'err_msg': '', 'header': 'Arrays are not almost equal to 6 decimals', 'precision': 6, 'verbose': True}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
______________________________ TestOrdQZ.test_rhp ______________________________
scipy/linalg/tests/test_decomp.py:2581: in test_rhp
self.check_all('rhp')
self = <scipy.linalg.tests.test_decomp.TestOrdQZ object at 0x1151e8560>
scipy/linalg/tests/test_decomp.py:2575: in check_all
self.check(Ai, Bi, sort, *reti)
Ai = array([[-21.1 -22.5j , 53.5 -50.5j , -34.5 +127.5j , 7.5 +0.5j ],
[ -0.46 -7.78j, -3.5 -37.5j , -15.5....7 -17.1j , -68.5 +12.5j , -7.5 -3.5j ],
[ 5.5 +4.4j , 14.4 +43.3j , -32.5 -46.j , -19. -32.5j ]])
Bi = array([[ 1. -5.j , 1.6+1.2j, -3. +0.j , 0. -1.j ],
[ 0.8-0.6j, 0. -5.j , -4. +3.j , -2.4-3.2j],
[ 1. +0.j , 2.4+1.8j, -4. -5.j , 0. -3.j ],
[ 0. +1.j , -1.8+2.4j, 0. -4.j , 4. -5.j ]])
ret = ((array([[ 18.42240126 +3.4358705j , 75.88772994-30.1733327j ,
108.27451025-76.82846841j, 95.8650841 +35.990...]]), array([1.+0.j, 0.+0.j]), array([1., 0.]), array([[1., 0.],
[0., 1.]]), array([[1., 0.],
[0., 1.]])))
reti = (array([[ 18.42240126 +3.4358705j , 75.88772994-30.1733327j ,
108.27451025-76.82846841j, 95.8650841 +35.9909...
[-0.21659698-0.08429822j, 0.27887189+0.49425304j,
0.27754946+0.05742719j, 0.04959235-0.73561739j]]))
self = <scipy.linalg.tests.test_decomp.TestOrdQZ object at 0x1151e8560>
sort = 'rhp'
scipy/linalg/tests/test_decomp.py:2531: in check
assert_array_almost_equal(Q @ AA, A @ Z)
A = array([[-21.1 -22.5j , 53.5 -50.5j , -34.5 +127.5j , 7.5 +0.5j ],
[ -0.46 -7.78j, -3.5 -37.5j , -15.5....7 -17.1j , -68.5 +12.5j , -7.5 -3.5j ],
[ 5.5 +4.4j , 14.4 +43.3j , -32.5 -46.j , -19. -32.5j ]])
AA = array([[ 18.42240126 +3.4358705j , 75.88772994-30.1733327j ,
108.27451025-76.82846841j, 95.8650841 +35.99092... [ 0. +0.j , 0. +0.j ,
0. +0.j , 22.01064257-27.74452428j]])
B = array([[ 1. -5.j , 1.6+1.2j, -3. +0.j , 0. -1.j ],
[ 0.8-0.6j, 0. -5.j , -4. +3.j , -2.4-3.2j],
[ 1. +0.j , 2.4+1.8j, -4. -5.j , 0. -3.j ],
[ 0. +1.j , -1.8+2.4j, 0. -4.j , 4. -5.j ]])
BB = array([[ 4.60834725+0.j , 1.54749245+2.58730959j,
3.32485375+1.90749714j, 1.57470985+5.63508974j],
...,
[ 0. +0.j , 0. +0.j ,
0. +0.j , 5.52734134+0.j ]])
Id = array([[1., 0., 0., 0.],
[0., 1., 0., 0.],
[0., 0., 1., 0.],
[0., 0., 0., 1.]])
Q = array([[-0.0931709 +0.91558908j, 0.16951305+0.29810212j,
-0.10911833-0.15140205j, 0.00556395-0.02357781j],
...,
[-0.14827293-0.12772274j, 0.54954374-0.08414917j,
0.09970858-0.30507469j, -0.72385568-0.16013494j]])
Z = array([[-0.88527067+0.16165442j, -0.37294514-0.19829297j,
0.08719469-0.06411061j, 0.0049234 -0.00425184j],
...,
[-0.21659698-0.08429822j, 0.27887189+0.49425304j,
0.27754946+0.05742719j, 0.04959235-0.73561739j]])
alpha = array([18.42240126 +3.4358705j , 13.97022966-31.91704071j,
12.04763594-31.45876591j, 22.01064257-27.74452428j])
beta = array([4.60834725+0.j, 4.13853513+0.j, 6.25021152+0.j, 5.52734134+0.j])
self = <scipy.linalg.tests.test_decomp.TestOrdQZ object at 0x1151e8560>
sort = 'rhp'
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
args = (array([[ -4.86227729+16.54722628j, 32.43851925+71.0474536j ,
50.85869417+91.19579346j, -34.41352748+73.3616...[ -2.29270516 -2.86240561j, -10.11445779-23.93409469j,
-61.48254671-13.89345597j, -40.68513026-20.10859138j]]))
func = <function assert_array_almost_equal at 0x104a1b420>
kwds = {}
self = <contextlib._GeneratorContextManager object at 0x104a526f0>
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/site-packages/numpy/_utils/__init__.py:85: in wrapper
return fun(*args, **kwargs)
args = (array([[ -4.86227729+16.54722628j, 32.43851925+71.0474536j ,
50.85869417+91.19579346j, -34.41352748+73.3616...[ -2.29270516 -2.86240561j, -10.11445779-23.93409469j,
-61.48254671-13.89345597j, -40.68513026-20.10859138j]]))
dep_version = '2.0.0'
fun = <function assert_array_almost_equal at 0x104a1b380>
kwargs = {}
new_name = 'desired'
new_names = ['actual', 'desired']
old_name = 'y'
old_names = ['x', 'y']
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Arrays are not almost equal to 6 decimals
E
E Mismatched elements: 5 / 16 (31.2%)
E Max absolute difference among violations: 3.63393137e-06
E Max relative difference among violations: 9.38163202e-08
E ACTUAL: array([[ -4.862277+16.547226j, 32.438519+71.047454j,
E 50.858694+91.195793j, -34.413527+73.361697j],
E [ 0.347466 +5.666454j, -2.459573+19.845278j,...
E DESIRED: array([[ -4.862277+16.547226j, 32.43852 +71.047454j,
E 50.858694+91.195793j, -34.413527+73.361697j],
E [ 0.347466 +5.666454j, -2.459574+19.845278j,...
args = (<function assert_array_almost_equal.<locals>.compare at 0x116b7a7a0>, array([[ -4.86227729+16.54722628j, 32.43851925...[ -2.29270516 -2.86240561j, -10.11445779-23.93409469j,
-61.48254671-13.89345597j, -40.68513026-20.10859138j]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'err_msg': '', 'header': 'Arrays are not almost equal to 6 decimals', 'precision': 6, 'verbose': True}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
______________________________ TestOrdQZ.test_iuc ______________________________
scipy/linalg/tests/test_decomp.py:2584: in test_iuc
self.check_all('iuc')
self = <scipy.linalg.tests.test_decomp.TestOrdQZ object at 0x1151e8740>
scipy/linalg/tests/test_decomp.py:2575: in check_all
self.check(Ai, Bi, sort, *reti)
Ai = array([[-21.1 -22.5j , 53.5 -50.5j , -34.5 +127.5j , 7.5 +0.5j ],
[ -0.46 -7.78j, -3.5 -37.5j , -15.5....7 -17.1j , -68.5 +12.5j , -7.5 -3.5j ],
[ 5.5 +4.4j , 14.4 +43.3j , -32.5 -46.j , -19. -32.5j ]])
Bi = array([[ 1. -5.j , 1.6+1.2j, -3. +0.j , 0. -1.j ],
[ 0.8-0.6j, 0. -5.j , -4. +3.j , -2.4-3.2j],
[ 1. +0.j , 2.4+1.8j, -4. -5.j , 0. -3.j ],
[ 0. +1.j , -1.8+2.4j, 0. -4.j , 4. -5.j ]])
ret = ((array([[ 18.42240126 +3.4358705j , 75.88772994-30.1733327j ,
108.27451025-76.82846841j, 95.8650841 +35.990...]]), array([1.+0.j, 0.+0.j]), array([1., 0.]), array([[1., 0.],
[0., 1.]]), array([[1., 0.],
[0., 1.]])))
reti = (array([[ 18.42240126 +3.4358705j , 75.88772994-30.1733327j ,
108.27451025-76.82846841j, 95.8650841 +35.9909...
[-0.21659698-0.08429822j, 0.27887189+0.49425304j,
0.27754946+0.05742719j, 0.04959235-0.73561739j]]))
self = <scipy.linalg.tests.test_decomp.TestOrdQZ object at 0x1151e8740>
sort = 'iuc'
scipy/linalg/tests/test_decomp.py:2531: in check
assert_array_almost_equal(Q @ AA, A @ Z)
A = array([[-21.1 -22.5j , 53.5 -50.5j , -34.5 +127.5j , 7.5 +0.5j ],
[ -0.46 -7.78j, -3.5 -37.5j , -15.5....7 -17.1j , -68.5 +12.5j , -7.5 -3.5j ],
[ 5.5 +4.4j , 14.4 +43.3j , -32.5 -46.j , -19. -32.5j ]])
AA = array([[ 18.42240126 +3.4358705j , 75.88772994-30.1733327j ,
108.27451025-76.82846841j, 95.8650841 +35.99092... [ 0. +0.j , 0. +0.j ,
0. +0.j , 22.01064257-27.74452428j]])
B = array([[ 1. -5.j , 1.6+1.2j, -3. +0.j , 0. -1.j ],
[ 0.8-0.6j, 0. -5.j , -4. +3.j , -2.4-3.2j],
[ 1. +0.j , 2.4+1.8j, -4. -5.j , 0. -3.j ],
[ 0. +1.j , -1.8+2.4j, 0. -4.j , 4. -5.j ]])
BB = array([[ 4.60834725+0.j , 1.54749245+2.58730959j,
3.32485375+1.90749714j, 1.57470985+5.63508974j],
...,
[ 0. +0.j , 0. +0.j ,
0. +0.j , 5.52734134+0.j ]])
Id = array([[1., 0., 0., 0.],
[0., 1., 0., 0.],
[0., 0., 1., 0.],
[0., 0., 0., 1.]])
Q = array([[-0.0931709 +0.91558908j, 0.16951305+0.29810212j,
-0.10911833-0.15140205j, 0.00556395-0.02357781j],
...,
[-0.14827293-0.12772274j, 0.54954374-0.08414917j,
0.09970858-0.30507469j, -0.72385568-0.16013494j]])
Z = array([[-0.88527067+0.16165442j, -0.37294514-0.19829297j,
0.08719469-0.06411061j, 0.0049234 -0.00425184j],
...,
[-0.21659698-0.08429822j, 0.27887189+0.49425304j,
0.27754946+0.05742719j, 0.04959235-0.73561739j]])
alpha = array([18.42240126 +3.4358705j , 13.97022966-31.91704071j,
12.04763594-31.45876591j, 22.01064257-27.74452428j])
beta = array([4.60834725+0.j, 4.13853513+0.j, 6.25021152+0.j, 5.52734134+0.j])
self = <scipy.linalg.tests.test_decomp.TestOrdQZ object at 0x1151e8740>
sort = 'iuc'
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
args = (array([[ -4.86227729+16.54722628j, 32.43851925+71.0474536j ,
50.85869417+91.19579346j, -34.41352748+73.3616...[ -2.29270516 -2.86240561j, -10.11445779-23.93409469j,
-61.48254671-13.89345597j, -40.68513026-20.10859138j]]))
func = <function assert_array_almost_equal at 0x104a1b420>
kwds = {}
self = <contextlib._GeneratorContextManager object at 0x104a526f0>
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/site-packages/numpy/_utils/__init__.py:85: in wrapper
return fun(*args, **kwargs)
args = (array([[ -4.86227729+16.54722628j, 32.43851925+71.0474536j ,
50.85869417+91.19579346j, -34.41352748+73.3616...[ -2.29270516 -2.86240561j, -10.11445779-23.93409469j,
-61.48254671-13.89345597j, -40.68513026-20.10859138j]]))
dep_version = '2.0.0'
fun = <function assert_array_almost_equal at 0x104a1b380>
kwargs = {}
new_name = 'desired'
new_names = ['actual', 'desired']
old_name = 'y'
old_names = ['x', 'y']
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Arrays are not almost equal to 6 decimals
E
E Mismatched elements: 5 / 16 (31.2%)
E Max absolute difference among violations: 3.63393137e-06
E Max relative difference among violations: 9.38163202e-08
E ACTUAL: array([[ -4.862277+16.547226j, 32.438519+71.047454j,
E 50.858694+91.195793j, -34.413527+73.361697j],
E [ 0.347466 +5.666454j, -2.459573+19.845278j,...
E DESIRED: array([[ -4.862277+16.547226j, 32.43852 +71.047454j,
E 50.858694+91.195793j, -34.413527+73.361697j],
E [ 0.347466 +5.666454j, -2.459574+19.845278j,...
args = (<function assert_array_almost_equal.<locals>.compare at 0x116b7b100>, array([[ -4.86227729+16.54722628j, 32.43851925...[ -2.29270516 -2.86240561j, -10.11445779-23.93409469j,
-61.48254671-13.89345597j, -40.68513026-20.10859138j]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'err_msg': '', 'header': 'Arrays are not almost equal to 6 decimals', 'precision': 6, 'verbose': True}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
______________________________ TestOrdQZ.test_ouc ______________________________
scipy/linalg/tests/test_decomp.py:2587: in test_ouc
self.check_all('ouc')
self = <scipy.linalg.tests.test_decomp.TestOrdQZ object at 0x1151e8920>
scipy/linalg/tests/test_decomp.py:2575: in check_all
self.check(Ai, Bi, sort, *reti)
Ai = array([[-21.1 -22.5j , 53.5 -50.5j , -34.5 +127.5j , 7.5 +0.5j ],
[ -0.46 -7.78j, -3.5 -37.5j , -15.5....7 -17.1j , -68.5 +12.5j , -7.5 -3.5j ],
[ 5.5 +4.4j , 14.4 +43.3j , -32.5 -46.j , -19. -32.5j ]])
Bi = array([[ 1. -5.j , 1.6+1.2j, -3. +0.j , 0. -1.j ],
[ 0.8-0.6j, 0. -5.j , -4. +3.j , -2.4-3.2j],
[ 1. +0.j , 2.4+1.8j, -4. -5.j , 0. -3.j ],
[ 0. +1.j , -1.8+2.4j, 0. -4.j , 4. -5.j ]])
ret = ((array([[ 18.42240126 +3.4358705j , 75.88772994-30.1733327j ,
108.27451025-76.82846841j, 95.8650841 +35.990...]]), array([1.+0.j, 0.+0.j]), array([1., 0.]), array([[1., 0.],
[0., 1.]]), array([[1., 0.],
[0., 1.]])))
reti = (array([[ 18.42240126 +3.4358705j , 75.88772994-30.1733327j ,
108.27451025-76.82846841j, 95.8650841 +35.9909...
[-0.21659698-0.08429822j, 0.27887189+0.49425304j,
0.27754946+0.05742719j, 0.04959235-0.73561739j]]))
self = <scipy.linalg.tests.test_decomp.TestOrdQZ object at 0x1151e8920>
sort = 'ouc'
scipy/linalg/tests/test_decomp.py:2531: in check
assert_array_almost_equal(Q @ AA, A @ Z)
A = array([[-21.1 -22.5j , 53.5 -50.5j , -34.5 +127.5j , 7.5 +0.5j ],
[ -0.46 -7.78j, -3.5 -37.5j , -15.5....7 -17.1j , -68.5 +12.5j , -7.5 -3.5j ],
[ 5.5 +4.4j , 14.4 +43.3j , -32.5 -46.j , -19. -32.5j ]])
AA = array([[ 18.42240126 +3.4358705j , 75.88772994-30.1733327j ,
108.27451025-76.82846841j, 95.8650841 +35.99092... [ 0. +0.j , 0. +0.j ,
0. +0.j , 22.01064257-27.74452428j]])
B = array([[ 1. -5.j , 1.6+1.2j, -3. +0.j , 0. -1.j ],
[ 0.8-0.6j, 0. -5.j , -4. +3.j , -2.4-3.2j],
[ 1. +0.j , 2.4+1.8j, -4. -5.j , 0. -3.j ],
[ 0. +1.j , -1.8+2.4j, 0. -4.j , 4. -5.j ]])
BB = array([[ 4.60834725+0.j , 1.54749245+2.58730959j,
3.32485375+1.90749714j, 1.57470985+5.63508974j],
...,
[ 0. +0.j , 0. +0.j ,
0. +0.j , 5.52734134+0.j ]])
Id = array([[1., 0., 0., 0.],
[0., 1., 0., 0.],
[0., 0., 1., 0.],
[0., 0., 0., 1.]])
Q = array([[-0.0931709 +0.91558908j, 0.16951305+0.29810212j,
-0.10911833-0.15140205j, 0.00556395-0.02357781j],
...,
[-0.14827293-0.12772274j, 0.54954374-0.08414917j,
0.09970858-0.30507469j, -0.72385568-0.16013494j]])
Z = array([[-0.88527067+0.16165442j, -0.37294514-0.19829297j,
0.08719469-0.06411061j, 0.0049234 -0.00425184j],
...,
[-0.21659698-0.08429822j, 0.27887189+0.49425304j,
0.27754946+0.05742719j, 0.04959235-0.73561739j]])
alpha = array([18.42240126 +3.4358705j , 13.97022966-31.91704071j,
12.04763594-31.45876591j, 22.01064257-27.74452428j])
beta = array([4.60834725+0.j, 4.13853513+0.j, 6.25021152+0.j, 5.52734134+0.j])
self = <scipy.linalg.tests.test_decomp.TestOrdQZ object at 0x1151e8920>
sort = 'ouc'
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
args = (array([[ -4.86227729+16.54722628j, 32.43851925+71.0474536j ,
50.85869417+91.19579346j, -34.41352748+73.3616...[ -2.29270516 -2.86240561j, -10.11445779-23.93409469j,
-61.48254671-13.89345597j, -40.68513026-20.10859138j]]))
func = <function assert_array_almost_equal at 0x104a1b420>
kwds = {}
self = <contextlib._GeneratorContextManager object at 0x104a526f0>
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/site-packages/numpy/_utils/__init__.py:85: in wrapper
return fun(*args, **kwargs)
args = (array([[ -4.86227729+16.54722628j, 32.43851925+71.0474536j ,
50.85869417+91.19579346j, -34.41352748+73.3616...[ -2.29270516 -2.86240561j, -10.11445779-23.93409469j,
-61.48254671-13.89345597j, -40.68513026-20.10859138j]]))
dep_version = '2.0.0'
fun = <function assert_array_almost_equal at 0x104a1b380>
kwargs = {}
new_name = 'desired'
new_names = ['actual', 'desired']
old_name = 'y'
old_names = ['x', 'y']
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Arrays are not almost equal to 6 decimals
E
E Mismatched elements: 5 / 16 (31.2%)
E Max absolute difference among violations: 3.63393137e-06
E Max relative difference among violations: 9.38163202e-08
E ACTUAL: array([[ -4.862277+16.547226j, 32.438519+71.047454j,
E 50.858694+91.195793j, -34.413527+73.361697j],
E [ 0.347466 +5.666454j, -2.459573+19.845278j,...
E DESIRED: array([[ -4.862277+16.547226j, 32.43852 +71.047454j,
E 50.858694+91.195793j, -34.413527+73.361697j],
E [ 0.347466 +5.666454j, -2.459574+19.845278j,...
args = (<function assert_array_almost_equal.<locals>.compare at 0x116b7b7e0>, array([[ -4.86227729+16.54722628j, 32.43851925...[ -2.29270516 -2.86240561j, -10.11445779-23.93409469j,
-61.48254671-13.89345597j, -40.68513026-20.10859138j]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'err_msg': '', 'header': 'Arrays are not almost equal to 6 decimals', 'precision': 6, 'verbose': True}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
______________________________ TestOrdQZ.test_ref ______________________________
scipy/linalg/tests/test_decomp.py:2598: in test_ref
self.check_all(sort)
self = <scipy.linalg.tests.test_decomp.TestOrdQZ object at 0x1151e8b00>
sort = <function TestOrdQZ.test_ref.<locals>.sort at 0x116b7ba60>
scipy/linalg/tests/test_decomp.py:2575: in check_all
self.check(Ai, Bi, sort, *reti)
Ai = array([[-21.1 -22.5j , 53.5 -50.5j , -34.5 +127.5j , 7.5 +0.5j ],
[ -0.46 -7.78j, -3.5 -37.5j , -15.5....7 -17.1j , -68.5 +12.5j , -7.5 -3.5j ],
[ 5.5 +4.4j , 14.4 +43.3j , -32.5 -46.j , -19. -32.5j ]])
Bi = array([[ 1. -5.j , 1.6+1.2j, -3. +0.j , 0. -1.j ],
[ 0.8-0.6j, 0. -5.j , -4. +3.j , -2.4-3.2j],
[ 1. +0.j , 2.4+1.8j, -4. -5.j , 0. -3.j ],
[ 0. +1.j , -1.8+2.4j, 0. -4.j , 4. -5.j ]])
ret = ((array([[ 18.42240126 +3.4358705j , 75.88772994-30.1733327j ,
108.27451025-76.82846841j, 95.8650841 +35.990...]]), array([1.+0.j, 0.+0.j]), array([1., 0.]), array([[1., 0.],
[0., 1.]]), array([[1., 0.],
[0., 1.]])))
reti = (array([[ 18.42240126 +3.4358705j , 75.88772994-30.1733327j ,
108.27451025-76.82846841j, 95.8650841 +35.9909...
[-0.21659698-0.08429822j, 0.27887189+0.49425304j,
0.27754946+0.05742719j, 0.04959235-0.73561739j]]))
self = <scipy.linalg.tests.test_decomp.TestOrdQZ object at 0x1151e8b00>
sort = <function TestOrdQZ.test_ref.<locals>.sort at 0x116b7ba60>
scipy/linalg/tests/test_decomp.py:2531: in check
assert_array_almost_equal(Q @ AA, A @ Z)
A = array([[-21.1 -22.5j , 53.5 -50.5j , -34.5 +127.5j , 7.5 +0.5j ],
[ -0.46 -7.78j, -3.5 -37.5j , -15.5....7 -17.1j , -68.5 +12.5j , -7.5 -3.5j ],
[ 5.5 +4.4j , 14.4 +43.3j , -32.5 -46.j , -19. -32.5j ]])
AA = array([[ 18.42240126 +3.4358705j , 75.88772994-30.1733327j ,
108.27451025-76.82846841j, 95.8650841 +35.99092... [ 0. +0.j , 0. +0.j ,
0. +0.j , 22.01064257-27.74452428j]])
B = array([[ 1. -5.j , 1.6+1.2j, -3. +0.j , 0. -1.j ],
[ 0.8-0.6j, 0. -5.j , -4. +3.j , -2.4-3.2j],
[ 1. +0.j , 2.4+1.8j, -4. -5.j , 0. -3.j ],
[ 0. +1.j , -1.8+2.4j, 0. -4.j , 4. -5.j ]])
BB = array([[ 4.60834725+0.j , 1.54749245+2.58730959j,
3.32485375+1.90749714j, 1.57470985+5.63508974j],
...,
[ 0. +0.j , 0. +0.j ,
0. +0.j , 5.52734134+0.j ]])
Id = array([[1., 0., 0., 0.],
[0., 1., 0., 0.],
[0., 0., 1., 0.],
[0., 0., 0., 1.]])
Q = array([[-0.0931709 +0.91558908j, 0.16951305+0.29810212j,
-0.10911833-0.15140205j, 0.00556395-0.02357781j],
...,
[-0.14827293-0.12772274j, 0.54954374-0.08414917j,
0.09970858-0.30507469j, -0.72385568-0.16013494j]])
Z = array([[-0.88527067+0.16165442j, -0.37294514-0.19829297j,
0.08719469-0.06411061j, 0.0049234 -0.00425184j],
...,
[-0.21659698-0.08429822j, 0.27887189+0.49425304j,
0.27754946+0.05742719j, 0.04959235-0.73561739j]])
alpha = array([18.42240126 +3.4358705j , 13.97022966-31.91704071j,
12.04763594-31.45876591j, 22.01064257-27.74452428j])
beta = array([4.60834725+0.j, 4.13853513+0.j, 6.25021152+0.j, 5.52734134+0.j])
self = <scipy.linalg.tests.test_decomp.TestOrdQZ object at 0x1151e8b00>
sort = <function TestOrdQZ.test_ref.<locals>.sort at 0x116b7ba60>
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
args = (array([[ -4.86227729+16.54722628j, 32.43851925+71.0474536j ,
50.85869417+91.19579346j, -34.41352748+73.3616...[ -2.29270516 -2.86240561j, -10.11445779-23.93409469j,
-61.48254671-13.89345597j, -40.68513026-20.10859138j]]))
func = <function assert_array_almost_equal at 0x104a1b420>
kwds = {}
self = <contextlib._GeneratorContextManager object at 0x104a526f0>
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/site-packages/numpy/_utils/__init__.py:85: in wrapper
return fun(*args, **kwargs)
args = (array([[ -4.86227729+16.54722628j, 32.43851925+71.0474536j ,
50.85869417+91.19579346j, -34.41352748+73.3616...[ -2.29270516 -2.86240561j, -10.11445779-23.93409469j,
-61.48254671-13.89345597j, -40.68513026-20.10859138j]]))
dep_version = '2.0.0'
fun = <function assert_array_almost_equal at 0x104a1b380>
kwargs = {}
new_name = 'desired'
new_names = ['actual', 'desired']
old_name = 'y'
old_names = ['x', 'y']
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Arrays are not almost equal to 6 decimals
E
E Mismatched elements: 5 / 16 (31.2%)
E Max absolute difference among violations: 3.63393137e-06
E Max relative difference among violations: 9.38163202e-08
E ACTUAL: array([[ -4.862277+16.547226j, 32.438519+71.047454j,
E 50.858694+91.195793j, -34.413527+73.361697j],
E [ 0.347466 +5.666454j, -2.459573+19.845278j,...
E DESIRED: array([[ -4.862277+16.547226j, 32.43852 +71.047454j,
E 50.858694+91.195793j, -34.413527+73.361697j],
E [ 0.347466 +5.666454j, -2.459574+19.845278j,...
args = (<function assert_array_almost_equal.<locals>.compare at 0x116b7b9c0>, array([[ -4.86227729+16.54722628j, 32.43851925...[ -2.29270516 -2.86240561j, -10.11445779-23.93409469j,
-61.48254671-13.89345597j, -40.68513026-20.10859138j]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'err_msg': '', 'header': 'Arrays are not almost equal to 6 decimals', 'precision': 6, 'verbose': True}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
______________________________ TestOrdQZ.test_cef ______________________________
scipy/linalg/tests/test_decomp.py:2609: in test_cef
self.check_all(sort)
self = <scipy.linalg.tests.test_decomp.TestOrdQZ object at 0x1151e8ce0>
sort = <function TestOrdQZ.test_cef.<locals>.sort at 0x116b0c2c0>
scipy/linalg/tests/test_decomp.py:2575: in check_all
self.check(Ai, Bi, sort, *reti)
Ai = array([[-21.1 -22.5j , 53.5 -50.5j , -34.5 +127.5j , 7.5 +0.5j ],
[ -0.46 -7.78j, -3.5 -37.5j , -15.5....7 -17.1j , -68.5 +12.5j , -7.5 -3.5j ],
[ 5.5 +4.4j , 14.4 +43.3j , -32.5 -46.j , -19. -32.5j ]])
Bi = array([[ 1. -5.j , 1.6+1.2j, -3. +0.j , 0. -1.j ],
[ 0.8-0.6j, 0. -5.j , -4. +3.j , -2.4-3.2j],
[ 1. +0.j , 2.4+1.8j, -4. -5.j , 0. -3.j ],
[ 0. +1.j , -1.8+2.4j, 0. -4.j , 4. -5.j ]])
ret = ((array([[ 18.42240126 +3.4358705j , 75.88772994-30.1733327j ,
108.27451025-76.82846841j, 95.8650841 +35.990...]]), array([1.+0.j, 0.+0.j]), array([1., 0.]), array([[1., 0.],
[0., 1.]]), array([[1., 0.],
[0., 1.]])))
reti = (array([[ 18.42240126 +3.4358705j , 75.88772994-30.1733327j ,
108.27451025-76.82846841j, 95.8650841 +35.9909...
[-0.21659698-0.08429822j, 0.27887189+0.49425304j,
0.27754946+0.05742719j, 0.04959235-0.73561739j]]))
self = <scipy.linalg.tests.test_decomp.TestOrdQZ object at 0x1151e8ce0>
sort = <function TestOrdQZ.test_cef.<locals>.sort at 0x116b0c2c0>
scipy/linalg/tests/test_decomp.py:2531: in check
assert_array_almost_equal(Q @ AA, A @ Z)
A = array([[-21.1 -22.5j , 53.5 -50.5j , -34.5 +127.5j , 7.5 +0.5j ],
[ -0.46 -7.78j, -3.5 -37.5j , -15.5....7 -17.1j , -68.5 +12.5j , -7.5 -3.5j ],
[ 5.5 +4.4j , 14.4 +43.3j , -32.5 -46.j , -19. -32.5j ]])
AA = array([[ 18.42240126 +3.4358705j , 75.88772994-30.1733327j ,
108.27451025-76.82846841j, 95.8650841 +35.99092... [ 0. +0.j , 0. +0.j ,
0. +0.j , 22.01064257-27.74452428j]])
B = array([[ 1. -5.j , 1.6+1.2j, -3. +0.j , 0. -1.j ],
[ 0.8-0.6j, 0. -5.j , -4. +3.j , -2.4-3.2j],
[ 1. +0.j , 2.4+1.8j, -4. -5.j , 0. -3.j ],
[ 0. +1.j , -1.8+2.4j, 0. -4.j , 4. -5.j ]])
BB = array([[ 4.60834725+0.j , 1.54749245+2.58730959j,
3.32485375+1.90749714j, 1.57470985+5.63508974j],
...,
[ 0. +0.j , 0. +0.j ,
0. +0.j , 5.52734134+0.j ]])
Id = array([[1., 0., 0., 0.],
[0., 1., 0., 0.],
[0., 0., 1., 0.],
[0., 0., 0., 1.]])
Q = array([[-0.0931709 +0.91558908j, 0.16951305+0.29810212j,
-0.10911833-0.15140205j, 0.00556395-0.02357781j],
...,
[-0.14827293-0.12772274j, 0.54954374-0.08414917j,
0.09970858-0.30507469j, -0.72385568-0.16013494j]])
Z = array([[-0.88527067+0.16165442j, -0.37294514-0.19829297j,
0.08719469-0.06411061j, 0.0049234 -0.00425184j],
...,
[-0.21659698-0.08429822j, 0.27887189+0.49425304j,
0.27754946+0.05742719j, 0.04959235-0.73561739j]])
alpha = array([18.42240126 +3.4358705j , 13.97022966-31.91704071j,
12.04763594-31.45876591j, 22.01064257-27.74452428j])
beta = array([4.60834725+0.j, 4.13853513+0.j, 6.25021152+0.j, 5.52734134+0.j])
self = <scipy.linalg.tests.test_decomp.TestOrdQZ object at 0x1151e8ce0>
sort = <function TestOrdQZ.test_cef.<locals>.sort at 0x116b0c2c0>
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
args = (array([[ -4.86227729+16.54722628j, 32.43851925+71.0474536j ,
50.85869417+91.19579346j, -34.41352748+73.3616...[ -2.29270516 -2.86240561j, -10.11445779-23.93409469j,
-61.48254671-13.89345597j, -40.68513026-20.10859138j]]))
func = <function assert_array_almost_equal at 0x104a1b420>
kwds = {}
self = <contextlib._GeneratorContextManager object at 0x104a526f0>
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/site-packages/numpy/_utils/__init__.py:85: in wrapper
return fun(*args, **kwargs)
args = (array([[ -4.86227729+16.54722628j, 32.43851925+71.0474536j ,
50.85869417+91.19579346j, -34.41352748+73.3616...[ -2.29270516 -2.86240561j, -10.11445779-23.93409469j,
-61.48254671-13.89345597j, -40.68513026-20.10859138j]]))
dep_version = '2.0.0'
fun = <function assert_array_almost_equal at 0x104a1b380>
kwargs = {}
new_name = 'desired'
new_names = ['actual', 'desired']
old_name = 'y'
old_names = ['x', 'y']
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Arrays are not almost equal to 6 decimals
E
E Mismatched elements: 5 / 16 (31.2%)
E Max absolute difference among violations: 3.63393137e-06
E Max relative difference among violations: 9.38163202e-08
E ACTUAL: array([[ -4.862277+16.547226j, 32.438519+71.047454j,
E 50.858694+91.195793j, -34.413527+73.361697j],
E [ 0.347466 +5.666454j, -2.459573+19.845278j,...
E DESIRED: array([[ -4.862277+16.547226j, 32.43852 +71.047454j,
E 50.858694+91.195793j, -34.413527+73.361697j],
E [ 0.347466 +5.666454j, -2.459574+19.845278j,...
args = (<function assert_array_almost_equal.<locals>.compare at 0x116b0c400>, array([[ -4.86227729+16.54722628j, 32.43851925...[ -2.29270516 -2.86240561j, -10.11445779-23.93409469j,
-61.48254671-13.89345597j, -40.68513026-20.10859138j]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'err_msg': '', 'header': 'Arrays are not almost equal to 6 decimals', 'precision': 6, 'verbose': True}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_________________________ TestOrdQZ.test_sort_explicit _________________________
scipy/linalg/tests/test_decomp.py:2656: in test_sort_explicit
_, _, alpha, beta, _, _ = ordqz(Ai, Bi, sort=sortstr)
A = [array([[1., 0.],
[0., 1.]]), array([[1., 0.],
[0., 1.]]), array([[1., 0.],
[0., 1.]]), array([[1., 0.],
[0., 1.]]), array([[0, 0],
[0, 1]])]
A1 = array([[1., 0.],
[0., 1.]])
A2 = array([[1., 0.],
[0., 1.]])
A3 = array([[1., 0.],
[0., 1.]])
A4 = array([[1., 0.],
[0., 1.]])
A5 = array([[0, 0],
[0, 1]])
Ai = array([[1., 0.],
[0., 1.]])
B = [array([[-2. , 0. ],
[ 0. , 0.5]]), array([[-2. +1.j , 0. +0.j ],
[ 0. +0.j , 0.5+0.5j]]), array([[2, 0],
[0, 0]]), array([[-2, 0],
[ 0, 0]]), array([[0. , 0. ],
[0. , 0.5]])]
B1 = array([[-2. , 0. ],
[ 0. , 0.5]])
B2 = array([[-2. +1.j , 0. +0.j ],
[ 0. +0.j , 0.5+0.5j]])
B3 = array([[2, 0],
[0, 0]])
B4 = array([[-2, 0],
[ 0, 0]])
B5 = array([[0. , 0. ],
[0. , 0.5]])
Bi = array([[-2. +1.j , 0. +0.j ],
[ 0. +0.j , 0.5+0.5j]])
_ = array([[1. +0.j , 0. +0.j ],
[0. +0.j , 0.70710678-0.70710678j]])
alpha = array([-0.89442719-0.4472136j , 0.70710678-0.70710678j])
azero = array([False, False])
beta = array([2.23606798+0.j, 0.70710678+0.j])
bzero = array([False, False])
expected = [[('lhp', [-0.5, 2]), ('rhp', [2, -0.5]), ('iuc', [-0.5, 2]), ('ouc', [2, -0.5])], [('lhp', [(-0.4-0.2j), (1-1j)]), ('...nf, 0.5])], [('lhp', [-0.5, inf]), ('iuc', [-0.5, inf]), ('ouc', [inf, -0.5])], [('rhp', [2, nan]), ('ouc', [2, nan])]]
expected1 = [('lhp', [-0.5, 2]), ('rhp', [2, -0.5]), ('iuc', [-0.5, 2]), ('ouc', [2, -0.5])]
expected2 = [('lhp', [(-0.4-0.2j), (1-1j)]), ('rhp', [(1-1j), (-0.4-0.2j)]), ('iuc', [(-0.4-0.2j), (1-1j)]), ('ouc', [(1-1j), (-0.4-0.2j)])]
expected3 = [('rhp', [0.5, inf]), ('iuc', [0.5, inf]), ('ouc', [inf, 0.5])]
expected4 = [('lhp', [-0.5, inf]), ('iuc', [-0.5, inf]), ('ouc', [inf, -0.5])]
expected5 = [('rhp', [2, nan]), ('ouc', [2, nan])]
expected_eigvals = [(1-1j), (-0.4-0.2j)]
expectedi = [('lhp', [(-0.4-0.2j), (1-1j)]), ('rhp', [(1-1j), (-0.4-0.2j)]), ('iuc', [(-0.4-0.2j), (1-1j)]), ('ouc', [(1-1j), (-0.4-0.2j)])]
self = <scipy.linalg.tests.test_decomp.TestOrdQZ object at 0x1151cb8c0>
sortstr = 'rhp'
x = array([-0.4-0.2j, 1. -1.j ])
scipy/linalg/_decomp_qz.py:443: in ordqz
raise ValueError("Reordering of (A, B) failed because the transformed"
E ValueError: Reordering of (A, B) failed because the transformed matrix pair (A, B) would be too far from generalized Schur form; the problem is very ill-conditioned. (A, B) may have been partially reordered.
A = array([[1., 0.],
[0., 1.]])
AA = array([[-0.89442719-0.4472136j , 0. +0.j ],
[ 0. +0.j , 0.70710678-0.70710678j]])
AAA = array([[-0.89442719-0.4472136j , 0. +0.j ],
[ 0. +0.j , 0.70710678-0.70710678j]])
B = array([[-2. +1.j , 0. +0.j ],
[ 0. +0.j , 0.5+0.5j]])
BB = array([[2.23606798+0.j, 0. +0.j],
[0. +0.j, 0.70710678+0.j]])
BBB = array([[2.23606798+0.j, 0. +0.j],
[0. +0.j, 0.70710678+0.j]])
Q = array([[-0.89442719+0.4472136j, 0. +0.j ],
[ 0. +0.j , 1. +0.j ]])
QQ = array([[-0.89442719+0.4472136j, 0. +0.j ],
[ 0. +0.j , 1. +0.j ]])
Z = array([[1. +0.j , 0. +0.j ],
[0. +0.j , 0.70710678-0.70710678j]])
ZZ = array([[1. +0.j , 0. +0.j ],
[0. +0.j , 0.70710678-0.70710678j]])
_ = array([0., 0.])
ab = [array([-0.89442719-0.4472136j , 0.70710678-0.70710678j]), array([2.23606798+0.j, 0.70710678+0.j])]
alpha = array([-0.89442719-0.4472136j , 0.70710678-0.70710678j])
beta = array([2.23606798+0.j, 0.70710678+0.j])
check_finite = True
info = 1
lwork = 1
output = 'real'
overwrite_a = False
overwrite_b = False
select = array([False, True])
sfunction = <function _rhp at 0x105f2fd80>
sort = 'rhp'
tgsen = <fortran function ztgsen>
typ = 'z'
____________________ TestOrdQZWorkspaceSize.test_decompose _____________________
scipy/linalg/tests/test_decomp.py:2682: in test_decompose
_ = ordqz(A, B, sort=lambda alpha, beta: alpha < beta,
A = array([[0.3400652 +0.j, 0.40679654+0.j, 0.03785227+0.j, ...,
0.46569912+0.j, 0.34000689+0.j, 0.18197288+0.j],
...
[0.35160158+0.j, 0.41201777+0.j, 0.68358587+0.j, ...,
0.50537399+0.j, 0.08104583+0.j, 0.39046819+0.j]])
B = array([[0.01923255+0.j, 0.58262855+0.j, 0.18256915+0.j, ...,
0.98463685+0.j, 0.60828429+0.j, 0.56107299+0.j],
...
[0.3774488 +0.j, 0.22516928+0.j, 0.08706877+0.j, ...,
0.9015293 +0.j, 0.18932018+0.j, 0.78947954+0.j]])
N = 202
_ = (array([[-4.07674921e+00, 3.65758548e-01, -6.84469640e-03, ...,
1.01177726e+00, 5.76916826e+00, 2.12013153...28, -0.10160696],
[-0.02071906, 0.03215941, 0.04681432, ..., 0.01070236,
-0.07517671, 0.03073703]]))
ddtype = <class 'numpy.complex128'>
rng = RandomState(MT19937) at 0x11693B840
self = <scipy.linalg.tests.test_decomp.TestOrdQZWorkspaceSize object at 0x1151ca6c0>
scipy/linalg/_decomp_qz.py:443: in ordqz
raise ValueError("Reordering of (A, B) failed because the transformed"
E ValueError: Reordering of (A, B) failed because the transformed matrix pair (A, B) would be too far from generalized Schur form; the problem is very ill-conditioned. (A, B) may have been partially reordered.
A = array([[0.3400652 +0.j, 0.40679654+0.j, 0.03785227+0.j, ...,
0.46569912+0.j, 0.34000689+0.j, 0.18197288+0.j],
...
[0.35160158+0.j, 0.41201777+0.j, 0.68358587+0.j, ...,
0.50537399+0.j, 0.08104583+0.j, 0.39046819+0.j]])
AA = array([[-4.26063005-1.02372433e-12j, -0.10165991+1.80579579e-08j,
-0.59152914-2.47418871e-02j, ..., -0.1383345...+0.00000000e+00j, ..., 0. +0.00000000e+00j,
0. +0.00000000e+00j, 0.17569597+6.34317804e-27j]])
AAA = array([[-4.26063005-1.02372433e-12j, -0.10165991+1.80579579e-08j,
-0.59152914-2.47418871e-02j, ..., -0.1383345...+0.00000000e+00j, ..., 0. +0.00000000e+00j,
0. +0.00000000e+00j, 0.17569597+6.34317804e-27j]])
B = array([[0.01923255+0.j, 0.58262855+0.j, 0.18256915+0.j, ...,
0.98463685+0.j, 0.60828429+0.j, 0.56107299+0.j],
...
[0.3774488 +0.j, 0.22516928+0.j, 0.08706877+0.j, ...,
0.9015293 +0.j, 0.18932018+0.j, 0.78947954+0.j]])
BB = array([[ 0.11454841+0.00000000e+00j, 0.11843819-2.10379307e-08j,
0.3907662 +1.63445772e-02j, ..., -0.2331578...+0.00000000e+00j, ..., 0. +0.00000000e+00j,
0. +0.00000000e+00j, 4.12211621+0.00000000e+00j]])
BBB = array([[ 0.11454841+0.00000000e+00j, 0.11843819-2.10379307e-08j,
0.3907662 +1.63445772e-02j, ..., -0.2331578...+0.00000000e+00j, ..., 0. +0.00000000e+00j,
0. +0.00000000e+00j, 4.12211621+0.00000000e+00j]])
Q = array([[-0.00607327+3.80882924e-10j, -0.06419923+1.54294448e-08j,
-0.02779431-1.16255057e-03j, ..., 0.0158040...-2.79345317e-03j, ..., 0.04712702+8.63528062e-02j,
-0.04930779-1.84958462e-02j, -0.15674854-8.83266732e-24j]])
QQ = array([[-0.00607327+3.80882924e-10j, -0.06419923+1.54294448e-08j,
-0.02779431-1.16255057e-03j, ..., 0.0158040...-2.79345317e-03j, ..., 0.04712702+8.63528062e-02j,
-0.04930779-1.84958462e-02j, -0.15674854-8.83266732e-24j]])
Z = array([[-0.18747638+1.17569825e-08j, 0.05966103-1.43387275e-08j,
0.00088406+3.69775203e-05j, ..., 0.0447184...+4.00222710e-03j, ..., -0.03509426-1.00425630e-01j,
0.06145123+1.52970854e-03j, -0.00708247-3.99887863e-25j]])
ZZ = array([[-0.18747638+1.17569825e-08j, 0.05966103-1.43387275e-08j,
0.00088406+3.69775203e-05j, ..., 0.0447184...+4.00222710e-03j, ..., -0.03509426-1.00425630e-01j,
0.06145123+1.52970854e-03j, -0.00708247-3.99887863e-25j]])
_ = array([0., 0.])
ab = [array([-4.26063005-1.02372433e-12j, -4.17998148-2.70601236e-12j,
3.84839744+4.17902651e-10j, -4.26747836+3.34...,
3.97530369+0.j, 3.87145488+0.j, 3.90366616+0.j, 3.85114926+0.j,
3.84751952+0.j, 4.12211621+0.j])]
alpha = array([-4.26063005-1.02372433e-12j, -4.17998148-2.70601236e-12j,
3.84839744+4.17902651e-10j, -4.26747836+3.348...4408512+4.62808364e-01j, 0.79394358-8.63573163e-02j,
0.79319529+8.62759234e-02j, 0.17569597+6.34317804e-27j])
beta = array([ 0.11454841+0.j, 0.30542214+0.j, 0.63452642+0.j, 0.81623983+0.j,
0.93311494+0.j, 0.95184545+0.j, 0...j,
3.97530369+0.j, 3.87145488+0.j, 3.90366616+0.j, 3.85114926+0.j,
3.84751952+0.j, 4.12211621+0.j])
check_finite = True
info = 1
lwork = 1
output = 'complex'
overwrite_a = False
overwrite_b = False
select = array([ True, True, False, True, False, False, True, True, True,
True, True, True, True, True, True,... True, True,
True, True, True, True, True, True, True, True, True,
True, True, True, True])
sfunction = <function TestOrdQZWorkspaceSize.test_decompose.<locals>.<lambda> at 0x116b7b2e0>
sort = <function TestOrdQZWorkspaceSize.test_decompose.<locals>.<lambda> at 0x116b7b2e0>
tgsen = <fortran function ztgsen>
typ = 'z'
________________________ TestQRdelete_D.test_sqr_1_row _________________________
scipy/linalg/tests/test_decomp_update.py:113: in test_sqr_1_row
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.20555395+0.1282908j , 0.57238605+0.54059797j,
0.93713906+0.29298177j, 0.45301583+0.69374649j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[ 0.1149761 +0.00424597j, -0.43763386+0.4031438j ,
0.23610096+0.20968923j, -0.03919743+0.28842971j,
..., 0.12788907+0.1575589j ,
-0.48170736-0.16012074j, -0.47209458+0.33572422j,
-0.01777501+0.11292036j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[ 1.82651172+1.04835253j, 0.75521744+1.12040311j,
1.51640873+1.20218891j, 1.03661284+1.15693453j,
...,
0. +0.j , 0. +0.j ,
0.29227193-0.20719596j, 0.50976199+0.38438066j]])
row = 0
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154412b0>
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.20555395+0.1282908j , 0.57238605+0.54059797j,
0.93713906+0.29298177j, 0.45301583+0.69374649j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[ 0.1149761 +0.00424597j, -0.43763386+0.4031438j ,
0.23610096+0.20968923j, -0.03919743+0.28842971j,
..., 0.12788907+0.1575589j ,
-0.48170736-0.16012074j, -0.47209458+0.33572422j,
-0.01777501+0.11292036j]])
r = array([[ 1.82651172+1.04835253j, 0.75521744+1.12040311j,
1.51640873+1.20218891j, 1.03661284+1.15693453j,
...,
0. +0.j , 0. +0.j ,
0.29227193-0.20719596j, 0.50976199+0.38438066j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 0.1149761 +0.00424597j, -0.43763386+0.4031438j ,
0.23610096+0.20968923j, -0.03919743+0.28842971j,
..., 0.12788907+0.1575589j ,
-0.48170736-0.16012074j, -0.47209458+0.33572422j,
-0.01777501+0.11292036j]])
aTa = array([[ 9.99999922e-01+0.00000000e+00j, -5.70563263e-10+4.30775488e-09j,
-2.03079380e-09+2.82680851e-09j, 6....j,
-2.77555756e-17+3.46944695e-17j, -2.77555756e-17-1.87350135e-16j,
9.99999950e-01+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 37 / 49 (75.5%)
E Max absolute difference among violations: 7.80762823e-08
E Max relative difference among violations: 7.80762823e-08
E ACTUAL: array([[ 9.999999e-01+0.000000e+00j, -5.705633e-10+4.307755e-09j,
E -2.030794e-09+2.826809e-09j, 6.552514e-10+1.999572e-11j,
E -2.192245e-11+5.101021e-11j, -2.505817e-09+1.507515e-10j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a920c0>, array([[ 9.99999922e-01+0.00000000e+00j, -5.70563263e-10+..., 0.],
[0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRdelete_D.test_sqr_p_row _________________________
scipy/linalg/tests/test_decomp_update.py:121: in test_sqr_p_row
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.19692903+0.1716864j , 0.25108618+0.29238511j,
0.8754754 +0.08459105j, 0.78469287+0.83912041j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
ndel = 2
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[ 0.10409497-0.06899732j, -0.21849476-0.17552086j,
-0.14557769-0.5863015j , 0.43282911+0.39877078j,
...,
-0.28761175+0.31053877j, -0.28399533+0.03499776j,
0.4837328 +0.00146714j, 0.53661412-0.09636013j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[ 0.55483461+2.01708598j, -0.26083102+1.24521175j,
0.17473695+1.83576045j, -0.06341815+1.46712981j,
...,
0. +0.j , -0.05511651+0.69159783j,
-0.14806614+0.31802477j, 0.74993391-0.14600019j]])
row = 0
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154428a0>
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.19692903+0.1716864j , 0.25108618+0.29238511j,
0.8754754 +0.08459105j, 0.78469287+0.83912041j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[ 0.10409497-0.06899732j, -0.21849476-0.17552086j,
-0.14557769-0.5863015j , 0.43282911+0.39877078j,
...,
-0.28761175+0.31053877j, -0.28399533+0.03499776j,
0.4837328 +0.00146714j, 0.53661412-0.09636013j]])
r = array([[ 0.55483461+2.01708598j, -0.26083102+1.24521175j,
0.17473695+1.83576045j, -0.06341815+1.46712981j,
...,
0. +0.j , -0.05511651+0.69159783j,
-0.14806614+0.31802477j, 0.74993391-0.14600019j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 0.10409497-0.06899732j, -0.21849476-0.17552086j,
-0.14557769-0.5863015j , 0.43282911+0.39877078j,
...,
-0.28761175+0.31053877j, -0.28399533+0.03499776j,
0.4837328 +0.00146714j, 0.53661412-0.09636013j]])
aTa = array([[ 9.99999956e-01+0.00000000e+00j, -2.72614231e-09-1.52598992e-09j,
1.40263801e-10+3.27474104e-09j, -9....7096e-09j, -1.07857192e-08+8.53762720e-09j,
-4.54283633e-09-5.49229223e-09j, 1.00000002e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 36 / 36 (100%)
E Max absolute difference among violations: 5.27969481e-08
E Max relative difference among violations: 5.27969481e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, -2.726142e-09-1.525990e-09j,
E 1.402638e-10+3.274741e-09j, -9.715245e-10+3.322732e-09j,
E 2.827102e-10+4.230751e-10j, 9.555797e-10+2.840323e-09j],...
E DESIRED: array([[1., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a92160>, array([[ 9.99999956e-01+0.00000000e+00j, -2.72614231e-09-..., 1., 0., 0., 0.],
[0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRdelete_D.test_sqr_1_col _________________________
scipy/linalg/tests/test_decomp_update.py:128: in test_sqr_1_col
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.97637554+0.06374039j, 0.73179659+0.89841842j,
0.68487472+0.67191936j, 0.39762759+0.13461565j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
col = 0
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.47037769+0.14876758j, -0.32753936+0.42734483j,
-0.35268291-0.06264357j, 0.04591817-0.06243203j,
...,
0.04525421-0.49077225j, 0.31458061-0.01457977j,
0.44038366-0.07025018j, 0.09398649-0.20173232j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-1.84801495-0.71998548j, -1.88842273-0.55242738j,
-1.8990742 -1.02517775j, -1.56852597-0.20076271j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154ed1f0>
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.97637554+0.06374039j, 0.73179659+0.89841842j,
0.68487472+0.67191936j, 0.39762759+0.13461565j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.47037769+0.14876758j, -0.32753936+0.42734483j,
-0.35268291-0.06264357j, 0.04591817-0.06243203j,
...,
0.04525421-0.49077225j, 0.31458061-0.01457977j,
0.44038366-0.07025018j, 0.09398649-0.20173232j]])
r = array([[-1.84801495-0.71998548j, -1.88842273-0.55242738j,
-1.8990742 -1.02517775j, -1.56852597-0.20076271j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.47037769+0.14876758j, -0.32753936+0.42734483j,
-0.35268291-0.06264357j, 0.04591817-0.06243203j,
...,
0.04525421-0.49077225j, 0.31458061-0.01457977j,
0.44038366-0.07025018j, 0.09398649-0.20173232j]])
aTa = array([[ 9.99999974e-01+2.50555212e-17j, 4.85722573e-17+3.02994704e-16j,
-2.77555756e-17-1.18305520e-16j, 1....2219e-09j, 4.78046785e-09+2.06815331e-08j,
-1.28253477e-09-2.70580343e-10j, 1.00000001e+00-1.23975590e-18j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 50 / 64 (78.1%)
E Max absolute difference among violations: 3.9132585e-08
E Max relative difference among violations: 3.9132585e-08
E ACTUAL: array([[ 1.000000e+00+2.505552e-17j, 4.857226e-17+3.029947e-16j,
E -2.775558e-17-1.183055e-16j, 1.110223e-16-2.101533e-16j,
E 4.163336e-17+1.646630e-16j, 1.526557e-16-1.090537e-18j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a92660>, array([[ 9.99999974e-01+2.50555212e-17j, 4.85722573e-17+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRdelete_D.test_tall_1_row ________________________
scipy/linalg/tests/test_decomp_update.py:144: in test_tall_1_row
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
a1 = array([[0.61821572+0.94103036j, 0.20555395+0.35143653j,
0.57238605+0.05961663j, 0.93713906+0.4110347j ,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
q = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
...,
0.07221112-0.17945509j, 0.10256997-0.11285204j,
-0.05898739+0.03267021j, 0.56949722-0.06679237j]])
q1 = array([[-0.32491525-0.16273835j, 0.21165211+0.01492865j,
-0.15835801-0.05760442j, 0.0820608 -0.37024316j,
..., 0.16740293-0.09200421j,
0.13408484+0.09223904j, 0.35519847+0.334154j ,
0.12906203-0.07524019j]])
r = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
r1 = array([[-2.68079922-1.55351738j, -1.74667277-0.86320798j,
-1.48279913-0.41366144j, -2.17909258-0.90930458j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
row = 0
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154ec470>
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.61821572+0.94103036j, 0.20555395+0.35143653j,
0.57238605+0.05961663j, 0.93713906+0.4110347j ,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.32491525-0.16273835j, 0.21165211+0.01492865j,
-0.15835801-0.05760442j, 0.0820608 -0.37024316j,
..., 0.16740293-0.09200421j,
0.13408484+0.09223904j, 0.35519847+0.334154j ,
0.12906203-0.07524019j]])
r = array([[-2.68079922-1.55351738j, -1.74667277-0.86320798j,
-1.48279913-0.41366144j, -2.17909258-0.90930458j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.32491525-0.16273835j, 0.21165211+0.01492865j,
-0.15835801-0.05760442j, 0.0820608 -0.37024316j,
..., 0.16740293-0.09200421j,
0.13408484+0.09223904j, 0.35519847+0.334154j ,
0.12906203-0.07524019j]])
aTa = array([[ 9.99999958e-01+0.00000000e+00j, -9.04723768e-09+7.56039764e-09j,
-7.41478406e-09-5.27931604e-09j, -5....j,
1.11022302e-16-2.77555756e-17j, 2.77555756e-17-1.38777878e-17j,
9.99999987e-01+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 101 / 121 (83.5%)
E Max absolute difference among violations: 1.37219053e-07
E Max relative difference among violations: 1.37219053e-07
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, -9.047238e-09+7.560398e-09j,
E -7.414784e-09-5.279316e-09j, -5.490657e-09+2.543630e-09j,
E -1.612674e-09+3.227583e-09j, -2.092235e-09-1.950350e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a93100>, array([[ 9.99999958e-01+0.00000000e+00j, -9.04723768e-09+...., 0., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRdelete_D.test_tall_p_row ________________________
scipy/linalg/tests/test_decomp_update.py:152: in test_tall_p_row
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
a1 = array([[0.63448525+0.98640171j, 0.53186528+0.17771357j,
0.19692903+0.68169337j, 0.25108618+0.86786474j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
ndel = 2
q = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
...,
0.07221112-0.17945509j, 0.10256997-0.11285204j,
-0.05898739+0.03267021j, 0.56949722-0.06679237j]])
q1 = array([[-0.40500643-3.24960369e-02j, 0.09150471+3.07457364e-01j,
0.12665929-2.82978630e-01j, 0.27793985+6.2...04727-1.66551199e-01j, -0.09190756-1.14802010e-02j,
0.03488043-4.55226948e-02j, 0.47127199+1.29169013e-01j]])
r = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
r1 = array([[-1.75075029-2.29504785j, -1.28600622-1.44407545j,
-1.07494254-1.01340003j, -1.40932872-1.66480047j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
row = 0
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154ec8c0>
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.63448525+0.98640171j, 0.53186528+0.17771357j,
0.19692903+0.68169337j, 0.25108618+0.86786474j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.40500643-3.24960369e-02j, 0.09150471+3.07457364e-01j,
0.12665929-2.82978630e-01j, 0.27793985+6.2...04727-1.66551199e-01j, -0.09190756-1.14802010e-02j,
0.03488043-4.55226948e-02j, 0.47127199+1.29169013e-01j]])
r = array([[-1.75075029-2.29504785j, -1.28600622-1.44407545j,
-1.07494254-1.01340003j, -1.40932872-1.66480047j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.40500643-3.24960369e-02j, 0.09150471+3.07457364e-01j,
0.12665929-2.82978630e-01j, 0.27793985+6.2...04727-1.66551199e-01j, -0.09190756-1.14802010e-02j,
0.03488043-4.55226948e-02j, 0.47127199+1.29169013e-01j]])
aTa = array([[ 9.99999898e-01+0.00000000e+00j, -1.88162181e-08-1.71142955e-09j,
-7.83909299e-09+7.04851709e-09j, -5....0206e-10j, -2.14691855e-10-1.47743648e-09j,
-3.22352306e-09+7.87987176e-10j, 9.99999990e-01+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 100 / 100 (100%)
E Max absolute difference among violations: 1.25427e-07
E Max relative difference among violations: 1.25427e-07
E ACTUAL: array([[ 9.999999e-01+0.000000e+00j, -1.881622e-08-1.711430e-09j,
E -7.839093e-09+7.048517e-09j, -5.898951e-10+8.783514e-09j,
E -8.051753e-09-1.302168e-09j, 4.669985e-09-9.856883e-10j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a907c0>, array([[ 9.99999898e-01+0.00000000e+00j, -1.88162181e-08-...., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRdelete_D.test_tall_1_col ________________________
scipy/linalg/tests/test_decomp_update.py:159: in test_tall_1_col
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
a1 = array([[0.97637554+0.88157274j, 0.73179659+0.53904779j,
0.68487472+0.25772088j, 0.39762759+0.65126979j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
col = 0
q = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
...,
0.07221112-0.17945509j, 0.10256997-0.11285204j,
-0.05898739+0.03267021j, 0.56949722-0.06679237j]])
q1 = array([[-0.31684196-0.35568398j, -0.05813927-0.056459j ,
0.27348941-0.02552092j, -0.30771793-0.06008081j,
...,
0.07221112-0.17945509j, 0.10256997-0.11285204j,
-0.05898739+0.03267021j, 0.56949722-0.06679237j]])
r = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
r1 = array([[-2.74534266e+00+0.29952371j, -1.64651354e+00+0.20358719j,
-2.25056348e+00+0.62770361j, -2.44935604e+00...00000e+00+0.j , 0.00000000e+00+0.j ,
0.00000000e+00+0.j , 0.00000000e+00+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154ed4f0>
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.97637554+0.88157274j, 0.73179659+0.53904779j,
0.68487472+0.25772088j, 0.39762759+0.65126979j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.31684196-0.35568398j, -0.05813927-0.056459j ,
0.27348941-0.02552092j, -0.30771793-0.06008081j,
...,
0.07221112-0.17945509j, 0.10256997-0.11285204j,
-0.05898739+0.03267021j, 0.56949722-0.06679237j]])
r = array([[-2.74534266e+00+0.29952371j, -1.64651354e+00+0.20358719j,
-2.25056348e+00+0.62770361j, -2.44935604e+00...00000e+00+0.j , 0.00000000e+00+0.j ,
0.00000000e+00+0.j , 0.00000000e+00+0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.31684196-0.35568398j, -0.05813927-0.056459j ,
0.27348941-0.02552092j, -0.30771793-0.06008081j,
...,
0.07221112-0.17945509j, 0.10256997-0.11285204j,
-0.05898739+0.03267021j, 0.56949722-0.06679237j]])
aTa = array([[ 1.00000001e+00+0.00000000e+00j, 5.55111512e-17-2.77555756e-17j,
-3.12250226e-17+6.07153217e-18j, -2....2302e-16j, 6.24500451e-17+1.24900090e-16j,
4.85722573e-17+1.38777878e-17j, 1.00000000e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 37 / 144 (25.7%)
E Max absolute difference among violations: 6.22101655e-08
E Max relative difference among violations: 6.22101655e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, 5.551115e-17-2.775558e-17j,
E -3.122502e-17+6.071532e-18j, -2.775558e-17-5.984796e-17j,
E 5.204170e-17-5.551115e-17j, -5.551115e-17-2.775558e-17j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x116cf4860>, array([[ 1.00000001e+00+0.00000000e+00j, 5.55111512e-17-....],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRdelete_D.test_fat_1_row _________________________
scipy/linalg/tests/test_decomp_update.py:175: in test_fat_1_row
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
a1 = array([[0.09842774+0.91895973j, 0.66954795+0.27873207j,
0.63448525+0.98640171j, 0.53186528+0.17771357j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
q = array([[-0.16744807-0.32104676j, -0.46249724-0.22660237j,
0.20466257-0.41920076j, -0.05476509-0.23749447j,
..., 0.27538245-0.03199855j,
0.28604992+0.37688667j, 0.18087928-0.03634228j,
-0.11962411+0.59514298j]])
q1 = array([[ 0.3041624 +0.33233497j, 0.26626649+0.54766905j,
0.00990415-0.07437571j, 0.00576859-0.13100738j,
...,
-0.11692129-0.17637187j, -0.28252559-0.12931345j,
0.4987351 -0.24068445j, -0.03651497+0.52951459j]])
r = array([[-2.20081937+0.j , -1.69656064+0.00705994j,
-1.71258114+0.39390614j, -1.31554061+0.16505241j,
...,
0.10677582-0.13276234j, 0.15652092+0.00902154j,
0.41916145+0.32277885j, -0.23787641-0.11789546j]])
r1 = array([[ 1.6522386 +1.21600539e+00j, 0.97909034+9.32090199e-01j,
1.38278437+6.85716965e-01j, 0.95865609+7.2...46124-7.58609888e-02j, -0.08483122-1.53512855e-01j,
0.32923652+1.33853663e-01j, -0.21115218+6.06564118e-03j]])
row = 0
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154ed8e0>
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.09842774+0.91895973j, 0.66954795+0.27873207j,
0.63448525+0.98640171j, 0.53186528+0.17771357j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[ 0.3041624 +0.33233497j, 0.26626649+0.54766905j,
0.00990415-0.07437571j, 0.00576859-0.13100738j,
...,
-0.11692129-0.17637187j, -0.28252559-0.12931345j,
0.4987351 -0.24068445j, -0.03651497+0.52951459j]])
r = array([[ 1.6522386 +1.21600539e+00j, 0.97909034+9.32090199e-01j,
1.38278437+6.85716965e-01j, 0.95865609+7.2...46124-7.58609888e-02j, -0.08483122-1.53512855e-01j,
0.32923652+1.33853663e-01j, -0.21115218+6.06564118e-03j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 0.3041624 +0.33233497j, 0.26626649+0.54766905j,
0.00990415-0.07437571j, 0.00576859-0.13100738j,
...,
-0.11692129-0.17637187j, -0.28252559-0.12931345j,
0.4987351 -0.24068445j, -0.03651497+0.52951459j]])
aTa = array([[ 1.00000004e+00+0.00000000e+00j, -2.36860531e-12-1.69367151e-09j,
-1.15826200e-09-1.42585727e-09j, 1....1512e-17j, -2.49800181e-16+1.94289029e-16j,
4.51028104e-17+2.22044605e-16j, 9.99999997e-01+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 26 / 36 (72.2%)
E Max absolute difference among violations: 4.19919572e-08
E Max relative difference among violations: 4.19919572e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, -2.368605e-12-1.693672e-09j,
E -1.158262e-09-1.425857e-09j, 1.883724e-10-3.821685e-09j,
E 2.103838e-10+8.594846e-11j, 4.857226e-17+2.775558e-17j],...
E DESIRED: array([[1., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x116dd4d60>, array([[ 1.00000004e+00+0.00000000e+00j, -2.36860531e-12-..., 1., 0., 0., 0.],
[0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRdelete_D.test_fat_p_row _________________________
scipy/linalg/tests/test_decomp_update.py:183: in test_fat_p_row
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
a1 = array([[0.87183943+0.14490198j, 0.42412754+0.68593935j,
0.33271532+0.12046512j, 0.54201381+0.92246967j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
ndel = 2
q = array([[-0.16744807-0.32104676j, -0.46249724-0.22660237j,
0.20466257-0.41920076j, -0.05476509-0.23749447j,
..., 0.27538245-0.03199855j,
0.28604992+0.37688667j, 0.18087928-0.03634228j,
-0.11962411+0.59514298j]])
q1 = array([[-0.47466061+0.08692978j, -0.20861865-0.35743076j,
0.04017193-0.06416743j, 0.52124324+0.02061066j,
..., -0.42412312+0.53661057j,
0.10402668+0.22467121j, 0.02211051-0.33890314j,
-0.05894702+0.48391244j]])
r = array([[-2.20081937+0.j , -1.69656064+0.00705994j,
-1.71258114+0.39390614j, -1.31554061+0.16505241j,
...,
0.10677582-0.13276234j, 0.15652092+0.00902154j,
0.41916145+0.32277885j, -0.23787641-0.11789546j]])
r1 = array([[-1.72306309e+00-0.62083832j, -1.07427301e+00-0.93105054j,
-1.11577331e+00-0.3657363j , -1.06128195e+00...31529e-01-0.08174678j, -1.02167203e-01-0.18643268j,
3.46703633e-01+0.10605394j, -2.18298343e-01+0.05841542j]])
row = 0
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154edac0>
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.87183943+0.14490198j, 0.42412754+0.68593935j,
0.33271532+0.12046512j, 0.54201381+0.92246967j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.47466061+0.08692978j, -0.20861865-0.35743076j,
0.04017193-0.06416743j, 0.52124324+0.02061066j,
..., -0.42412312+0.53661057j,
0.10402668+0.22467121j, 0.02211051-0.33890314j,
-0.05894702+0.48391244j]])
r = array([[-1.72306309e+00-0.62083832j, -1.07427301e+00-0.93105054j,
-1.11577331e+00-0.3657363j , -1.06128195e+00...31529e-01-0.08174678j, -1.02167203e-01-0.18643268j,
3.46703633e-01+0.10605394j, -2.18298343e-01+0.05841542j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.47466061+0.08692978j, -0.20861865-0.35743076j,
0.04017193-0.06416743j, 0.52124324+0.02061066j,
..., -0.42412312+0.53661057j,
0.10402668+0.22467121j, 0.02211051-0.33890314j,
-0.05894702+0.48391244j]])
aTa = array([[ 1.00000007e+00+0.00000000e+00j, 6.96212063e-09+6.79989702e-09j,
-9.53754263e-11-7.86493079e-10j, -4....j,
3.04712200e-10+2.20539087e-10j, -9.71425718e-12-7.16050455e-10j,
9.99999997e-01+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 25 / 25 (100%)
E Max absolute difference among violations: 7.42637929e-08
E Max relative difference among violations: 7.42637929e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, 6.962121e-09+6.799897e-09j,
E -9.537543e-11-7.864931e-10j, -4.441693e-09-2.417159e-09j,
E -1.081786e-09+2.959911e-10j],...
E DESIRED: array([[1., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0.],
E [0., 0., 1., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x116b7a340>, array([[ 1.00000007e+00+0.00000000e+00j, 6.96212063e-09+...,
[0., 1., 0., 0., 0.],
[0., 0., 1., 0., 0.],
[0., 0., 0., 1., 0.],
[0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRdelete_D.test_fat_1_col _________________________
scipy/linalg/tests/test_decomp_update.py:190: in test_fat_1_col
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
a1 = array([[0.97637554+0.88157274j, 0.73179659+0.53904779j,
0.68487472+0.25772088j, 0.39762759+0.65126979j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
col = 0
q = array([[-0.16744807-0.32104676j, -0.46249724-0.22660237j,
0.20466257-0.41920076j, -0.05476509-0.23749447j,
..., 0.27538245-0.03199855j,
0.28604992+0.37688667j, 0.18087928-0.03634228j,
-0.11962411+0.59514298j]])
q1 = array([[-0.43053736-3.91998062e-01j, 0.1104711 -6.49620964e-02j,
0.30233496-9.06635801e-02j, 0.18515046+8.0...44711545e-01j,
-0.06715806+2.05843958e-01j, -0.20300275+1.97611222e-01j,
-0.22659512+5.61586320e-01j]])
r = array([[-2.20081937+0.j , -1.69656064+0.00705994j,
-1.71258114+0.39390614j, -1.31554061+0.16505241j,
...,
0.10677582-0.13276234j, 0.15652092+0.00902154j,
0.41916145+0.32277885j, -0.23787641-0.11789546j]])
r1 = array([[-2.25924698e+00+0.00940146j, -1.68628019e+00-0.08638986j,
-1.59935600e+00+0.42903173j, -1.60591731e+00...2+0.00524952j,
3.45132195e-02-0.01195013j, 4.89135069e-01+0.38139969j,
-4.64572586e-01+0.03839348j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154edca0>
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.97637554+0.88157274j, 0.73179659+0.53904779j,
0.68487472+0.25772088j, 0.39762759+0.65126979j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.43053736-3.91998062e-01j, 0.1104711 -6.49620964e-02j,
0.30233496-9.06635801e-02j, 0.18515046+8.0...44711545e-01j,
-0.06715806+2.05843958e-01j, -0.20300275+1.97611222e-01j,
-0.22659512+5.61586320e-01j]])
r = array([[-2.25924698e+00+0.00940146j, -1.68628019e+00-0.08638986j,
-1.59935600e+00+0.42903173j, -1.60591731e+00...2+0.00524952j,
3.45132195e-02-0.01195013j, 4.89135069e-01+0.38139969j,
-4.64572586e-01+0.03839348j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.43053736-3.91998062e-01j, 0.1104711 -6.49620964e-02j,
0.30233496-9.06635801e-02j, 0.18515046+8.0...44711545e-01j,
-0.06715806+2.05843958e-01j, -0.20300275+1.97611222e-01j,
-0.22659512+5.61586320e-01j]])
aTa = array([[ 1.00000005e+00+0.00000000e+00j, -8.67361738e-17-1.11022302e-16j,
5.55111512e-17+4.16333634e-17j, 9....j,
3.25569260e-09+4.75620454e-09j, 4.28933472e-10+3.41015930e-08j,
9.99999977e-01+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 37 / 49 (75.5%)
E Max absolute difference among violations: 7.78982961e-08
E Max relative difference among violations: 7.78982961e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, -8.673617e-17-1.110223e-16j,
E 5.551115e-17+4.163336e-17j, 9.714451e-17+6.938894e-17j,
E -3.469447e-17+0.000000e+00j, 1.387779e-17-1.196959e-16j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x105773560>, array([[ 1.00000005e+00+0.00000000e+00j, -8.67361738e-17-..., 0.],
[0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
______________________ TestQRdelete_D.test_economic_1_row ______________________
scipy/linalg/tests/test_decomp_update.py:207: in test_economic_1_row
check_qr(q1, r1, a1, self.rtol, self.atol, False)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
a1 = array([[0.61821572+0.94103036j, 0.20555395+0.35143653j,
0.57238605+0.05961663j, 0.93713906+0.4110347j ,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
q = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
..., 0.12717499-0.13948103j,
0.06060244-0.22584374j, -0.04277848-0.09283101j,
0.04983613+0.15919433j]])
q1 = array([[-0.19952722-0.30371464j, -0.15283702-0.14717448j,
0.09581907-0.13861542j, -0.36227721+0.11211241j,
..., 0.14385504-0.10541104j,
0.14229666-0.23810149j, 0.00742251-0.17089943j,
0.07897704+0.19102596j]])
r = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.85741133+0.j ]])
r1 = array([[-3.09840299+0.j , -1.9440621 +0.12890488j,
-1.49035396+0.38555701j, -2.34131275+0.30583344j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.8496622 +0.j ]])
row = 0
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154ee060>
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.61821572+0.94103036j, 0.20555395+0.35143653j,
0.57238605+0.05961663j, 0.93713906+0.4110347j ,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[-0.19952722-0.30371464j, -0.15283702-0.14717448j,
0.09581907-0.13861542j, -0.36227721+0.11211241j,
..., 0.14385504-0.10541104j,
0.14229666-0.23810149j, 0.00742251-0.17089943j,
0.07897704+0.19102596j]])
r = array([[-3.09840299+0.j , -1.9440621 +0.12890488j,
-1.49035396+0.38555701j, -2.34131275+0.30583344j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.8496622 +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.19952722-0.30371464j, -0.15283702-0.14717448j,
0.09581907-0.13861542j, -0.36227721+0.11211241j,
..., 0.14385504-0.10541104j,
0.14229666-0.23810149j, 0.00742251-0.17089943j,
0.07897704+0.19102596j]])
aTa = array([[ 9.99999999e-01+0.00000000e+00j, 4.56034925e-10-2.64271383e-10j,
2.11732458e-10-5.80982096e-10j, 4....j,
1.75207071e-16+9.36750677e-17j, 2.77555756e-17+1.38777878e-17j,
9.99999999e-01+0.00000000e+00j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 37 / 49 (75.5%)
E Max absolute difference among violations: 1.68618289e-08
E Max relative difference among violations: 1.68618289e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, 4.560349e-10-2.642714e-10j,
E 2.117325e-10-5.809821e-10j, 4.568436e-10+4.285152e-11j,
E -1.347013e-10+1.920082e-10j, -2.682722e-12-4.332649e-11j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a92660>, array([[ 9.99999999e-01+0.00000000e+00j, 4.56034925e-10-..., 0.],
[0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_________________ TestQRdelete_D.test_economic_p_row_economic __________________
scipy/linalg/tests/test_decomp_update.py:222: in test_economic_p_row_economic
self.base_economic_p_row_xxx(3)
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154ee240>
scipy/linalg/tests/test_decomp_update.py:218: in base_economic_p_row_xxx
check_qr(q1, r1, a1, self.rtol, self.atol, False)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
a1 = array([[0.83897349+0.57680379j, 0.80851798+0.68734109j,
0.08109652+0.43932544j, 0.87183943+0.14490198j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
ndel = 3
q = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
..., 0.12717499-0.13948103j,
0.06060244-0.22584374j, -0.04277848-0.09283101j,
0.04983613+0.15919433j]])
q1 = array([[-0.31808493-0.21868699j, 0.15000914+0.20416507j,
-0.27787119+0.08622418j, 0.01934787+0.29614316j,
..., 0.0415431 -0.08931814j,
0.18589214-0.28936348j, 0.10470616-0.35488526j,
-0.21876657+0.06517072j]])
r = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.85741133+0.j ]])
r1 = array([[-2.63757698e+00+0.j , -1.91575110e+00+0.00430477j,
-1.29299959e+00+0.35301625j, -1.99910994e+00...0+0.j ,
0.00000000e+00+0.j , 0.00000000e+00+0.j ,
-6.28095611e-01+0.j ]])
row = 0
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154ee240>
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.83897349+0.57680379j, 0.80851798+0.68734109j,
0.08109652+0.43932544j, 0.87183943+0.14490198j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[-0.31808493-0.21868699j, 0.15000914+0.20416507j,
-0.27787119+0.08622418j, 0.01934787+0.29614316j,
..., 0.0415431 -0.08931814j,
0.18589214-0.28936348j, 0.10470616-0.35488526j,
-0.21876657+0.06517072j]])
r = array([[-2.63757698e+00+0.j , -1.91575110e+00+0.00430477j,
-1.29299959e+00+0.35301625j, -1.99910994e+00...0+0.j ,
0.00000000e+00+0.j , 0.00000000e+00+0.j ,
-6.28095611e-01+0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.31808493-0.21868699j, 0.15000914+0.20416507j,
-0.27787119+0.08622418j, 0.01934787+0.29614316j,
..., 0.0415431 -0.08931814j,
0.18589214-0.28936348j, 0.10470616-0.35488526j,
-0.21876657+0.06517072j]])
aTa = array([[ 9.99999998e-01+0.00000000e+00j, 2.41693337e-09-3.31323385e-10j,
9.24424842e-10-3.94669020e-11j, 6....j,
2.16564176e-10-1.56157522e-09j, -1.21862437e-09-2.22422149e-09j,
1.00000003e+00+0.00000000e+00j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 49 / 49 (100%)
E Max absolute difference among violations: 2.85697801e-08
E Max relative difference among violations: 2.85697801e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, 2.416933e-09-3.313234e-10j,
E 9.244248e-10-3.946690e-11j, 6.847975e-10-2.262535e-09j,
E 6.987810e-10-2.181066e-09j, -2.615451e-10-5.015546e-10j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a93a60>, array([[ 9.99999998e-01+0.00000000e+00j, 2.41693337e-09-..., 0.],
[0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
____________________ TestQRdelete_D.test_economic_p_row_sqr ____________________
scipy/linalg/tests/test_decomp_update.py:226: in test_economic_p_row_sqr
self.base_economic_p_row_xxx(5)
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154ee420>
scipy/linalg/tests/test_decomp_update.py:218: in base_economic_p_row_xxx
check_qr(q1, r1, a1, self.rtol, self.atol, False)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
a1 = array([[0.4159836 +0.98399711j, 0.72072846+0.51555576j,
0.69713675+0.43797517j, 0.44478867+0.14617645j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
ndel = 5
q = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
..., 0.12717499-0.13948103j,
0.06060244-0.22584374j, -0.04277848-0.09283101j,
0.04983613+0.15919433j]])
q1 = array([[-0.17573511-0.4156963j , 0.32438261-0.10328105j,
0.06974046-0.03557391j, 0.12114267+0.51201711j,
..., 0.11248602-0.22399829j,
0.14662276-0.15151774j, 0.05913537-0.45574716j,
-0.25681339+0.04737071j]])
r = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.85741133+0.j ]])
r1 = array([[-2.36710575+0.j , -1.59714957+0.19049279j,
-1.26088384+0.54291089j, -1.85766104+0.3254533j ,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.51998774+0.j ]])
row = 0
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154ee420>
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.4159836 +0.98399711j, 0.72072846+0.51555576j,
0.69713675+0.43797517j, 0.44478867+0.14617645j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[-0.17573511-0.4156963j , 0.32438261-0.10328105j,
0.06974046-0.03557391j, 0.12114267+0.51201711j,
..., 0.11248602-0.22399829j,
0.14662276-0.15151774j, 0.05913537-0.45574716j,
-0.25681339+0.04737071j]])
r = array([[-2.36710575+0.j , -1.59714957+0.19049279j,
-1.26088384+0.54291089j, -1.85766104+0.3254533j ,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.51998774+0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.17573511-0.4156963j , 0.32438261-0.10328105j,
0.06974046-0.03557391j, 0.12114267+0.51201711j,
..., 0.11248602-0.22399829j,
0.14662276-0.15151774j, 0.05913537-0.45574716j,
-0.25681339+0.04737071j]])
aTa = array([[ 1.00000000e+00+0.00000000e+00j, -1.41841273e-09-4.69418429e-09j,
2.68978905e-09-2.04923203e-09j, 2....j,
2.94444684e-09-4.51021442e-11j, 2.41849857e-09+3.17227467e-09j,
1.00000002e+00+0.00000000e+00j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 49 / 49 (100%)
E Max absolute difference among violations: 3.40648587e-08
E Max relative difference among violations: 3.40648587e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, -1.418413e-09-4.694184e-09j,
E 2.689789e-09-2.049232e-09j, 2.524897e-11-3.138039e-09j,
E -1.893037e-09+3.456062e-09j, 1.287088e-09-8.357905e-10j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x105773880>, array([[ 1.00000000e+00+0.00000000e+00j, -1.41841273e-09-..., 0.],
[0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
____________________ TestQRdelete_D.test_economic_p_row_fat ____________________
scipy/linalg/tests/test_decomp_update.py:230: in test_economic_p_row_fat
self.base_economic_p_row_xxx(7)
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154ee600>
scipy/linalg/tests/test_decomp_update.py:218: in base_economic_p_row_xxx
check_qr(q1, r1, a1, self.rtol, self.atol, False)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
a1 = array([[0.22900406+0.42612341j, 0.8268313 +0.40090086j,
0.09653802+0.5327176j , 0.73107736+0.19360553j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
ndel = 7
q = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
..., 0.12717499-0.13948103j,
0.06060244-0.22584374j, -0.04277848-0.09283101j,
0.04983613+0.15919433j]])
q1 = array([[-0.01699817-0.26451032j, -0.38687686-0.63107427j,
-0.10964815-0.44142863j, 0.08882848+0.17344515j,
..., -0.06676186-0.09917188j,
-0.06220445+0.74773268j, -0.20361678+0.08086016j,
0.21634039+0.18628954j]])
r = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.85741133+0.j ]])
r1 = array([[-1.65977188+0.75910443j, -1.33417626+0.45320266j,
-0.54221888+0.41060612j, -1.45159562+0.80555779j,
..., 0. +0.j ,
-0.48991671+0.17185264j, 0.56165895+0.05346011j,
0.12927284+0.3781729j ]])
row = 0
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154ee600>
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.22900406+0.42612341j, 0.8268313 +0.40090086j,
0.09653802+0.5327176j , 0.73107736+0.19360553j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[-0.01699817-0.26451032j, -0.38687686-0.63107427j,
-0.10964815-0.44142863j, 0.08882848+0.17344515j,
..., -0.06676186-0.09917188j,
-0.06220445+0.74773268j, -0.20361678+0.08086016j,
0.21634039+0.18628954j]])
r = array([[-1.65977188+0.75910443j, -1.33417626+0.45320266j,
-0.54221888+0.41060612j, -1.45159562+0.80555779j,
..., 0. +0.j ,
-0.48991671+0.17185264j, 0.56165895+0.05346011j,
0.12927284+0.3781729j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.01699817-0.26451032j, -0.38687686-0.63107427j,
-0.10964815-0.44142863j, 0.08882848+0.17344515j,
..., -0.06676186-0.09917188j,
-0.06220445+0.74773268j, -0.20361678+0.08086016j,
0.21634039+0.18628954j]])
aTa = array([[ 9.99999989e-01+0.00000000e+00j, -1.09580021e-08+1.13974274e-08j,
3.41528908e-09+7.55459023e-09j, -2....j,
-4.38624673e-09-6.79187636e-09j, -5.83243331e-09+1.03609861e-08j,
9.99999925e-01+0.00000000e+00j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 25 / 25 (100%)
E Max absolute difference among violations: 7.47971506e-08
E Max relative difference among violations: 7.47971506e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, -1.095800e-08+1.139743e-08j,
E 3.415289e-09+7.554590e-09j, -2.830744e-09+2.742248e-09j,
E -8.994058e-10+3.224627e-09j],...
E DESIRED: array([[1., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0.],
E [0., 0., 1., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x116dd4ea0>, array([[ 9.99999989e-01+0.00000000e+00j, -1.09580021e-08+...,
[0., 1., 0., 0., 0.],
[0., 0., 1., 0., 0.],
[0., 0., 0., 1., 0.],
[0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
______________________ TestQRdelete_D.test_economic_1_col ______________________
scipy/linalg/tests/test_decomp_update.py:237: in test_economic_1_col
check_qr(q1, r1, a1, self.rtol, self.atol, False)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
a1 = array([[0.97637554+0.88157274j, 0.73179659+0.53904779j,
0.68487472+0.25772088j, 0.39762759+0.65126979j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
col = 0
q = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
..., 0.12717499-0.13948103j,
0.06060244-0.22584374j, -0.04277848-0.09283101j,
0.04983613+0.15919433j]])
q1 = array([[-0.31684196-0.35568398j, -0.05813927-0.056459j ,
0.27348941-0.02552092j, -0.30771793-0.06008081j,
...,
0.01337655-0.25671231j, -0.08520747+0.16743956j,
-0.06539037-0.01612486j, -0.21981769-0.00904837j]])
r = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.85741133+0.j ]])
r1 = array([[-2.74534266e+00+0.29952371j, -1.64651354e+00+0.20358719j,
-2.25056348e+00+0.62770361j, -2.44935604e+00...00000e+00+0.j , 0.00000000e+00+0.j ,
0.00000000e+00+0.j , -2.06639647e-01+1.07929013j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154ee7e0>
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.97637554+0.88157274j, 0.73179659+0.53904779j,
0.68487472+0.25772088j, 0.39762759+0.65126979j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[-0.31684196-0.35568398j, -0.05813927-0.056459j ,
0.27348941-0.02552092j, -0.30771793-0.06008081j,
...,
0.01337655-0.25671231j, -0.08520747+0.16743956j,
-0.06539037-0.01612486j, -0.21981769-0.00904837j]])
r = array([[-2.74534266e+00+0.29952371j, -1.64651354e+00+0.20358719j,
-2.25056348e+00+0.62770361j, -2.44935604e+00...00000e+00+0.j , 0.00000000e+00+0.j ,
0.00000000e+00+0.j , -2.06639647e-01+1.07929013j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.31684196-0.35568398j, -0.05813927-0.056459j ,
0.27348941-0.02552092j, -0.30771793-0.06008081j,
...,
0.01337655-0.25671231j, -0.08520747+0.16743956j,
-0.06539037-0.01612486j, -0.21981769-0.00904837j]])
aTa = array([[ 1.00000001e+00+0.00000000e+00j, 5.55111512e-17-2.77555756e-17j,
-2.42861287e-17+3.64291930e-17j, 1....2337e-10j, 9.88460205e-09+8.93731125e-09j,
-5.25699342e-09-6.03275036e-09j, 1.00000004e+00+0.00000000e+00j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 26 / 36 (72.2%)
E Max absolute difference among violations: 6.22101655e-08
E Max relative difference among violations: 6.22101655e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, 5.551115e-17-2.775558e-17j,
E -2.428613e-17+3.642919e-17j, 1.387779e-17-4.163336e-17j,
E 5.204170e-17-5.551115e-17j, -5.551115e-17-2.775558e-17j],...
E DESIRED: array([[1., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x116b7a3e0>, array([[ 1.00000001e+00+0.00000000e+00j, 5.55111512e-17-..., 1., 0., 0., 0.],
[0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRdelete_D.test_Mx1_1_row _________________________
scipy/linalg/tests/test_decomp_update.py:253: in test_Mx1_1_row
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.20555395j],
[0.97637554+0.57238605j],
[0.73179659+0.93713906j],
[0.68487472+...62759+0.09842774j],
[0.31758111+0.66954795j],
[0.77389198+0.63448525j],
[0.61821572+0.53186528j]])
a1 = array([[0.97637554+0.57238605j],
[0.73179659+0.93713906j],
[0.68487472+0.45301583j],
[0.39762759+0.09842774j],
[0.31758111+0.66954795j],
[0.77389198+0.63448525j],
[0.61821572+0.53186528j]])
q = array([[-0.15132749-0.08440712j, -0.43092343+0.17405462j,
-0.35340931+0.3368798j , -0.30535479+0.14301866j,
...,
-0.04182664-0.02512782j, -0.08309283+0.02979214j,
-0.11864701-0.01153338j, 0.90311691-0.00710278j]])
q1 = array([[ 4.41230534e-01-1.67306246e-01j, -8.19554149e-01+3.25046417e-01j,
-8.33947217e-09-1.58728908e-10j, -9....j,
1.32882592e-01-5.89349359e-02j, 3.14407602e-01+7.45949579e-03j,
7.75196537e-01-2.25450025e-10j]])
r = array([[-2.4352677+0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j]])
r1 = array([[1.5046224+1.8677737j],
[0. +0.j ],
[0. +0.j ],
[0. +0.j ],
[0. +0.j ],
[0. +0.j ],
[0. +0.j ]])
row = 0
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154eeba0>
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.97637554+0.57238605j],
[0.73179659+0.93713906j],
[0.68487472+0.45301583j],
[0.39762759+0.09842774j],
[0.31758111+0.66954795j],
[0.77389198+0.63448525j],
[0.61821572+0.53186528j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[ 4.41230534e-01-1.67306246e-01j, -8.19554149e-01+3.25046417e-01j,
-8.33947217e-09-1.58728908e-10j, -9....j,
1.32882592e-01-5.89349359e-02j, 3.14407602e-01+7.45949579e-03j,
7.75196537e-01-2.25450025e-10j]])
r = array([[1.5046224+1.8677737j],
[0. +0.j ],
[0. +0.j ],
[0. +0.j ],
[0. +0.j ],
[0. +0.j ],
[0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 4.41230534e-01-1.67306246e-01j, -8.19554149e-01+3.25046417e-01j,
-8.33947217e-09-1.58728908e-10j, -9....j,
1.32882592e-01-5.89349359e-02j, 3.14407602e-01+7.45949579e-03j,
7.75196537e-01-2.25450025e-10j]])
aTa = array([[ 9.99999994e-01+0.00000000e+00j, -8.86709916e-09+3.51681305e-09j,
-8.48683428e-09+4.60018537e-10j, -3....j,
-1.48535698e-16+7.02563008e-17j, -7.93409312e-17-1.04083409e-17j,
1.00000000e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 37 / 49 (75.5%)
E Max absolute difference among violations: 8.83304271e-08
E Max relative difference among violations: 8.83304271e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, -8.867099e-09+3.516813e-09j,
E -8.486834e-09+4.600185e-10j, -3.963519e-09-1.172315e-09j,
E 1.742690e-10-1.186273e-10j, 1.838088e-10-2.900297e-11j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x116b0c860>, array([[ 9.99999994e-01+0.00000000e+00j, -8.86709916e-09+..., 0.],
[0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRdelete_D.test_Mx1_p_row _________________________
scipy/linalg/tests/test_decomp_update.py:261: in test_Mx1_p_row
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.20555395j],
[0.97637554+0.57238605j],
[0.73179659+0.93713906j],
[0.68487472+...62759+0.09842774j],
[0.31758111+0.66954795j],
[0.77389198+0.63448525j],
[0.61821572+0.53186528j]])
a1 = array([[0.73179659+0.93713906j],
[0.68487472+0.45301583j],
[0.39762759+0.09842774j],
[0.31758111+0.66954795j],
[0.77389198+0.63448525j],
[0.61821572+0.53186528j]])
ndel = 2
q = array([[-0.15132749-0.08440712j, -0.43092343+0.17405462j,
-0.35340931+0.3368798j , -0.30535479+0.14301866j,
...,
-0.04182664-0.02512782j, -0.08309283+0.02979214j,
-0.11864701-0.01153338j, 0.90311691-0.00710278j]])
q1 = array([[ 5.62288284e-01-6.23828075e-10j, -4.22347967e-01-1.41572615e-01j,
5.48187097e-01+4.30002458e-01j, -3....1564e-02j, 2.94058496e-01-1.30418275e-01j,
5.43722048e-01+1.29001089e-02j, 1.87937731e-01-2.27287869e-10j]])
r = array([[-2.4352677+0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j]])
r1 = array([[1.30146155+1.66665229j],
[0. +0.j ],
[0. +0.j ],
[0. +0.j ],
[0. +0.j ],
[0. +0.j ]])
row = 0
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154eed80>
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.73179659+0.93713906j],
[0.68487472+0.45301583j],
[0.39762759+0.09842774j],
[0.31758111+0.66954795j],
[0.77389198+0.63448525j],
[0.61821572+0.53186528j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[ 5.62288284e-01-6.23828075e-10j, -4.22347967e-01-1.41572615e-01j,
5.48187097e-01+4.30002458e-01j, -3....1564e-02j, 2.94058496e-01-1.30418275e-01j,
5.43722048e-01+1.29001089e-02j, 1.87937731e-01-2.27287869e-10j]])
r = array([[1.30146155+1.66665229j],
[0. +0.j ],
[0. +0.j ],
[0. +0.j ],
[0. +0.j ],
[0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 5.62288284e-01-6.23828075e-10j, -4.22347967e-01-1.41572615e-01j,
5.48187097e-01+4.30002458e-01j, -3....1564e-02j, 2.94058496e-01-1.30418275e-01j,
5.43722048e-01+1.29001089e-02j, 1.87937731e-01-2.27287869e-10j]])
aTa = array([[ 9.99999959e-01+0.00000000e+00j, -1.61398358e-08-3.05879658e-09j,
1.09921010e-08+6.42607556e-09j, 6....3349e-11j, -1.13003621e-10+5.01183539e-11j,
-2.62305656e-10-6.22338292e-12j, 1.00000005e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 36 / 36 (100%)
E Max absolute difference among violations: 1.06338614e-07
E Max relative difference among violations: 1.06338614e-07
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, -1.613984e-08-3.058797e-09j,
E 1.099210e-08+6.426076e-09j, 6.086391e-09-2.264682e-09j,
E -1.122380e-10-9.557480e-12j, -3.501530e-10-2.146613e-11j],...
E DESIRED: array([[1., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a93ba0>, array([[ 9.99999959e-01+0.00000000e+00j, -1.61398358e-08-..., 1., 0., 0., 0.],
[0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
__________________ TestQRdelete_D.test_non_unit_strides_1_row __________________
scipy/linalg/tests/test_decomp_update.py:415: in test_non_unit_strides_1_row
self.base_non_simple_strides(make_strided, [0], 1, 'row', True)
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154ec740>
scipy/linalg/tests/test_decomp_update.py:385: in base_non_simple_strides
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.20555395+0.1282908j , 0.57238605+0.54059797j,
0.93713906+0.29298177j, 0.45301583+0.69374649j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function make_strided at 0x115363240>
k = 0
ks = [0]
overwriteable = True
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[ 0.1149761 +0.00424597j, -0.43763386+0.4031438j ,
0.23610096+0.20968923j, -0.03919743+0.28842971j,
..., 0.12788907+0.1575589j ,
-0.48170736-0.16012074j, -0.47209458+0.33572422j,
-0.01777501+0.11292036j]])
qind = (slice(1, None, None), slice(1, None, None))
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[ 1.82651172+1.04835253j, 0.75521744+1.12040311j,
1.51640873+1.20218891j, 1.03661284+1.15693453j,
...,
0. +0.j , 0. +0.j ,
0.29227193-0.20719596j, 0.50976199+0.38438066j]])
rind = (slice(1, None, None), slice(None, None, None))
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154ec740>
type = 'sqr'
which = 'row'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.20555395+0.1282908j , 0.57238605+0.54059797j,
0.93713906+0.29298177j, 0.45301583+0.69374649j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[ 0.1149761 +0.00424597j, -0.43763386+0.4031438j ,
0.23610096+0.20968923j, -0.03919743+0.28842971j,
..., 0.12788907+0.1575589j ,
-0.48170736-0.16012074j, -0.47209458+0.33572422j,
-0.01777501+0.11292036j]])
r = array([[ 1.82651172+1.04835253j, 0.75521744+1.12040311j,
1.51640873+1.20218891j, 1.03661284+1.15693453j,
...,
0. +0.j , 0. +0.j ,
0.29227193-0.20719596j, 0.50976199+0.38438066j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 0.1149761 +0.00424597j, -0.43763386+0.4031438j ,
0.23610096+0.20968923j, -0.03919743+0.28842971j,
..., 0.12788907+0.1575589j ,
-0.48170736-0.16012074j, -0.47209458+0.33572422j,
-0.01777501+0.11292036j]])
aTa = array([[ 9.99999922e-01+0.00000000e+00j, -5.70563263e-10+4.30775488e-09j,
-2.03079380e-09+2.82680851e-09j, 6....j,
-2.77555756e-17+3.46944695e-17j, -2.77555756e-17-1.87350135e-16j,
9.99999950e-01+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 37 / 49 (75.5%)
E Max absolute difference among violations: 7.80762823e-08
E Max relative difference among violations: 7.80762823e-08
E ACTUAL: array([[ 9.999999e-01+0.000000e+00j, -5.705633e-10+4.307755e-09j,
E -2.030794e-09+2.826809e-09j, 6.552514e-10+1.999572e-11j,
E -2.192245e-11+5.101021e-11j, -2.505817e-09+1.507515e-10j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a1c2c0>, array([[ 9.99999922e-01+0.00000000e+00j, -5.70563263e-10+..., 0.],
[0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
__________________ TestQRdelete_D.test_non_unit_strides_p_row __________________
scipy/linalg/tests/test_decomp_update.py:418: in test_non_unit_strides_p_row
self.base_non_simple_strides(make_strided, [0], 3, 'row', True)
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154ef680>
scipy/linalg/tests/test_decomp_update.py:385: in base_non_simple_strides
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.87183943+0.65126979j, 0.42412754+0.8511807j ,
0.33271532+0.83206935j, 0.54201381+0.94103036j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function make_strided at 0x115363240>
k = 0
ks = [0]
overwriteable = True
p = 3
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[ 0.43232687+0.29660819j, -0.06427712+0.36227472j,
0.31326021+0.18816787j, 0.2353128 -0.11906983j,
..., 0.21828977+0.18282673j,
-0.18215853+0.50766036j, 0.17005684+0.34857154j,
0.49073378+0.30954483j]])
qind = (slice(3, None, None), slice(3, None, None))
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[ 2.07394288+0.08355089j, 1.06815653+0.62286165j,
1.72371526+0.45505142j, 1.24624171+0.48966283j,
...,
0.47236083+0.34860438j, 0.08541563+0.77095928j,
0.39746499+0.53705794j, 0.42158476+0.41801373j]])
rind = (slice(3, None, None), slice(None, None, None))
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
s = slice(0, 3, None)
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154ef680>
type = 'sqr'
which = 'row'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.87183943+0.65126979j, 0.42412754+0.8511807j ,
0.33271532+0.83206935j, 0.54201381+0.94103036j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[ 0.43232687+0.29660819j, -0.06427712+0.36227472j,
0.31326021+0.18816787j, 0.2353128 -0.11906983j,
..., 0.21828977+0.18282673j,
-0.18215853+0.50766036j, 0.17005684+0.34857154j,
0.49073378+0.30954483j]])
r = array([[ 2.07394288+0.08355089j, 1.06815653+0.62286165j,
1.72371526+0.45505142j, 1.24624171+0.48966283j,
...,
0.47236083+0.34860438j, 0.08541563+0.77095928j,
0.39746499+0.53705794j, 0.42158476+0.41801373j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 0.43232687+0.29660819j, -0.06427712+0.36227472j,
0.31326021+0.18816787j, 0.2353128 -0.11906983j,
..., 0.21828977+0.18282673j,
-0.18215853+0.50766036j, 0.17005684+0.34857154j,
0.49073378+0.30954483j]])
aTa = array([[ 9.99999906e-01+0.00000000e+00j, 3.95733057e-09+8.09267209e-10j,
2.62645239e-09+8.99134684e-10j, -1....j,
-1.14169350e-08+4.53999443e-09j, -9.29652080e-09+7.83433979e-09j,
9.99999995e-01+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 25 / 25 (100%)
E Max absolute difference among violations: 9.37180213e-08
E Max relative difference among violations: 9.37180213e-08
E ACTUAL: array([[ 9.999999e-01+0.000000e+00j, 3.957331e-09+8.092672e-10j,
E 2.626452e-09+8.991347e-10j, -1.679361e-09+3.820927e-10j,
E 2.546410e-09+1.613665e-09j],...
E DESIRED: array([[1., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0.],
E [0., 0., 1., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a934c0>, array([[ 9.99999906e-01+0.00000000e+00j, 3.95733057e-09+...,
[0., 1., 0., 0., 0.],
[0., 0., 1., 0., 0.],
[0., 0., 0., 1., 0.],
[0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
__________________ TestQRdelete_D.test_non_unit_strides_1_col __________________
scipy/linalg/tests/test_decomp_update.py:421: in test_non_unit_strides_1_col
self.base_non_simple_strides(make_strided, [0], 1, 'col', True)
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154ef8c0>
scipy/linalg/tests/test_decomp_update.py:385: in base_non_simple_strides
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.97637554+0.06374039j, 0.73179659+0.89841842j,
0.68487472+0.67191936j, 0.39762759+0.13461565j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
adjust_strides = <function make_strided at 0x115363240>
k = 0
ks = [0]
overwriteable = True
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.47037769+0.14876758j, -0.32753936+0.42734483j,
-0.35268291-0.06264357j, 0.04591817-0.06243203j,
...,
0.04525421-0.49077225j, 0.31458061-0.01457977j,
0.44038366-0.07025018j, 0.09398649-0.20173232j]])
qind = (slice(None, None, None), slice(None, None, None))
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-1.84801495-0.71998548j, -1.88842273-0.55242738j,
-1.8990742 -1.02517775j, -1.56852597-0.20076271j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
rind = (slice(None, None, None), slice(None, -1, None))
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154ef8c0>
type = 'sqr'
which = 'col'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.97637554+0.06374039j, 0.73179659+0.89841842j,
0.68487472+0.67191936j, 0.39762759+0.13461565j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.47037769+0.14876758j, -0.32753936+0.42734483j,
-0.35268291-0.06264357j, 0.04591817-0.06243203j,
...,
0.04525421-0.49077225j, 0.31458061-0.01457977j,
0.44038366-0.07025018j, 0.09398649-0.20173232j]])
r = array([[-1.84801495-0.71998548j, -1.88842273-0.55242738j,
-1.8990742 -1.02517775j, -1.56852597-0.20076271j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.47037769+0.14876758j, -0.32753936+0.42734483j,
-0.35268291-0.06264357j, 0.04591817-0.06243203j,
...,
0.04525421-0.49077225j, 0.31458061-0.01457977j,
0.44038366-0.07025018j, 0.09398649-0.20173232j]])
aTa = array([[ 9.99999974e-01+0.00000000e+00j, 4.85722573e-17+2.49800181e-16j,
-2.77555756e-17-1.24900090e-16j, 1....2218e-09j, 4.78046785e-09+2.06815331e-08j,
-1.28253477e-09-2.70580357e-10j, 1.00000001e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 50 / 64 (78.1%)
E Max absolute difference among violations: 3.9132585e-08
E Max relative difference among violations: 3.9132585e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, 4.857226e-17+2.498002e-16j,
E -2.775558e-17-1.249001e-16j, 1.110223e-16-2.151057e-16j,
E 4.163336e-17+1.387779e-16j, 1.526557e-16-6.938894e-18j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x116b7a3e0>, array([[ 9.99999974e-01+0.00000000e+00j, 4.85722573e-17+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
____________________ TestQRdelete_D.test_neg_strides_1_row _____________________
scipy/linalg/tests/test_decomp_update.py:427: in test_neg_strides_1_row
self.base_non_simple_strides(negate_strides, [0], 1, 'row', False)
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154efd40>
scipy/linalg/tests/test_decomp_update.py:385: in base_non_simple_strides
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.20555395+0.1282908j , 0.57238605+0.54059797j,
0.93713906+0.29298177j, 0.45301583+0.69374649j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function negate_strides at 0x1153632e0>
k = 0
ks = [0]
overwriteable = False
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[ 0.1149761 +0.00424597j, -0.43763386+0.4031438j ,
0.23610096+0.20968923j, -0.03919743+0.28842971j,
..., 0.12788907+0.1575589j ,
-0.48170736-0.16012074j, -0.47209458+0.33572422j,
-0.01777501+0.11292036j]])
qind = (slice(1, None, None), slice(1, None, None))
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[ 1.82651172+1.04835253j, 0.75521744+1.12040311j,
1.51640873+1.20218891j, 1.03661284+1.15693453j,
...,
0. +0.j , 0. +0.j ,
0.29227193-0.20719596j, 0.50976199+0.38438066j]])
rind = (slice(1, None, None), slice(None, None, None))
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154efd40>
type = 'sqr'
which = 'row'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.20555395+0.1282908j , 0.57238605+0.54059797j,
0.93713906+0.29298177j, 0.45301583+0.69374649j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[ 0.1149761 +0.00424597j, -0.43763386+0.4031438j ,
0.23610096+0.20968923j, -0.03919743+0.28842971j,
..., 0.12788907+0.1575589j ,
-0.48170736-0.16012074j, -0.47209458+0.33572422j,
-0.01777501+0.11292036j]])
r = array([[ 1.82651172+1.04835253j, 0.75521744+1.12040311j,
1.51640873+1.20218891j, 1.03661284+1.15693453j,
...,
0. +0.j , 0. +0.j ,
0.29227193-0.20719596j, 0.50976199+0.38438066j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 0.1149761 +0.00424597j, -0.43763386+0.4031438j ,
0.23610096+0.20968923j, -0.03919743+0.28842971j,
..., 0.12788907+0.1575589j ,
-0.48170736-0.16012074j, -0.47209458+0.33572422j,
-0.01777501+0.11292036j]])
aTa = array([[ 9.99999922e-01+0.00000000e+00j, -5.70563263e-10+4.30775488e-09j,
-2.03079380e-09+2.82680851e-09j, 6....j,
-2.77555756e-17+3.46944695e-17j, -2.77555756e-17-1.87350135e-16j,
9.99999950e-01+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 37 / 49 (75.5%)
E Max absolute difference among violations: 7.80762823e-08
E Max relative difference among violations: 7.80762823e-08
E ACTUAL: array([[ 9.999999e-01+0.000000e+00j, -5.705633e-10+4.307755e-09j,
E -2.030794e-09+2.826809e-09j, 6.552514e-10+1.999572e-11j,
E -2.192245e-11+5.101021e-11j, -2.505817e-09+1.507515e-10j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x116dd4ea0>, array([[ 9.99999922e-01+0.00000000e+00j, -5.70563263e-10+..., 0.],
[0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
____________________ TestQRdelete_D.test_neg_strides_p_row _____________________
scipy/linalg/tests/test_decomp_update.py:430: in test_neg_strides_p_row
self.base_non_simple_strides(negate_strides, [0], 3, 'row', False)
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154eff80>
scipy/linalg/tests/test_decomp_update.py:385: in base_non_simple_strides
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.87183943+0.65126979j, 0.42412754+0.8511807j ,
0.33271532+0.83206935j, 0.54201381+0.94103036j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function negate_strides at 0x1153632e0>
k = 0
ks = [0]
overwriteable = False
p = 3
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[ 0.43232687+0.29660819j, -0.06427712+0.36227472j,
0.31326021+0.18816787j, 0.2353128 -0.11906983j,
..., 0.21828977+0.18282673j,
-0.18215853+0.50766036j, 0.17005684+0.34857154j,
0.49073378+0.30954483j]])
qind = (slice(3, None, None), slice(3, None, None))
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[ 2.07394288+0.08355089j, 1.06815653+0.62286165j,
1.72371526+0.45505142j, 1.24624171+0.48966283j,
...,
0.47236083+0.34860438j, 0.08541563+0.77095928j,
0.39746499+0.53705794j, 0.42158476+0.41801373j]])
rind = (slice(3, None, None), slice(None, None, None))
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
s = slice(0, 3, None)
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154eff80>
type = 'sqr'
which = 'row'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.87183943+0.65126979j, 0.42412754+0.8511807j ,
0.33271532+0.83206935j, 0.54201381+0.94103036j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[ 0.43232687+0.29660819j, -0.06427712+0.36227472j,
0.31326021+0.18816787j, 0.2353128 -0.11906983j,
..., 0.21828977+0.18282673j,
-0.18215853+0.50766036j, 0.17005684+0.34857154j,
0.49073378+0.30954483j]])
r = array([[ 2.07394288+0.08355089j, 1.06815653+0.62286165j,
1.72371526+0.45505142j, 1.24624171+0.48966283j,
...,
0.47236083+0.34860438j, 0.08541563+0.77095928j,
0.39746499+0.53705794j, 0.42158476+0.41801373j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 0.43232687+0.29660819j, -0.06427712+0.36227472j,
0.31326021+0.18816787j, 0.2353128 -0.11906983j,
..., 0.21828977+0.18282673j,
-0.18215853+0.50766036j, 0.17005684+0.34857154j,
0.49073378+0.30954483j]])
aTa = array([[ 9.99999906e-01+0.00000000e+00j, 3.95733057e-09+8.09267209e-10j,
2.62645239e-09+8.99134684e-10j, -1....j,
-1.14169350e-08+4.53999443e-09j, -9.29652080e-09+7.83433979e-09j,
9.99999995e-01+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 25 / 25 (100%)
E Max absolute difference among violations: 9.37180213e-08
E Max relative difference among violations: 9.37180213e-08
E ACTUAL: array([[ 9.999999e-01+0.000000e+00j, 3.957331e-09+8.092672e-10j,
E 2.626452e-09+8.991347e-10j, -1.679361e-09+3.820927e-10j,
E 2.546410e-09+1.613665e-09j],...
E DESIRED: array([[1., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0.],
E [0., 0., 1., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x105773560>, array([[ 9.99999906e-01+0.00000000e+00j, 3.95733057e-09+...,
[0., 1., 0., 0., 0.],
[0., 0., 1., 0., 0.],
[0., 0., 0., 1., 0.],
[0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
____________________ TestQRdelete_D.test_neg_strides_1_col _____________________
scipy/linalg/tests/test_decomp_update.py:433: in test_neg_strides_1_col
self.base_non_simple_strides(negate_strides, [0], 1, 'col', False)
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154f0a10>
scipy/linalg/tests/test_decomp_update.py:385: in base_non_simple_strides
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.97637554+0.06374039j, 0.73179659+0.89841842j,
0.68487472+0.67191936j, 0.39762759+0.13461565j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
adjust_strides = <function negate_strides at 0x1153632e0>
k = 0
ks = [0]
overwriteable = False
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.47037769+0.14876758j, -0.32753936+0.42734483j,
-0.35268291-0.06264357j, 0.04591817-0.06243203j,
...,
0.04525421-0.49077225j, 0.31458061-0.01457977j,
0.44038366-0.07025018j, 0.09398649-0.20173232j]])
qind = (slice(None, None, None), slice(None, None, None))
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-1.84801495-0.71998548j, -1.88842273-0.55242738j,
-1.8990742 -1.02517775j, -1.56852597-0.20076271j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
rind = (slice(None, None, None), slice(None, -1, None))
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154f0a10>
type = 'sqr'
which = 'col'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.97637554+0.06374039j, 0.73179659+0.89841842j,
0.68487472+0.67191936j, 0.39762759+0.13461565j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.47037769+0.14876758j, -0.32753936+0.42734483j,
-0.35268291-0.06264357j, 0.04591817-0.06243203j,
...,
0.04525421-0.49077225j, 0.31458061-0.01457977j,
0.44038366-0.07025018j, 0.09398649-0.20173232j]])
r = array([[-1.84801495-0.71998548j, -1.88842273-0.55242738j,
-1.8990742 -1.02517775j, -1.56852597-0.20076271j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.47037769+0.14876758j, -0.32753936+0.42734483j,
-0.35268291-0.06264357j, 0.04591817-0.06243203j,
...,
0.04525421-0.49077225j, 0.31458061-0.01457977j,
0.44038366-0.07025018j, 0.09398649-0.20173232j]])
aTa = array([[ 9.99999974e-01+2.50555212e-17j, 4.85722573e-17+3.02994704e-16j,
-2.77555756e-17-1.18305520e-16j, 1....2219e-09j, 4.78046785e-09+2.06815331e-08j,
-1.28253477e-09-2.70580343e-10j, 1.00000001e+00-1.23975590e-18j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 50 / 64 (78.1%)
E Max absolute difference among violations: 3.9132585e-08
E Max relative difference among violations: 3.9132585e-08
E ACTUAL: array([[ 1.000000e+00+2.505552e-17j, 4.857226e-17+3.029947e-16j,
E -2.775558e-17-1.183055e-16j, 1.110223e-16-2.101533e-16j,
E 4.163336e-17+1.646630e-16j, 1.526557e-16-1.090537e-18j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a1c900>, array([[ 9.99999974e-01+2.50555212e-17j, 4.85722573e-17+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________ TestQRdelete_D.test_non_itemize_strides_1_row _________________
scipy/linalg/tests/test_decomp_update.py:439: in test_non_itemize_strides_1_row
self.base_non_simple_strides(nonitemsize_strides, [0], 1, 'row', False)
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154f37d0>
scipy/linalg/tests/test_decomp_update.py:385: in base_non_simple_strides
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.20555395+0.1282908j , 0.57238605+0.54059797j,
0.93713906+0.29298177j, 0.45301583+0.69374649j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function nonitemsize_strides at 0x115363380>
k = 0
ks = [0]
overwriteable = False
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[ 0.1149761 +0.00424597j, -0.43763386+0.4031438j ,
0.23610096+0.20968923j, -0.03919743+0.28842971j,
..., 0.12788907+0.1575589j ,
-0.48170736-0.16012074j, -0.47209458+0.33572422j,
-0.01777501+0.11292036j]])
qind = (slice(1, None, None), slice(1, None, None))
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[ 1.82651172+1.04835253j, 0.75521744+1.12040311j,
1.51640873+1.20218891j, 1.03661284+1.15693453j,
...,
0. +0.j , 0. +0.j ,
0.29227193-0.20719596j, 0.50976199+0.38438066j]])
rind = (slice(1, None, None), slice(None, None, None))
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154f37d0>
type = 'sqr'
which = 'row'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.20555395+0.1282908j , 0.57238605+0.54059797j,
0.93713906+0.29298177j, 0.45301583+0.69374649j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[ 0.1149761 +0.00424597j, -0.43763386+0.4031438j ,
0.23610096+0.20968923j, -0.03919743+0.28842971j,
..., 0.12788907+0.1575589j ,
-0.48170736-0.16012074j, -0.47209458+0.33572422j,
-0.01777501+0.11292036j]])
r = array([[ 1.82651172+1.04835253j, 0.75521744+1.12040311j,
1.51640873+1.20218891j, 1.03661284+1.15693453j,
...,
0. +0.j , 0. +0.j ,
0.29227193-0.20719596j, 0.50976199+0.38438066j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 0.1149761 +0.00424597j, -0.43763386+0.4031438j ,
0.23610096+0.20968923j, -0.03919743+0.28842971j,
..., 0.12788907+0.1575589j ,
-0.48170736-0.16012074j, -0.47209458+0.33572422j,
-0.01777501+0.11292036j]])
aTa = array([[ 9.99999922e-01+0.00000000e+00j, -5.70563263e-10+4.30775488e-09j,
-2.03079380e-09+2.82680851e-09j, 6....j,
-2.77555756e-17+3.46944695e-17j, -2.77555756e-17-1.87350135e-16j,
9.99999950e-01+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 37 / 49 (75.5%)
E Max absolute difference among violations: 7.80762823e-08
E Max relative difference among violations: 7.80762823e-08
E ACTUAL: array([[ 9.999999e-01+0.000000e+00j, -5.705633e-10+4.307755e-09j,
E -2.030794e-09+2.826809e-09j, 6.552514e-10+1.999572e-11j,
E -2.192245e-11+5.101021e-11j, -2.505817e-09+1.507515e-10j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a1d120>, array([[ 9.99999922e-01+0.00000000e+00j, -5.70563263e-10+..., 0.],
[0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________ TestQRdelete_D.test_non_itemize_strides_p_row _________________
scipy/linalg/tests/test_decomp_update.py:442: in test_non_itemize_strides_p_row
self.base_non_simple_strides(nonitemsize_strides, [0], 3, 'row', False)
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154f3dd0>
scipy/linalg/tests/test_decomp_update.py:385: in base_non_simple_strides
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.87183943+0.65126979j, 0.42412754+0.8511807j ,
0.33271532+0.83206935j, 0.54201381+0.94103036j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function nonitemsize_strides at 0x115363380>
k = 0
ks = [0]
overwriteable = False
p = 3
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[ 0.43232687+0.29660819j, -0.06427712+0.36227472j,
0.31326021+0.18816787j, 0.2353128 -0.11906983j,
..., 0.21828977+0.18282673j,
-0.18215853+0.50766036j, 0.17005684+0.34857154j,
0.49073378+0.30954483j]])
qind = (slice(3, None, None), slice(3, None, None))
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[ 2.07394288+0.08355089j, 1.06815653+0.62286165j,
1.72371526+0.45505142j, 1.24624171+0.48966283j,
...,
0.47236083+0.34860438j, 0.08541563+0.77095928j,
0.39746499+0.53705794j, 0.42158476+0.41801373j]])
rind = (slice(3, None, None), slice(None, None, None))
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
s = slice(0, 3, None)
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154f3dd0>
type = 'sqr'
which = 'row'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.87183943+0.65126979j, 0.42412754+0.8511807j ,
0.33271532+0.83206935j, 0.54201381+0.94103036j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[ 0.43232687+0.29660819j, -0.06427712+0.36227472j,
0.31326021+0.18816787j, 0.2353128 -0.11906983j,
..., 0.21828977+0.18282673j,
-0.18215853+0.50766036j, 0.17005684+0.34857154j,
0.49073378+0.30954483j]])
r = array([[ 2.07394288+0.08355089j, 1.06815653+0.62286165j,
1.72371526+0.45505142j, 1.24624171+0.48966283j,
...,
0.47236083+0.34860438j, 0.08541563+0.77095928j,
0.39746499+0.53705794j, 0.42158476+0.41801373j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 0.43232687+0.29660819j, -0.06427712+0.36227472j,
0.31326021+0.18816787j, 0.2353128 -0.11906983j,
..., 0.21828977+0.18282673j,
-0.18215853+0.50766036j, 0.17005684+0.34857154j,
0.49073378+0.30954483j]])
aTa = array([[ 9.99999906e-01+0.00000000e+00j, 3.95733057e-09+8.09267209e-10j,
2.62645239e-09+8.99134684e-10j, -1....j,
-1.14169350e-08+4.53999443e-09j, -9.29652080e-09+7.83433979e-09j,
9.99999995e-01+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 25 / 25 (100%)
E Max absolute difference among violations: 9.37180213e-08
E Max relative difference among violations: 9.37180213e-08
E ACTUAL: array([[ 9.999999e-01+0.000000e+00j, 3.957331e-09+8.092672e-10j,
E 2.626452e-09+8.991347e-10j, -1.679361e-09+3.820927e-10j,
E 2.546410e-09+1.613665e-09j],...
E DESIRED: array([[1., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0.],
E [0., 0., 1., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x105773f60>, array([[ 9.99999906e-01+0.00000000e+00j, 3.95733057e-09+...,
[0., 1., 0., 0., 0.],
[0., 0., 1., 0., 0.],
[0., 0., 0., 1., 0.],
[0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________ TestQRdelete_D.test_non_itemize_strides_1_col _________________
scipy/linalg/tests/test_decomp_update.py:445: in test_non_itemize_strides_1_col
self.base_non_simple_strides(nonitemsize_strides, [0], 1, 'col', False)
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154f01a0>
scipy/linalg/tests/test_decomp_update.py:385: in base_non_simple_strides
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.97637554+0.06374039j, 0.73179659+0.89841842j,
0.68487472+0.67191936j, 0.39762759+0.13461565j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
adjust_strides = <function nonitemsize_strides at 0x115363380>
k = 0
ks = [0]
overwriteable = False
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.47037769+0.14876758j, -0.32753936+0.42734483j,
-0.35268291-0.06264357j, 0.04591817-0.06243203j,
...,
0.04525421-0.49077225j, 0.31458061-0.01457977j,
0.44038366-0.07025018j, 0.09398649-0.20173232j]])
qind = (slice(None, None, None), slice(None, None, None))
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-1.84801495-0.71998548j, -1.88842273-0.55242738j,
-1.8990742 -1.02517775j, -1.56852597-0.20076271j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
rind = (slice(None, None, None), slice(None, -1, None))
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154f01a0>
type = 'sqr'
which = 'col'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.97637554+0.06374039j, 0.73179659+0.89841842j,
0.68487472+0.67191936j, 0.39762759+0.13461565j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.47037769+0.14876758j, -0.32753936+0.42734483j,
-0.35268291-0.06264357j, 0.04591817-0.06243203j,
...,
0.04525421-0.49077225j, 0.31458061-0.01457977j,
0.44038366-0.07025018j, 0.09398649-0.20173232j]])
r = array([[-1.84801495-0.71998548j, -1.88842273-0.55242738j,
-1.8990742 -1.02517775j, -1.56852597-0.20076271j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.47037769+0.14876758j, -0.32753936+0.42734483j,
-0.35268291-0.06264357j, 0.04591817-0.06243203j,
...,
0.04525421-0.49077225j, 0.31458061-0.01457977j,
0.44038366-0.07025018j, 0.09398649-0.20173232j]])
aTa = array([[ 9.99999974e-01+0.00000000e+00j, 4.85722573e-17+2.49800181e-16j,
-2.77555756e-17-1.24900090e-16j, 1....2218e-09j, 4.78046785e-09+2.06815331e-08j,
-1.28253477e-09-2.70580357e-10j, 1.00000001e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 50 / 64 (78.1%)
E Max absolute difference among violations: 3.9132585e-08
E Max relative difference among violations: 3.9132585e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, 4.857226e-17+2.498002e-16j,
E -2.775558e-17-1.249001e-16j, 1.110223e-16-2.151057e-16j,
E 4.163336e-17+1.387779e-16j, 1.526557e-16-6.938894e-18j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x116b0cea0>, array([[ 9.99999974e-01+0.00000000e+00j, 4.85722573e-17+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_______________ TestQRdelete_D.test_non_native_byte_order_1_row ________________
scipy/linalg/tests/test_decomp_update.py:451: in test_non_native_byte_order_1_row
self.base_non_simple_strides(make_nonnative, [0], 1, 'row', False)
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154f0620>
scipy/linalg/tests/test_decomp_update.py:385: in base_non_simple_strides
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.20555395+0.1282908j , 0.57238605+0.54059797j,
0.93713906+0.29298177j, 0.45301583+0.69374649j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function make_nonnative at 0x115363420>
k = 0
ks = [0]
overwriteable = False
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[ 0.1149761 +0.00424597j, -0.43763386+0.4031438j ,
0.23610096+0.20968923j, -0.03919743+0.28842971j,
..., 0.12788907+0.1575589j ,
-0.48170736-0.16012074j, -0.47209458+0.33572422j,
-0.01777501+0.11292036j]])
qind = (slice(1, None, None), slice(1, None, None))
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...0772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]], dtype='>c16')
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[ 1.82651172+1.04835253j, 0.75521744+1.12040311j,
1.51640873+1.20218891j, 1.03661284+1.15693453j,
...,
0. +0.j , 0. +0.j ,
0.29227193-0.20719596j, 0.50976199+0.38438066j]])
rind = (slice(1, None, None), slice(None, None, None))
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
... +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]], dtype='>c16')
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154f0620>
type = 'sqr'
which = 'row'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.20555395+0.1282908j , 0.57238605+0.54059797j,
0.93713906+0.29298177j, 0.45301583+0.69374649j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[ 0.1149761 +0.00424597j, -0.43763386+0.4031438j ,
0.23610096+0.20968923j, -0.03919743+0.28842971j,
..., 0.12788907+0.1575589j ,
-0.48170736-0.16012074j, -0.47209458+0.33572422j,
-0.01777501+0.11292036j]])
r = array([[ 1.82651172+1.04835253j, 0.75521744+1.12040311j,
1.51640873+1.20218891j, 1.03661284+1.15693453j,
...,
0. +0.j , 0. +0.j ,
0.29227193-0.20719596j, 0.50976199+0.38438066j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 0.1149761 +0.00424597j, -0.43763386+0.4031438j ,
0.23610096+0.20968923j, -0.03919743+0.28842971j,
..., 0.12788907+0.1575589j ,
-0.48170736-0.16012074j, -0.47209458+0.33572422j,
-0.01777501+0.11292036j]])
aTa = array([[ 9.99999922e-01+0.00000000e+00j, -5.70563263e-10+4.30775488e-09j,
-2.03079380e-09+2.82680851e-09j, 6....j,
-2.77555756e-17+3.46944695e-17j, -2.77555756e-17-1.87350135e-16j,
9.99999950e-01+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 37 / 49 (75.5%)
E Max absolute difference among violations: 7.80762823e-08
E Max relative difference among violations: 7.80762823e-08
E ACTUAL: array([[ 9.999999e-01+0.000000e+00j, -5.705633e-10+4.307755e-09j,
E -2.030794e-09+2.826809e-09j, 6.552514e-10+1.999572e-11j,
E -2.192245e-11+5.101021e-11j, -2.505817e-09+1.507515e-10j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a922a0>, array([[ 9.99999922e-01+0.00000000e+00j, -5.70563263e-10+..., 0.],
[0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_______________ TestQRdelete_D.test_non_native_byte_order_p_row ________________
scipy/linalg/tests/test_decomp_update.py:454: in test_non_native_byte_order_p_row
self.base_non_simple_strides(make_nonnative, [0], 3, 'row', False)
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154f0890>
scipy/linalg/tests/test_decomp_update.py:385: in base_non_simple_strides
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.87183943+0.65126979j, 0.42412754+0.8511807j ,
0.33271532+0.83206935j, 0.54201381+0.94103036j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function make_nonnative at 0x115363420>
k = 0
ks = [0]
overwriteable = False
p = 3
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[ 0.43232687+0.29660819j, -0.06427712+0.36227472j,
0.31326021+0.18816787j, 0.2353128 -0.11906983j,
..., 0.21828977+0.18282673j,
-0.18215853+0.50766036j, 0.17005684+0.34857154j,
0.49073378+0.30954483j]])
qind = (slice(3, None, None), slice(3, None, None))
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...0772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]], dtype='>c16')
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[ 2.07394288+0.08355089j, 1.06815653+0.62286165j,
1.72371526+0.45505142j, 1.24624171+0.48966283j,
...,
0.47236083+0.34860438j, 0.08541563+0.77095928j,
0.39746499+0.53705794j, 0.42158476+0.41801373j]])
rind = (slice(3, None, None), slice(None, None, None))
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
... +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]], dtype='>c16')
s = slice(0, 3, None)
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154f0890>
type = 'sqr'
which = 'row'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.87183943+0.65126979j, 0.42412754+0.8511807j ,
0.33271532+0.83206935j, 0.54201381+0.94103036j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[ 0.43232687+0.29660819j, -0.06427712+0.36227472j,
0.31326021+0.18816787j, 0.2353128 -0.11906983j,
..., 0.21828977+0.18282673j,
-0.18215853+0.50766036j, 0.17005684+0.34857154j,
0.49073378+0.30954483j]])
r = array([[ 2.07394288+0.08355089j, 1.06815653+0.62286165j,
1.72371526+0.45505142j, 1.24624171+0.48966283j,
...,
0.47236083+0.34860438j, 0.08541563+0.77095928j,
0.39746499+0.53705794j, 0.42158476+0.41801373j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 0.43232687+0.29660819j, -0.06427712+0.36227472j,
0.31326021+0.18816787j, 0.2353128 -0.11906983j,
..., 0.21828977+0.18282673j,
-0.18215853+0.50766036j, 0.17005684+0.34857154j,
0.49073378+0.30954483j]])
aTa = array([[ 9.99999906e-01+0.00000000e+00j, 3.95733057e-09+8.09267209e-10j,
2.62645239e-09+8.99134684e-10j, -1....j,
-1.14169350e-08+4.53999443e-09j, -9.29652080e-09+7.83433979e-09j,
9.99999995e-01+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 25 / 25 (100%)
E Max absolute difference among violations: 9.37180213e-08
E Max relative difference among violations: 9.37180213e-08
E ACTUAL: array([[ 9.999999e-01+0.000000e+00j, 3.957331e-09+8.092672e-10j,
E 2.626452e-09+8.991347e-10j, -1.679361e-09+3.820927e-10j,
E 2.546410e-09+1.613665e-09j],...
E DESIRED: array([[1., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0.],
E [0., 0., 1., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a92ac0>, array([[ 9.99999906e-01+0.00000000e+00j, 3.95733057e-09+...,
[0., 1., 0., 0., 0.],
[0., 0., 1., 0., 0.],
[0., 0., 0., 1., 0.],
[0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_______________ TestQRdelete_D.test_non_native_byte_order_1_col ________________
scipy/linalg/tests/test_decomp_update.py:457: in test_non_native_byte_order_1_col
self.base_non_simple_strides(make_nonnative, [0], 1, 'col', False)
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154f0aa0>
scipy/linalg/tests/test_decomp_update.py:385: in base_non_simple_strides
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.97637554+0.06374039j, 0.73179659+0.89841842j,
0.68487472+0.67191936j, 0.39762759+0.13461565j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
adjust_strides = <function make_nonnative at 0x115363420>
k = 0
ks = [0]
overwriteable = False
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.47037769+0.14876758j, -0.32753936+0.42734483j,
-0.35268291-0.06264357j, 0.04591817-0.06243203j,
...,
0.04525421-0.49077225j, 0.31458061-0.01457977j,
0.44038366-0.07025018j, 0.09398649-0.20173232j]])
qind = (slice(None, None, None), slice(None, None, None))
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...0772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]], dtype='>c16')
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-1.84801495-0.71998548j, -1.88842273-0.55242738j,
-1.8990742 -1.02517775j, -1.56852597-0.20076271j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
rind = (slice(None, None, None), slice(None, -1, None))
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
... +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]], dtype='>c16')
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154f0aa0>
type = 'sqr'
which = 'col'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.97637554+0.06374039j, 0.73179659+0.89841842j,
0.68487472+0.67191936j, 0.39762759+0.13461565j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.47037769+0.14876758j, -0.32753936+0.42734483j,
-0.35268291-0.06264357j, 0.04591817-0.06243203j,
...,
0.04525421-0.49077225j, 0.31458061-0.01457977j,
0.44038366-0.07025018j, 0.09398649-0.20173232j]])
r = array([[-1.84801495-0.71998548j, -1.88842273-0.55242738j,
-1.8990742 -1.02517775j, -1.56852597-0.20076271j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.47037769+0.14876758j, -0.32753936+0.42734483j,
-0.35268291-0.06264357j, 0.04591817-0.06243203j,
...,
0.04525421-0.49077225j, 0.31458061-0.01457977j,
0.44038366-0.07025018j, 0.09398649-0.20173232j]])
aTa = array([[ 9.99999974e-01+2.50555212e-17j, 4.85722573e-17+3.02994704e-16j,
-2.77555756e-17-1.18305520e-16j, 1....2219e-09j, 4.78046785e-09+2.06815331e-08j,
-1.28253477e-09-2.70580343e-10j, 1.00000001e+00-1.23975590e-18j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 50 / 64 (78.1%)
E Max absolute difference among violations: 3.9132585e-08
E Max relative difference among violations: 3.9132585e-08
E ACTUAL: array([[ 1.000000e+00+2.505552e-17j, 4.857226e-17+3.029947e-16j,
E -2.775558e-17-1.183055e-16j, 1.110223e-16-2.101533e-16j,
E 4.163336e-17+1.646630e-16j, 1.526557e-16-1.090537e-18j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a1d300>, array([[ 9.99999974e-01+2.50555212e-17j, 4.85722573e-17+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
__________________________ TestQRdelete_D.test_neg_k ___________________________
scipy/linalg/tests/test_decomp_update.py:470: in test_neg_k
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
k = -3
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.19801263+0.0589674j , 0.33776604-0.49235116j,
0.34734244-0.26636373j, -0.0446026 +0.3279256j ,
..., 0.0161472 +0.13050072j,
-0.08411875+0.4615752j , 0.06815306+0.39557077j,
0.49873854-0.11950628j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-1.51224575-1.17148074j, -0.90022788-1.12084261j,
-1.40833692-1.37620845j, -0.92179526-1.33952148j,
...,
0. +0.j , 0. +0.j ,
0.02604055+0.27296342j, -0.04942975+0.07150432j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154f0e60>
w = 'row'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.19801263+0.0589674j , 0.33776604-0.49235116j,
0.34734244-0.26636373j, -0.0446026 +0.3279256j ,
..., 0.0161472 +0.13050072j,
-0.08411875+0.4615752j , 0.06815306+0.39557077j,
0.49873854-0.11950628j]])
r = array([[-1.51224575-1.17148074j, -0.90022788-1.12084261j,
-1.40833692-1.37620845j, -0.92179526-1.33952148j,
...,
0. +0.j , 0. +0.j ,
0.02604055+0.27296342j, -0.04942975+0.07150432j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.19801263+0.0589674j , 0.33776604-0.49235116j,
0.34734244-0.26636373j, -0.0446026 +0.3279256j ,
..., 0.0161472 +0.13050072j,
-0.08411875+0.4615752j , 0.06815306+0.39557077j,
0.49873854-0.11950628j]])
aTa = array([[ 9.99999939e-01+0.00000000e+00j, 1.92359646e-09-2.09022605e-09j,
-3.06700941e-09-4.21300824e-10j, 4....j,
-2.77555756e-17+0.00000000e+00j, 4.85722573e-17-3.46944695e-17j,
1.00000002e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 37 / 49 (75.5%)
E Max absolute difference among violations: 7.67059343e-08
E Max relative difference among violations: 7.67059343e-08
E ACTUAL: array([[ 9.999999e-01+0.000000e+00j, 1.923596e-09-2.090226e-09j,
E -3.067009e-09-4.213008e-10j, 4.192861e-09-1.623657e-09j,
E -7.902239e-09+4.129177e-10j, 1.027415e-09-8.908226e-10j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a1c4a0>, array([[ 9.99999939e-01+0.00000000e+00j, 1.92359646e-09-..., 0.],
[0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
____________________ TestQRdelete_D.test_overwrite_qr_1_row ____________________
scipy/linalg/tests/test_decomp_update.py:512: in test_overwrite_qr_1_row
self.base_overwrite_qr('row', 1, True, True)
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154f1070>
scipy/linalg/tests/test_decomp_update.py:490: in base_overwrite_qr
check_qr(q1, r1, a1, self.rtol, self.atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = True
mode = 'full'
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[ 0.08536276+0.19636209j, -0.11406853+0.59378686j,
0.36130799-0.36401286j, -0.04556141-0.23255082j,
..., -0.00108719-0.16915125j,
0.39955442+0.04549229j, -0.50686919+0.15272124j,
0.27788572+0.16348364j]])
qind = (slice(1, None, None), slice(1, None, None))
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[ 1.29780312-1.3125694j , 1.02058114-0.51370755j,
1.49455599-1.26196308j, 1.17550466-0.64271816j,
...,
0. +0.j , 0. +0.j ,
0.23772329+0.29991434j, -0.30954259+0.37252896j]])
rind = (slice(1, None, None), slice(None, None, None))
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154f1070>
test_C = True
test_F = True
which = 'row'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[ 0.08536276+0.19636209j, -0.11406853+0.59378686j,
0.36130799-0.36401286j, -0.04556141-0.23255082j,
..., -0.00108719-0.16915125j,
0.39955442+0.04549229j, -0.50686919+0.15272124j,
0.27788572+0.16348364j]])
r = array([[ 1.29780312-1.3125694j , 1.02058114-0.51370755j,
1.49455599-1.26196308j, 1.17550466-0.64271816j,
...,
0. +0.j , 0. +0.j ,
0.23772329+0.29991434j, -0.30954259+0.37252896j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 0.08536276+0.19636209j, -0.11406853+0.59378686j,
0.36130799-0.36401286j, -0.04556141-0.23255082j,
..., -0.00108719-0.16915125j,
0.39955442+0.04549229j, -0.50686919+0.15272124j,
0.27788572+0.16348364j]])
aTa = array([[ 9.99999965e-01+0.00000000e+00j, 1.70107900e-09-5.36624213e-09j,
1.54164254e-09-9.36113704e-10j, 9....j,
2.77555756e-17-1.66533454e-16j, -2.77555756e-17-6.93889390e-18j,
1.00000002e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 37 / 49 (75.5%)
E Max absolute difference among violations: 6.84305326e-08
E Max relative difference among violations: 6.84305326e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, 1.701079e-09-5.366242e-09j,
E 1.541643e-09-9.361137e-10j, 9.755404e-10-1.420531e-09j,
E 2.804053e-09+1.985025e-10j, -3.351119e-09-1.358436e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a92f20>, array([[ 9.99999965e-01+0.00000000e+00j, 1.70107900e-09-..., 0.],
[0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_______________ TestQRdelete_D.test_overwrite_economic_qr_1_row ________________
scipy/linalg/tests/test_decomp_update.py:516: in test_overwrite_economic_qr_1_row
self.base_overwrite_qr('row', 1, True, True, 'economic')
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154f1250>
scipy/linalg/tests/test_decomp_update.py:490: in base_overwrite_qr
check_qr(q1, r1, a1, self.rtol, self.atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = False
mode = 'economic'
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[ 0.08536276+0.19636209j, -0.11406853+0.59378686j,
0.36130799-0.36401286j, -0.04556141-0.23255082j,
..., -0.00108719-0.16915125j,
0.39955442+0.04549229j, -0.50686919+0.15272124j,
0.27788572+0.16348364j]])
qind = (slice(1, None, None), slice(1, None, None))
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[ 1.29780312-1.3125694j , 1.02058114-0.51370755j,
1.49455599-1.26196308j, 1.17550466-0.64271816j,
...,
0. +0.j , 0. +0.j ,
0.23772329+0.29991434j, -0.30954259+0.37252896j]])
rind = (slice(1, None, None), slice(None, None, None))
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154f1250>
test_C = True
test_F = True
which = 'row'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[ 0.08536276+0.19636209j, -0.11406853+0.59378686j,
0.36130799-0.36401286j, -0.04556141-0.23255082j,
..., -0.00108719-0.16915125j,
0.39955442+0.04549229j, -0.50686919+0.15272124j,
0.27788572+0.16348364j]])
r = array([[ 1.29780312-1.3125694j , 1.02058114-0.51370755j,
1.49455599-1.26196308j, 1.17550466-0.64271816j,
...,
0. +0.j , 0. +0.j ,
0.23772329+0.29991434j, -0.30954259+0.37252896j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 0.08536276+0.19636209j, -0.11406853+0.59378686j,
0.36130799-0.36401286j, -0.04556141-0.23255082j,
..., -0.00108719-0.16915125j,
0.39955442+0.04549229j, -0.50686919+0.15272124j,
0.27788572+0.16348364j]])
aTa = array([[ 9.99999965e-01+0.00000000e+00j, 1.70107900e-09-5.36624213e-09j,
1.54164254e-09-9.36113704e-10j, 9....j,
2.77555756e-17-1.66533454e-16j, -2.77555756e-17-6.93889390e-18j,
1.00000002e+00+0.00000000e+00j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 37 / 49 (75.5%)
E Max absolute difference among violations: 6.84305326e-08
E Max relative difference among violations: 6.84305326e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, 1.701079e-09-5.366242e-09j,
E 1.541643e-09-9.361137e-10j, 9.755404e-10-1.420531e-09j,
E 2.804053e-09+1.985025e-10j, -3.351119e-09-1.358436e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x116b79d00>, array([[ 9.99999965e-01+0.00000000e+00j, 1.70107900e-09-..., 0.],
[0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
____________________ TestQRdelete_D.test_overwrite_qr_1_col ____________________
scipy/linalg/tests/test_decomp_update.py:521: in test_overwrite_qr_1_col
self.base_overwrite_qr('col', 1, True, True)
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154efc20>
scipy/linalg/tests/test_decomp_update.py:490: in base_overwrite_qr
check_qr(q1, r1, a1, self.rtol, self.atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.39762759+0.13461565j,
...645j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
assert_sqr = True
mode = 'full'
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, -0.16086959-0.02481765j,
...,
0.25499396+0.29133422j, 0.15196453+0.25354786j,
0.06824344-0.24218807j, 0.36361006-0.28922601j]])
qind = (slice(None, None, None), slice(None, None, None))
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -2.00215047+0.05468588j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
rind = (slice(None, None, None), slice(None, -1, None))
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154efc20>
test_C = True
test_F = True
which = 'col'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.39762759+0.13461565j,
...645j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, -0.16086959-0.02481765j,
...,
0.25499396+0.29133422j, 0.15196453+0.25354786j,
0.06824344-0.24218807j, 0.36361006-0.28922601j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -2.00215047+0.05468588j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, -0.16086959-0.02481765j,
...,
0.25499396+0.29133422j, 0.15196453+0.25354786j,
0.06824344-0.24218807j, 0.36361006-0.28922601j]])
aTa = array([[ 1.00000000e+00-3.27347053e-17j, -2.08166817e-16+3.99207317e-17j,
-3.20923843e-17-2.41553571e-16j, 0....4150e-09j, 3.58459131e-08+3.64481064e-08j,
5.81699028e-09-1.01860794e-08j, 1.00000001e+00+5.49182184e-18j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 17 / 64 (26.6%)
E Max absolute difference among violations: 1.4639227e-07
E Max relative difference among violations: 1.4639227e-07
E ACTUAL: array([[ 1.000000e+00-3.273471e-17j, -2.081668e-16+3.992073e-17j,
E -3.209238e-17-2.415536e-16j, 0.000000e+00-7.930896e-18j,
E -2.333203e-16-1.088930e-17j, 1.665335e-16+1.883495e-17j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x105773560>, array([[ 1.00000000e+00-3.27347053e-17j, -2.08166817e-16+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
____________________ TestQRdelete_D.test_overwrite_qr_p_row ____________________
scipy/linalg/tests/test_decomp_update.py:525: in test_overwrite_qr_p_row
self.base_overwrite_qr('row', 3, True, True)
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154ec080>
scipy/linalg/tests/test_decomp_update.py:490: in base_overwrite_qr
check_qr(q1, r1, a1, self.rtol, self.atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = True
mode = 'full'
p = 3
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.35098397+0.10056998j, 0.15951055-0.60212303j,
-0.47624335-0.30323775j, -0.02329565+0.04053602j,
..., -0.27126923-0.05269103j,
0.4167717 -0.18937598j, -0.00790129+0.14361973j,
0.40066017+0.12070713j]])
qind = (slice(3, None, None), slice(3, None, None))
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-0.86257502-0.65400121j, -0.76259794-0.92530927j,
-1.03921643-0.820741j , -0.6415012 -1.344621j ,
...,
-0.18022977-0.15449025j, -0.28183197+0.41697383j,
-0.20839673+0.22839568j, 0.30036979-0.09080914j]])
rind = (slice(3, None, None), slice(None, None, None))
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154ec080>
test_C = True
test_F = True
which = 'row'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.35098397+0.10056998j, 0.15951055-0.60212303j,
-0.47624335-0.30323775j, -0.02329565+0.04053602j,
..., -0.27126923-0.05269103j,
0.4167717 -0.18937598j, -0.00790129+0.14361973j,
0.40066017+0.12070713j]])
r = array([[-0.86257502-0.65400121j, -0.76259794-0.92530927j,
-1.03921643-0.820741j , -0.6415012 -1.344621j ,
...,
-0.18022977-0.15449025j, -0.28183197+0.41697383j,
-0.20839673+0.22839568j, 0.30036979-0.09080914j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.35098397+0.10056998j, 0.15951055-0.60212303j,
-0.47624335-0.30323775j, -0.02329565+0.04053602j,
..., -0.27126923-0.05269103j,
0.4167717 -0.18937598j, -0.00790129+0.14361973j,
0.40066017+0.12070713j]])
aTa = array([[ 9.99999885e-01+0.00000000e+00j, -1.91110391e-08-2.23724600e-09j,
3.33238190e-09+6.61925149e-09j, 2....j,
-4.41603909e-09-8.49403492e-10j, 1.52420069e-08-3.92763611e-09j,
1.00000000e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 25 / 25 (100%)
E Max absolute difference among violations: 1.15194368e-07
E Max relative difference among violations: 1.15194368e-07
E ACTUAL: array([[ 9.999999e-01+0.000000e+00j, -1.911104e-08-2.237246e-09j,
E 3.332382e-09+6.619251e-09j, 2.376277e-09-9.595278e-09j,
E -9.603804e-09-9.251214e-09j],...
E DESIRED: array([[1., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0.],
E [0., 0., 1., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a1c9a0>, array([[ 9.99999885e-01+0.00000000e+00j, -1.91110391e-08-...,
[0., 1., 0., 0., 0.],
[0., 0., 1., 0., 0.],
[0., 0., 0., 1., 0.],
[0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_______________ TestQRdelete_D.test_overwrite_economic_qr_p_row ________________
scipy/linalg/tests/test_decomp_update.py:529: in test_overwrite_economic_qr_p_row
self.base_overwrite_qr('row', 3, True, True, 'economic')
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154ee540>
scipy/linalg/tests/test_decomp_update.py:490: in base_overwrite_qr
check_qr(q1, r1, a1, self.rtol, self.atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = False
mode = 'economic'
p = 3
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.35098397+0.10056998j, 0.15951055-0.60212303j,
-0.47624335-0.30323775j, -0.02329565+0.04053602j,
..., -0.27126923-0.05269103j,
0.4167717 -0.18937598j, -0.00790129+0.14361973j,
0.40066017+0.12070713j]])
qind = (slice(3, None, None), slice(3, None, None))
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-0.86257502-0.65400121j, -0.76259794-0.92530927j,
-1.03921643-0.820741j , -0.6415012 -1.344621j ,
...,
-0.18022977-0.15449025j, -0.28183197+0.41697383j,
-0.20839673+0.22839568j, 0.30036979-0.09080914j]])
rind = (slice(3, None, None), slice(None, None, None))
self = <scipy.linalg.tests.test_decomp_update.TestQRdelete_D object at 0x1154ee540>
test_C = True
test_F = True
which = 'row'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[-0.35098397+0.10056998j, 0.15951055-0.60212303j,
-0.47624335-0.30323775j, -0.02329565+0.04053602j,
..., -0.27126923-0.05269103j,
0.4167717 -0.18937598j, -0.00790129+0.14361973j,
0.40066017+0.12070713j]])
r = array([[-0.86257502-0.65400121j, -0.76259794-0.92530927j,
-1.03921643-0.820741j , -0.6415012 -1.344621j ,
...,
-0.18022977-0.15449025j, -0.28183197+0.41697383j,
-0.20839673+0.22839568j, 0.30036979-0.09080914j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.35098397+0.10056998j, 0.15951055-0.60212303j,
-0.47624335-0.30323775j, -0.02329565+0.04053602j,
..., -0.27126923-0.05269103j,
0.4167717 -0.18937598j, -0.00790129+0.14361973j,
0.40066017+0.12070713j]])
aTa = array([[ 9.99999885e-01+0.00000000e+00j, -1.91110391e-08-2.23724600e-09j,
3.33238190e-09+6.61925149e-09j, 2....j,
-4.41603909e-09-8.49403492e-10j, 1.52420069e-08-3.92763611e-09j,
1.00000000e+00+0.00000000e+00j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 25 / 25 (100%)
E Max absolute difference among violations: 1.15194368e-07
E Max relative difference among violations: 1.15194368e-07
E ACTUAL: array([[ 9.999999e-01+0.000000e+00j, -1.911104e-08-2.237246e-09j,
E 3.332382e-09+6.619251e-09j, 2.376277e-09-9.595278e-09j,
E -9.603804e-09-9.251214e-09j],...
E DESIRED: array([[1., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0.],
E [0., 0., 1., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a1dee0>, array([[ 9.99999885e-01+0.00000000e+00j, -1.91110391e-08-...,
[0., 1., 0., 0., 0.],
[0., 0., 1., 0., 0.],
[0., 0., 0., 1., 0.],
[0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRinsert_D.test_sqr_1_row _________________________
scipy/linalg/tests/test_decomp_update.py:664: in test_sqr_1_row
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.3054083 -0.08568765j, -0.28014361-0.02952692j,
0.19563298-0.12369069j, 0.35006666-0.3434013j ,
..., -0.30086792+0.34744517j,
-0.18813176+0.41052714j, 0.26783025-0.11475425j,
0.39954433-0.05045007j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.25943349+0.j , -1.57561735-0.53703788j,
-2.15789998-0.51622516j, -1.68663252-0.76899105j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0. +0.j ]])
row = 0
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116161df0>
u = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.3054083 -0.08568765j, -0.28014361-0.02952692j,
0.19563298-0.12369069j, 0.35006666-0.3434013j ,
..., -0.30086792+0.34744517j,
-0.18813176+0.41052714j, 0.26783025-0.11475425j,
0.39954433-0.05045007j]])
r = array([[-2.25943349+0.j , -1.57561735-0.53703788j,
-2.15789998-0.51622516j, -1.68663252-0.76899105j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.3054083 -0.08568765j, -0.28014361-0.02952692j,
0.19563298-0.12369069j, 0.35006666-0.3434013j ,
..., -0.30086792+0.34744517j,
-0.18813176+0.41052714j, 0.26783025-0.11475425j,
0.39954433-0.05045007j]])
aTa = array([[ 1.00000000e+00+0.00000000e+00j, -1.11022302e-16+4.16333634e-17j,
-7.02563008e-17-1.90819582e-16j, 5....j,
3.08807077e-11+1.11925806e-08j, -2.04513818e-08+1.01838159e-08j,
1.00000006e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 65 / 81 (80.2%)
E Max absolute difference among violations: 5.54621176e-08
E Max relative difference among violations: 5.54621176e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, -1.110223e-16+4.163336e-17j,
E -7.025630e-17-1.908196e-16j, 5.551115e-17-1.387779e-17j,
E -2.775558e-17+2.365729e-16j, -6.938894e-17-1.316221e-16j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117c23ba0>, array([[ 1.00000000e+00+0.00000000e+00j, -1.11022302e-16+...., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRinsert_D.test_sqr_1_col _________________________
scipy/linalg/tests/test_decomp_update.py:679: in test_sqr_1_col
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.69004971+0.19360553j, 0.36852295+0.14279479j,
0.97637554+0.06374039j, 0.73179659+0.89841842j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
col = 0
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.31133284+0.00818516j, -0.25416105+0.08323764j,
0.36864495-0.29118349j, 0.47863211+0.16572372j,
...,
0.08312578-0.31312283j, -0.21976675-0.08076437j,
0.44780504-0.08993459j, 0.33595675-0.36059435j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.19856842-0.67966221j, -1.88878911+0.j ,
-1.64308481-0.60871325j, -2.29992159-0.42174528j,
..., 0. +0.j ,
0. +0.j , -0.23881927-0.01799643j,
0.36255911-0.33802782j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x1161621b0>
u = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.69004971+0.19360553j, 0.36852295+0.14279479j,
0.97637554+0.06374039j, 0.73179659+0.89841842j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.31133284+0.00818516j, -0.25416105+0.08323764j,
0.36864495-0.29118349j, 0.47863211+0.16572372j,
...,
0.08312578-0.31312283j, -0.21976675-0.08076437j,
0.44780504-0.08993459j, 0.33595675-0.36059435j]])
r = array([[-2.19856842-0.67966221j, -1.88878911+0.j ,
-1.64308481-0.60871325j, -2.29992159-0.42174528j,
..., 0. +0.j ,
0. +0.j , -0.23881927-0.01799643j,
0.36255911-0.33802782j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.31133284+0.00818516j, -0.25416105+0.08323764j,
0.36864495-0.29118349j, 0.47863211+0.16572372j,
...,
0.08312578-0.31312283j, -0.21976675-0.08076437j,
0.44780504-0.08993459j, 0.33595675-0.36059435j]])
aTa = array([[ 1.00000003e+00-4.19486303e-17j, 1.42353991e-08+4.53073387e-09j,
2.98351707e-09-4.70493859e-10j, -1....3635e-17j, 5.55111512e-17+1.01287903e-16j,
6.24500451e-17-1.49876673e-16j, 1.00000001e+00-1.90113599e-17j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 50 / 64 (78.1%)
E Max absolute difference among violations: 5.07377538e-08
E Max relative difference among violations: 5.07377538e-08
E ACTUAL: array([[ 1.000000e+00-4.194863e-17j, 1.423540e-08+4.530734e-09j,
E 2.983517e-09-4.704939e-10j, -1.125151e-10+3.811585e-10j,
E 7.080195e-10+1.609329e-09j, -3.315578e-09-8.653049e-10j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc4180>, array([[ 1.00000003e+00-4.19486303e-17j, 1.42353991e-08+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRinsert_D.test_sqr_p_col _________________________
scipy/linalg/tests/test_decomp_update.py:687: in test_sqr_p_col
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j , 0.36852295+0.14279479j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
col = 0
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.32280536-0.18345524j, -0.13370067-0.16881654j,
0.1255672 +0.04363497j, -0.16314046-0.13084926j,
...,
0.05340357-0.51189146j, 0.30834139+0.25530744j,
-0.33636952+0.0447657j , 0.40848463-0.18628585j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.4344645 -0.52224441j, -2.0138392 -0.27725687j,
-1.63506691-0.14215892j, -1.78122461+0.j ,
..., -0.04667299+0.25599919j,
-0.23169306+0.46437499j, -0.05506421+0.25416257j,
0.56397199+0.30820313j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116162390>
u = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j ],
[0.2670281 +0.8092116j... 0.19352602+0.20652787j],
[0.42250713+0.57184983j, 0.24968324+0.36117885j,
0.31072018+0.15989782j]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j , 0.36852295+0.14279479j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.32280536-0.18345524j, -0.13370067-0.16881654j,
0.1255672 +0.04363497j, -0.16314046-0.13084926j,
...,
0.05340357-0.51189146j, 0.30834139+0.25530744j,
-0.33636952+0.0447657j , 0.40848463-0.18628585j]])
r = array([[-2.4344645 -0.52224441j, -2.0138392 -0.27725687j,
-1.63506691-0.14215892j, -1.78122461+0.j ,
..., -0.04667299+0.25599919j,
-0.23169306+0.46437499j, -0.05506421+0.25416257j,
0.56397199+0.30820313j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.32280536-0.18345524j, -0.13370067-0.16881654j,
0.1255672 +0.04363497j, -0.16314046-0.13084926j,
...,
0.05340357-0.51189146j, 0.30834139+0.25530744j,
-0.33636952+0.0447657j , 0.40848463-0.18628585j]])
aTa = array([[ 1.00000002e+00-5.83801173e-17j, 2.17259108e-09-9.94023268e-09j,
-3.42973566e-09-2.69099033e-09j, 5....6428e-09j, -6.63454340e-09+3.69966573e-09j,
-4.87909169e-09-1.00922594e-08j, 9.99999953e-01-3.63683756e-19j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 8.09549376e-08
E Max relative difference among violations: 8.09549376e-08
E ACTUAL: array([[ 1.000000e+00-5.838012e-17j, 2.172591e-09-9.940233e-09j,
E -3.429736e-09-2.690990e-09j, 5.624914e-10+8.367370e-09j,
E -3.763218e-09-1.605057e-09j, 1.335882e-09+6.042179e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc40e0>, array([[ 1.00000002e+00-5.83801173e-17j, 2.17259108e-09-... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRinsert_D.test_tall_1_row ________________________
scipy/linalg/tests/test_decomp_update.py:694: in test_tall_1_row
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
a1 = array([[0.97255678+0.15989782j, 0.36071622+0.09839256j,
0.28201392+0.56218546j, 0.70583085+0.9777969j ,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
q = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
...,
0.07221112-0.17945509j, 0.10256997-0.11285204j,
-0.05898739+0.03267021j, 0.56949722-0.06679237j]])
q1 = array([[-0.2905216 -0.04776459j, -0.1709132 +0.03320116j,
-0.06936858+0.35521361j, -0.00075876-0.37735521j,
..., 0.10256997-0.11285204j,
-0.05898739+0.03267021j, 0.56949722-0.06679237j,
-0.08161286+0.13462776j]])
r = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
r1 = array([[-3.34762298+0.j , -2.20238171+0.21698338j,
-1.68251939+0.30211233j, -2.54856281+0.14888957j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
row = 0
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116162570>
u = array([0.97255678+0.15989782j, 0.36071622+0.09839256j,
0.28201392+0.56218546j, 0.70583085+0.9777969j ,
0.20652787+0.14721884j, 0.57184983+0.01989467j,
0.36117885+0.23820349j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.97255678+0.15989782j, 0.36071622+0.09839256j,
0.28201392+0.56218546j, 0.70583085+0.9777969j ,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.2905216 -0.04776459j, -0.1709132 +0.03320116j,
-0.06936858+0.35521361j, -0.00075876-0.37735521j,
..., 0.10256997-0.11285204j,
-0.05898739+0.03267021j, 0.56949722-0.06679237j,
-0.08161286+0.13462776j]])
r = array([[-3.34762298+0.j , -2.20238171+0.21698338j,
-1.68251939+0.30211233j, -2.54856281+0.14888957j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.2905216 -0.04776459j, -0.1709132 +0.03320116j,
-0.06936858+0.35521361j, -0.00075876-0.37735521j,
..., 0.10256997-0.11285204j,
-0.05898739+0.03267021j, 0.56949722-0.06679237j,
-0.08161286+0.13462776j]])
aTa = array([[ 1.00000000e+00+0.00000000e+00j, -1.33573708e-16-2.77555756e-17j,
6.93889390e-18-2.77555756e-17j, -1....j,
-2.60208521e-17+1.32272665e-16j, 4.16333634e-17+1.71303943e-17j,
1.00000001e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 50 / 169 (29.6%)
E Max absolute difference among violations: 1.30535418e-08
E Max relative difference among violations: 1.30535418e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, -1.335737e-16-2.775558e-17j,
E 6.938894e-18-2.775558e-17j, -1.387779e-17-6.938894e-17j,
E -2.970714e-17+2.775558e-17j, -8.413409e-17+0.000000e+00j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc4720>, array([[ 1.00000000e+00+0.00000000e+00j, -1.33573708e-16-... [0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRinsert_D.test_tall_1_col ________________________
scipy/linalg/tests/test_decomp_update.py:709: in test_tall_1_col
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
a1 = array([[0.97255678+0.01989467j, 0.36852295+0.70656594j,
0.97637554+0.88157274j, 0.73179659+0.53904779j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
col = 0
q = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
...,
0.07221112-0.17945509j, 0.10256997-0.11285204j,
-0.05898739+0.03267021j, 0.56949722-0.06679237j]])
q1 = array([[-0.35949411-0.0163978j , 0.41727942-0.11712644j,
0.02032111-0.31429688j, -0.01034235-0.02571198j,
...,
-0.11741675-0.14260372j, 0.07414847-0.05778485j,
0.00828057+0.21241441j, 0.42147629-0.09361849j]])
r = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
r1 = array([[-2.70225038+0.06791844j, -2.51875154+0.j ,
-2.27281609-0.20200142j, -1.5889289 -0.17584481j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0. +0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116162930>
u = array([0.97255678+0.01989467j, 0.36071622+0.23820349j,
0.28201392+0.58360935j, 0.70583085+0.63492416j,
0...777079j,
0.09839256+0.78994569j, 0.56218546+0.67496934j,
0.9777969 +0.81774514j, 0.14721884+0.76728684j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.97255678+0.01989467j, 0.36852295+0.70656594j,
0.97637554+0.88157274j, 0.73179659+0.53904779j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.35949411-0.0163978j , 0.41727942-0.11712644j,
0.02032111-0.31429688j, -0.01034235-0.02571198j,
...,
-0.11741675-0.14260372j, 0.07414847-0.05778485j,
0.00828057+0.21241441j, 0.42147629-0.09361849j]])
r = array([[-2.70225038+0.06791844j, -2.51875154+0.j ,
-2.27281609-0.20200142j, -1.5889289 -0.17584481j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.35949411-0.0163978j , 0.41727942-0.11712644j,
0.02032111-0.31429688j, -0.01034235-0.02571198j,
...,
-0.11741675-0.14260372j, 0.07414847-0.05778485j,
0.00828057+0.21241441j, 0.42147629-0.09361849j]])
aTa = array([[ 9.99999974e-01+0.00000000e+00j, 2.49963802e-08+1.77725942e-08j,
2.09705319e-08+3.23178013e-08j, -1....1512e-17j, 8.32667268e-17-3.12250226e-17j,
-3.46944695e-17+0.00000000e+00j, 9.99999973e-01+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 122 / 144 (84.7%)
E Max absolute difference among violations: 8.27715577e-08
E Max relative difference among violations: 8.27715577e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, 2.499638e-08+1.777259e-08j,
E 2.097053e-08+3.231780e-08j, -1.662353e-08+1.051620e-08j,
E 1.543310e-09-3.918364e-09j, -4.025241e-09+2.967023e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc5a80>, array([[ 9.99999974e-01+0.00000000e+00j, 2.49963802e-08+....],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_____________________ TestQRinsert_D.test_tall_p_col_tall ______________________
scipy/linalg/tests/test_decomp_update.py:724: in test_tall_p_col_tall
self.base_tall_p_col_xxx(3)
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116162b10>
scipy/linalg/tests/test_decomp_update.py:720: in base_tall_p_col_xxx
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
a1 = array([[0.97255678+0.71684251j, 0.36071622+0.81291815j,
0.28201392+0.15922261j, 0.36852295+0.70656594j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
col = 0
p = 3
q = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
...,
0.07221112-0.17945509j, 0.10256997-0.11285204j,
-0.05898739+0.03267021j, 0.56949722-0.06679237j]])
q1 = array([[-0.27278451-0.31342393j, 0.01204991-0.17506286j,
-0.30125946-0.12015484j, -0.19773604-0.13927022j,
...,
-0.02307759+0.18473177j, -0.02476871-0.2228385j ,
-0.05324565-0.25798151j, 0.11692208+0.02050461j]])
r = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
r1 = array([[-2.83802793+0.63296615j, -2.02636648+0.1626622j ,
-2.13557854+0.62231526j, -2.62083966+0.j ,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0. +0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116162b10>
u = array([[0.97255678+0.71684251j, 0.36071622+0.81291815j,
0.28201392+0.15922261j],
[0.70583085+0.54940902... 0.06328583+0.7251228j ],
[0.43995546+0.82764531j, 0.60213318+0.1228228j ,
0.88219112+0.21015231j]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.97255678+0.71684251j, 0.36071622+0.81291815j,
0.28201392+0.15922261j, 0.36852295+0.70656594j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.27278451-0.31342393j, 0.01204991-0.17506286j,
-0.30125946-0.12015484j, -0.19773604-0.13927022j,
...,
-0.02307759+0.18473177j, -0.02476871-0.2228385j ,
-0.05324565-0.25798151j, 0.11692208+0.02050461j]])
r = array([[-2.83802793+0.63296615j, -2.02636648+0.1626622j ,
-2.13557854+0.62231526j, -2.62083966+0.j ,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.27278451-0.31342393j, 0.01204991-0.17506286j,
-0.30125946-0.12015484j, -0.19773604-0.13927022j,
...,
-0.02307759+0.18473177j, -0.02476871-0.2228385j ,
-0.05324565-0.25798151j, 0.11692208+0.02050461j]])
aTa = array([[ 1.00000003e+00+0.00000000e+00j, 1.91636206e-09+2.88535135e-09j,
-5.67471098e-09+8.75055032e-10j, -1....7878e-17j, -2.77555756e-17-5.55111512e-17j,
9.71445147e-17+1.38777878e-16j, 1.00000000e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 98 / 144 (68.1%)
E Max absolute difference among violations: 1.96115796e-07
E Max relative difference among violations: 1.96115796e-07
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, 1.916362e-09+2.885351e-09j,
E -5.674711e-09+8.750550e-10j, -1.254644e-08+4.944183e-09j,
E 2.074778e-09+8.753338e-09j, 6.201045e-10+4.576169e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117c23ba0>, array([[ 1.00000003e+00+0.00000000e+00j, 1.91636206e-09+....],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
______________________ TestQRinsert_D.test_tall_p_col_sqr ______________________
scipy/linalg/tests/test_decomp_update.py:728: in test_tall_p_col_sqr
self.base_tall_p_col_xxx(5)
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116162cf0>
scipy/linalg/tests/test_decomp_update.py:720: in base_tall_p_col_xxx
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
a1 = array([[0.97255678+0.3309747j , 0.36071622+0.83147129j,
0.28201392+0.08478734j, 0.70583085+0.33644792j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
col = 0
p = 5
q = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
...,
0.07221112-0.17945509j, 0.10256997-0.11285204j,
-0.05898739+0.03267021j, 0.56949722-0.06679237j]])
q1 = array([[-0.2632006 -0.23018081j, 0.10205176-0.23451777j,
-0.1047891 -0.23080475j, -0.19203344+0.17472507j,
...,
-0.24978662-0.11971013j, -0.29722952-0.06710114j,
0.02805405+0.06449108j, 0.00428793+0.06484184j]])
r = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
r1 = array([[-2.71689554+1.11854803j, -2.44698532+0.21863258j,
-1.95656598+0.44518591j, -2.03304913+0.35717975j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.09894495+0.13054195j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116162cf0>
u = array([[0.97255678+0.3309747j , 0.36071622+0.83147129j,
0.28201392+0.08478734j, 0.70583085+0.33644792j,
...296j, 0.18229887+0.10463658j,
0.94297871+0.83240123j, 0.25144159+0.05419413j,
0.55571446+0.26849241j]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.97255678+0.3309747j , 0.36071622+0.83147129j,
0.28201392+0.08478734j, 0.70583085+0.33644792j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.2632006 -0.23018081j, 0.10205176-0.23451777j,
-0.1047891 -0.23080475j, -0.19203344+0.17472507j,
...,
-0.24978662-0.11971013j, -0.29722952-0.06710114j,
0.02805405+0.06449108j, 0.00428793+0.06484184j]])
r = array([[-2.71689554+1.11854803j, -2.44698532+0.21863258j,
-1.95656598+0.44518591j, -2.03304913+0.35717975j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.09894495+0.13054195j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.2632006 -0.23018081j, 0.10205176-0.23451777j,
-0.1047891 -0.23080475j, -0.19203344+0.17472507j,
...,
-0.24978662-0.11971013j, -0.29722952-0.06710114j,
0.02805405+0.06449108j, 0.00428793+0.06484184j]])
aTa = array([[ 1.00000003e+00+0.00000000e+00j, -2.31989599e-08+3.34689057e-09j,
1.25101407e-08+4.55376284e-09j, 1....0738e-09j, 2.50218016e-09-2.09125332e-09j,
3.54571650e-11-2.17529045e-09j, 9.99999982e-01+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 142 / 144 (98.6%)
E Max absolute difference among violations: 1.49384232e-07
E Max relative difference among violations: 1.49384232e-07
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, -2.319896e-08+3.346891e-09j,
E 1.251014e-08+4.553763e-09j, 1.822717e-09+7.802896e-09j,
E -4.695045e-09+4.943440e-10j, -6.384949e-09+3.074068e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc4f40>, array([[ 1.00000003e+00+0.00000000e+00j, -2.31989599e-08+....],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
______________________ TestQRinsert_D.test_tall_p_col_fat ______________________
scipy/linalg/tests/test_decomp_update.py:732: in test_tall_p_col_fat
self.base_tall_p_col_xxx(7)
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116162ed0>
scipy/linalg/tests/test_decomp_update.py:720: in base_tall_p_col_xxx
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
a1 = array([[0.97255678+0.84951255j, 0.36071622+0.45585201j,
0.28201392+0.82472945j, 0.70583085+0.34878762j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
col = 0
p = 7
q = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
...,
0.07221112-0.17945509j, 0.10256997-0.11285204j,
-0.05898739+0.03267021j, 0.56949722-0.06679237j]])
q1 = array([[-0.28426519-0.34473467j, 0.23361242+0.07147269j,
-0.2482588 +0.18275177j, 0.20436636+0.237682j ,
...,
0.12074165-0.44144988j, -0.19237941-0.12231711j,
0.08721235+0.04806216j, 0.03084247+0.07981296j]])
r = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
r1 = array([[-2.85161133+4.69761152e-01j, -2.01421919+7.17506700e-01j,
-2.32674243+4.71660631e-01j, -1.8847395 +3.6... +0.00000000e+00j, -0.17533653+3.69358859e-01j,
-0.16538158-7.75432251e-01j, 0.22644349+3.77463436e-01j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116162ed0>
u = array([[0.97255678+0.84951255j, 0.36071622+0.45585201j,
0.28201392+0.82472945j, 0.70583085+0.34878762j,
...391j, 0.87449984+0.27200256j,
0.95179613+0.91921095j, 0.0455137 +0.76276433j,
0.25767117+0.7957284j ]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.97255678+0.84951255j, 0.36071622+0.45585201j,
0.28201392+0.82472945j, 0.70583085+0.34878762j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.28426519-0.34473467j, 0.23361242+0.07147269j,
-0.2482588 +0.18275177j, 0.20436636+0.237682j ,
...,
0.12074165-0.44144988j, -0.19237941-0.12231711j,
0.08721235+0.04806216j, 0.03084247+0.07981296j]])
r = array([[-2.85161133+4.69761152e-01j, -2.01421919+7.17506700e-01j,
-2.32674243+4.71660631e-01j, -1.8847395 +3.6... +0.00000000e+00j, -0.17533653+3.69358859e-01j,
-0.16538158-7.75432251e-01j, 0.22644349+3.77463436e-01j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.28426519-0.34473467j, 0.23361242+0.07147269j,
-0.2482588 +0.18275177j, 0.20436636+0.237682j ,
...,
0.12074165-0.44144988j, -0.19237941-0.12231711j,
0.08721235+0.04806216j, 0.03084247+0.07981296j]])
aTa = array([[ 9.99999982e-01+0.00000000e+00j, 1.71322589e-08-4.85784171e-09j,
-1.52280567e-08+1.19281197e-09j, 1....7380e-09j, -9.24424712e-09+3.62732998e-09j,
5.35068798e-09-5.22490839e-09j, 1.00000001e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 144 / 144 (100%)
E Max absolute difference among violations: 2.27288925e-07
E Max relative difference among violations: 2.27288925e-07
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, 1.713226e-08-4.857842e-09j,
E -1.522806e-08+1.192812e-09j, 1.146811e-09-1.842336e-08j,
E -1.114354e-08+6.527455e-11j, -2.225875e-09+1.737746e-08j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc4900>, array([[ 9.99999982e-01+0.00000000e+00j, 1.71322589e-08-....],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRinsert_D.test_fat_1_row _________________________
scipy/linalg/tests/test_decomp_update.py:739: in test_fat_1_row
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
a1 = array([[0.97255678+0.01989467j, 0.36071622+0.23820349j,
0.28201392+0.58360935j, 0.70583085+0.63492416j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
q = array([[-0.16744807-0.32104676j, -0.46249724-0.22660237j,
0.20466257-0.41920076j, -0.05476509-0.23749447j,
..., 0.27538245-0.03199855j,
0.28604992+0.37688667j, 0.18087928-0.03634228j,
-0.11962411+0.59514298j]])
q1 = array([[-0.40418536-0.00826804j, 0.21030471-0.12215347j,
-0.16248718+0.55981686j, 0.07499577+0.27965383j,
...,
0.29701525+0.17066274j, 0.16028262+0.1026965j ,
0.21994685+0.34470617j, 0.18296697+0.56696749j]])
r = array([[-2.20081937+0.j , -1.69656064+0.00705994j,
-1.71258114+0.39390614j, -1.31554061+0.16505241j,
...,
0.10677582-0.13276234j, 0.15652092+0.00902154j,
0.41916145+0.32277885j, -0.23787641-0.11789546j]])
r1 = array([[-2.40621451+0.j , -1.69950744-0.08683864j,
-1.68520595+0.12672755j, -1.49378177-0.09982772j,
...,
0.16353461-0.08705811j, 0.3496966 +0.12921568j,
0.15819499+0.77014582j, -0.29384201-0.52379911j]])
row = 0
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x1161630b0>
u = array([0.97255678+0.01989467j, 0.36071622+0.23820349j,
0.28201392+0.58360935j, 0.70583085+0.63492416j,
0...777079j,
0.09839256+0.78994569j, 0.56218546+0.67496934j,
0.9777969 +0.81774514j, 0.14721884+0.76728684j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.97255678+0.01989467j, 0.36071622+0.23820349j,
0.28201392+0.58360935j, 0.70583085+0.63492416j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.40418536-0.00826804j, 0.21030471-0.12215347j,
-0.16248718+0.55981686j, 0.07499577+0.27965383j,
...,
0.29701525+0.17066274j, 0.16028262+0.1026965j ,
0.21994685+0.34470617j, 0.18296697+0.56696749j]])
r = array([[-2.40621451+0.j , -1.69950744-0.08683864j,
-1.68520595+0.12672755j, -1.49378177-0.09982772j,
...,
0.16353461-0.08705811j, 0.3496966 +0.12921568j,
0.15819499+0.77014582j, -0.29384201-0.52379911j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.40418536-0.00826804j, 0.21030471-0.12215347j,
-0.16248718+0.55981686j, 0.07499577+0.27965383j,
...,
0.29701525+0.17066274j, 0.16028262+0.1026965j ,
0.21994685+0.34470617j, 0.18296697+0.56696749j]])
aTa = array([[ 9.99999989e-01+6.46955916e-18j, 0.00000000e+00-1.16569228e-16j,
1.38777878e-17-3.27194650e-17j, -1....6625e-09j, -7.90059007e-09+2.35922405e-09j,
1.45331651e-08+1.92285818e-08j, 9.99999937e-01-5.40638796e-18j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 50 / 64 (78.1%)
E Max absolute difference among violations: 7.15169217e-08
E Max relative difference among violations: 7.15169217e-08
E ACTUAL: array([[ 1.000000e+00+6.469559e-18j, 0.000000e+00-1.165692e-16j,
E 1.387779e-17-3.271946e-17j, -1.387779e-17-8.957238e-18j,
E -4.163336e-17-2.732131e-17j, 1.821460e-17+4.377218e-17j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc47c0>, array([[ 9.99999989e-01+6.46955916e-18j, 0.00000000e+00-... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRinsert_D.test_fat_1_col _________________________
scipy/linalg/tests/test_decomp_update.py:769: in test_fat_1_col
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
a1 = array([[0.97255678+0.15989782j, 0.36852295+0.70656594j,
0.97637554+0.88157274j, 0.73179659+0.53904779j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
col = 0
q = array([[-0.16744807-0.32104676j, -0.46249724-0.22660237j,
0.20466257-0.41920076j, -0.05476509-0.23749447j,
..., 0.27538245-0.03199855j,
0.28604992+0.37688667j, 0.18087928-0.03634228j,
-0.11962411+0.59514298j]])
q1 = array([[-4.88738824e-01-0.1885437j , -2.74891428e-01+0.22298202j,
2.86144360e-01+0.13345984j, 3.15624232e-01...1+0.33785238j,
-2.92581600e-01+0.20145197j, 6.71130470e-01-0.24048394j,
2.51289832e-02+0.24376232j]])
r = array([[-2.20081937+0.j , -1.69656064+0.00705994j,
-1.71258114+0.39390614j, -1.31554061+0.16505241j,
...,
0.10677582-0.13276234j, 0.15652092+0.00902154j,
0.41916145+0.32277885j, -0.23787641-0.11789546j]])
r1 = array([[-1.84200985+0.38343889j, -1.5214392 +0.j ,
-1.84410018-0.1034473j , -1.29021209-0.08275612j,
..., -0.30178407-0.24641045j,
-0.06943473-0.52551962j, 0.36073425-0.12698949j,
-0.26999839+0.11674112j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116163830>
u = array([0.97255678+0.15989782j, 0.36071622+0.09839256j,
0.28201392+0.56218546j, 0.70583085+0.9777969j ,
0.20652787+0.14721884j, 0.57184983+0.01989467j,
0.36117885+0.23820349j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.97255678+0.15989782j, 0.36852295+0.70656594j,
0.97637554+0.88157274j, 0.73179659+0.53904779j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-4.88738824e-01-0.1885437j , -2.74891428e-01+0.22298202j,
2.86144360e-01+0.13345984j, 3.15624232e-01...1+0.33785238j,
-2.92581600e-01+0.20145197j, 6.71130470e-01-0.24048394j,
2.51289832e-02+0.24376232j]])
r = array([[-1.84200985+0.38343889j, -1.5214392 +0.j ,
-1.84410018-0.1034473j , -1.29021209-0.08275612j,
..., -0.30178407-0.24641045j,
-0.06943473-0.52551962j, 0.36073425-0.12698949j,
-0.26999839+0.11674112j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-4.88738824e-01-0.1885437j , -2.74891428e-01+0.22298202j,
2.86144360e-01+0.13345984j, 3.15624232e-01...1+0.33785238j,
-2.92581600e-01+0.20145197j, 6.71130470e-01-0.24048394j,
2.51289832e-02+0.24376232j]])
aTa = array([[ 9.99999937e-01+0.00000000e+00j, -4.95796229e-08-8.00117900e-09j,
-3.05990795e-08+1.23567336e-08j, 7....j,
-2.22044605e-16+4.30211422e-16j, -1.42247325e-16+4.16333634e-17j,
1.00000001e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 37 / 49 (75.5%)
E Max absolute difference among violations: 8.9114475e-08
E Max relative difference among violations: 8.9114475e-08
E ACTUAL: array([[ 9.999999e-01+0.000000e+00j, -4.957962e-08-8.001179e-09j,
E -3.059908e-08+1.235673e-08j, 7.305889e-10-2.137335e-10j,
E 2.998951e-09-2.527289e-09j, -3.713094e-11-1.413620e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc5b20>, array([[ 9.99999937e-01+0.00000000e+00j, -4.95796229e-08-..., 0.],
[0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRinsert_D.test_fat_p_col _________________________
scipy/linalg/tests/test_decomp_update.py:777: in test_fat_p_col
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
a1 = array([[0.97255678+0.67496934j, 0.36071622+0.81774514j,
0.28201392+0.76728684j, 0.36852295+0.70656594j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
col = 0
q = array([[-0.16744807-0.32104676j, -0.46249724-0.22660237j,
0.20466257-0.41920076j, -0.05476509-0.23749447j,
..., 0.27538245-0.03199855j,
0.28604992+0.37688667j, 0.18087928-0.03634228j,
-0.11962411+0.59514298j]])
q1 = array([[-0.4374888 -0.28844626j, 0.03371713+0.33956134j,
-0.32181385-0.12548623j, -0.07011711+0.30215651j,
..., -0.06452664+0.16476098j,
-0.28527491-0.48215663j, 0.37216007+0.04726034j,
0.3762299 -0.15052846j]])
r = array([[-2.20081937+0.j , -1.69656064+0.00705994j,
-1.71258114+0.39390614j, -1.31554061+0.16505241j,
...,
0.10677582-0.13276234j, 0.15652092+0.00902154j,
0.41916145+0.32277885j, -0.23787641-0.11789546j]])
r1 = array([[-2.25848612e+00-0.0537556j , -1.70507794e+00-0.14777035j,
-1.54865936e+00+0.10880987j, -1.86100081e+00...1-0.10315528j,
2.48840987e-01-0.03144419j, 8.10872483e-02-0.08947395j,
5.02467253e-01-0.03348106j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116163a10>
u = array([[0.97255678+0.67496934j, 0.36071622+0.81774514j,
0.28201392+0.76728684j],
[0.70583085+0.89039632... 0.63913689+0.15922261j],
[0.03427202+0.54940902j, 0.26777079+0.67553588j,
0.78994569+0.49379743j]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.97255678+0.67496934j, 0.36071622+0.81774514j,
0.28201392+0.76728684j, 0.36852295+0.70656594j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.4374888 -0.28844626j, 0.03371713+0.33956134j,
-0.32181385-0.12548623j, -0.07011711+0.30215651j,
..., -0.06452664+0.16476098j,
-0.28527491-0.48215663j, 0.37216007+0.04726034j,
0.3762299 -0.15052846j]])
r = array([[-2.25848612e+00-0.0537556j , -1.70507794e+00-0.14777035j,
-1.54865936e+00+0.10880987j, -1.86100081e+00...1-0.10315528j,
2.48840987e-01-0.03144419j, 8.10872483e-02-0.08947395j,
5.02467253e-01-0.03348106j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.4374888 -0.28844626j, 0.03371713+0.33956134j,
-0.32181385-0.12548623j, -0.07011711+0.30215651j,
..., -0.06452664+0.16476098j,
-0.28527491-0.48215663j, 0.37216007+0.04726034j,
0.3762299 -0.15052846j]])
aTa = array([[ 1.00000004e+00+0.00000000e+00j, 9.03331324e-09-1.10450079e-08j,
-3.78292861e-09+7.41030902e-09j, 1....j,
4.44809625e-09-3.14271198e-09j, -1.29766037e-09+2.09431079e-09j,
1.00000003e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 49 / 49 (100%)
E Max absolute difference among violations: 8.54652531e-08
E Max relative difference among violations: 8.54652531e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, 9.033313e-09-1.104501e-08j,
E -3.782929e-09+7.410309e-09j, 1.325170e-10+3.711388e-09j,
E -1.005748e-08-4.600299e-09j, -5.357611e-10-1.995902e-10j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc5c60>, array([[ 1.00000004e+00+0.00000000e+00j, 9.03331324e-09-..., 0.],
[0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
______________________ TestQRinsert_D.test_economic_1_row ______________________
scipy/linalg/tests/test_decomp_update.py:784: in test_economic_1_row
check_qr(q1, r1, a1, self.rtol, self.atol, False)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
a1 = array([[0.97255678+0.15989782j, 0.36071622+0.09839256j,
0.28201392+0.56218546j, 0.70583085+0.9777969j ,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
q = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
..., 0.12717499-0.13948103j,
0.06060244-0.22584374j, -0.04277848-0.09283101j,
0.04983613+0.15919433j]])
q1 = array([[-0.2905216 -0.04776459j, -0.1709132 +0.03320116j,
-0.06936858+0.35521361j, -0.00075876-0.37735521j,
..., 0.15539317-0.1787624j ,
0.07600024-0.16943627j, -0.0084197 -0.10549532j,
-0.02364643+0.15878741j]])
r = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.85741133+0.j ]])
r1 = array([[-3.34762298+0.j , -2.20238171+0.21698338j,
-1.68251939+0.30211233j, -2.54856281+0.14888957j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.96837805+0.j ]])
row = 0
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116163bf0>
u = array([0.97255678+0.15989782j, 0.36071622+0.09839256j,
0.28201392+0.56218546j, 0.70583085+0.9777969j ,
0.20652787+0.14721884j, 0.57184983+0.01989467j,
0.36117885+0.23820349j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.97255678+0.15989782j, 0.36071622+0.09839256j,
0.28201392+0.56218546j, 0.70583085+0.9777969j ,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[-0.2905216 -0.04776459j, -0.1709132 +0.03320116j,
-0.06936858+0.35521361j, -0.00075876-0.37735521j,
..., 0.15539317-0.1787624j ,
0.07600024-0.16943627j, -0.0084197 -0.10549532j,
-0.02364643+0.15878741j]])
r = array([[-3.34762298+0.j , -2.20238171+0.21698338j,
-1.68251939+0.30211233j, -2.54856281+0.14888957j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.96837805+0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.2905216 -0.04776459j, -0.1709132 +0.03320116j,
-0.06936858+0.35521361j, -0.00075876-0.37735521j,
..., 0.15539317-0.1787624j ,
0.07600024-0.16943627j, -0.0084197 -0.10549532j,
-0.02364643+0.15878741j]])
aTa = array([[ 1.00000000e+00+0.00000000e+00j, -1.30104261e-16+0.00000000e+00j,
2.08166817e-17+0.00000000e+00j, 0....j,
6.10091012e-10-1.49692234e-09j, 8.92948659e-10-1.25406456e-11j,
1.00000001e+00+0.00000000e+00j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 37 / 49 (75.5%)
E Max absolute difference among violations: 1.30535418e-08
E Max relative difference among violations: 1.30535418e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, -1.301043e-16+0.000000e+00j,
E 2.081668e-17+0.000000e+00j, 0.000000e+00-2.775558e-17j,
E -2.970714e-17+2.775558e-17j, -8.413409e-17+0.000000e+00j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117c23f60>, array([[ 1.00000000e+00+0.00000000e+00j, -1.30104261e-16+..., 0.],
[0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
______________________ TestQRinsert_D.test_economic_1_col ______________________
scipy/linalg/tests/test_decomp_update.py:799: in test_economic_1_col
check_qr(q1, r1, a1, self.rtol, self.atol, False)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
a1 = array([[0.97255678+0.01989467j, 0.36852295+0.70656594j,
0.97637554+0.88157274j, 0.73179659+0.53904779j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
col = 0
q = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
..., 0.12717499-0.13948103j,
0.06060244-0.22584374j, -0.04277848-0.09283101j,
0.04983613+0.15919433j]])
q1 = array([[-0.35949411-0.01639779j, 0.41727944-0.11712645j,
0.02032113-0.31429688j, -0.01034234-0.02571197j,
...,
0.09307347-0.15336439j, 0.12703085-0.23042783j,
0.00685886-0.00262456j, 0.01995164-0.12520003j]])
r = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.85741133+0.j ]])
r1 = array([[-2.70225038+0.06791844j, -2.51875154+0.j ,
-2.27281609-0.20200142j, -1.5889289 -0.17584481j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.76892766-0.36981581j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116163b30>
u = array([0.97255678+0.01989467j, 0.36071622+0.23820349j,
0.28201392+0.58360935j, 0.70583085+0.63492416j,
0...777079j,
0.09839256+0.78994569j, 0.56218546+0.67496934j,
0.9777969 +0.81774514j, 0.14721884+0.76728684j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.97255678+0.01989467j, 0.36852295+0.70656594j,
0.97637554+0.88157274j, 0.73179659+0.53904779j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[-0.35949411-0.01639779j, 0.41727944-0.11712645j,
0.02032113-0.31429688j, -0.01034234-0.02571197j,
...,
0.09307347-0.15336439j, 0.12703085-0.23042783j,
0.00685886-0.00262456j, 0.01995164-0.12520003j]])
r = array([[-2.70225038+0.06791844j, -2.51875154+0.j ,
-2.27281609-0.20200142j, -1.5889289 -0.17584481j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.76892766-0.36981581j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.35949411-0.01639779j, 0.41727944-0.11712645j,
0.02032113-0.31429688j, -0.01034234-0.02571197j,
...,
0.09307347-0.15336439j, 0.12703085-0.23042783j,
0.00685886-0.00262456j, 0.01995164-0.12520003j]])
aTa = array([[ 9.99999989e-01-1.11700325e-16j, 9.22448112e-09+6.55866801e-09j,
9.54913244e-09+1.47162199e-08j, -3....2422e-18j, -1.73472348e-16-4.88876834e-17j,
0.00000000e+00-5.41922712e-17j, 9.99999936e-01-1.95406480e-17j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 50 / 64 (78.1%)
E Max absolute difference among violations: 6.37853539e-08
E Max relative difference among violations: 6.37853539e-08
E ACTUAL: array([[ 1.000000e+00-1.117003e-16j, 9.224481e-09+6.558668e-09j,
E 9.549132e-09+1.471622e-08j, -3.008157e-09+1.902989e-09j,
E -5.885683e-10+1.494337e-09j, -2.716529e-09+2.002366e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc6660>, array([[ 9.99999989e-01-1.11700325e-16j, 9.22448112e-09+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
____________________ TestQRinsert_D.test_economic_p_col_eco ____________________
scipy/linalg/tests/test_decomp_update.py:822: in test_economic_p_col_eco
self.base_economic_p_col_xxx(3)
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116162e40>
scipy/linalg/tests/test_decomp_update.py:818: in base_economic_p_col_xxx
check_qr(q1, r1, a1, self.rtol, self.atol, False)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
a1 = array([[0.97255678+0.71684251j, 0.36071622+0.81291815j,
0.28201392+0.15922261j, 0.36852295+0.70656594j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
col = 0
p = 3
q = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
..., 0.12717499-0.13948103j,
0.06060244-0.22584374j, -0.04277848-0.09283101j,
0.04983613+0.15919433j]])
q1 = array([[-0.27278451-0.31342393j, 0.01204991-0.17506286j,
-0.30125946-0.12015484j, -0.19773604-0.13927022j,
...,
0.33423596+0.19584172j, -0.17158079+0.15480348j,
0.02307759-0.18473177j, 0.02476871+0.2228385j ]])
r = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.85741133+0.j ]])
r1 = array([[-2.83802793+0.63296615j, -2.02636648+0.1626622j ,
-2.13557854+0.62231526j, -2.62083966+0.j ,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.73446527+0.24794304j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116162e40>
u = array([[0.97255678+0.71684251j, 0.36071622+0.81291815j,
0.28201392+0.15922261j],
[0.70583085+0.54940902... 0.06328583+0.7251228j ],
[0.43995546+0.82764531j, 0.60213318+0.1228228j ,
0.88219112+0.21015231j]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.97255678+0.71684251j, 0.36071622+0.81291815j,
0.28201392+0.15922261j, 0.36852295+0.70656594j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[-0.27278451-0.31342393j, 0.01204991-0.17506286j,
-0.30125946-0.12015484j, -0.19773604-0.13927022j,
...,
0.33423596+0.19584172j, -0.17158079+0.15480348j,
0.02307759-0.18473177j, 0.02476871+0.2228385j ]])
r = array([[-2.83802793+0.63296615j, -2.02636648+0.1626622j ,
-2.13557854+0.62231526j, -2.62083966+0.j ,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.73446527+0.24794304j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.27278451-0.31342393j, 0.01204991-0.17506286j,
-0.30125946-0.12015484j, -0.19773604-0.13927022j,
...,
0.33423596+0.19584172j, -0.17158079+0.15480348j,
0.02307759-0.18473177j, 0.02476871+0.2228385j ]])
aTa = array([[ 1.00000003e+00+0.00000000e+00j, 1.91636290e-09+2.88535018e-09j,
-5.67471224e-09+8.75056323e-10j, -1....8001e-10j, 3.36212756e-09+6.02227268e-10j,
-1.98297009e-09-1.63635251e-09j, 9.99999964e-01+0.00000000e+00j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 98 / 100 (98%)
E Max absolute difference among violations: 1.96115823e-07
E Max relative difference among violations: 1.96115823e-07
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, 1.916363e-09+2.885350e-09j,
E -5.674712e-09+8.750563e-10j, -1.254644e-08+4.944182e-09j,
E 2.074779e-09+8.753339e-09j, 6.201026e-10+4.576169e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc5da0>, array([[ 1.00000003e+00+0.00000000e+00j, 1.91636290e-09+...., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
____________________ TestQRinsert_D.test_economic_p_col_sqr ____________________
scipy/linalg/tests/test_decomp_update.py:826: in test_economic_p_col_sqr
self.base_economic_p_col_xxx(5)
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116162870>
scipy/linalg/tests/test_decomp_update.py:818: in base_economic_p_col_xxx
check_qr(q1, r1, a1, self.rtol, self.atol, False)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
a1 = array([[0.97255678+0.3309747j , 0.36071622+0.83147129j,
0.28201392+0.08478734j, 0.70583085+0.33644792j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
col = 0
p = 5
q = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
..., 0.12717499-0.13948103j,
0.06060244-0.22584374j, -0.04277848-0.09283101j,
0.04983613+0.15919433j]])
q1 = array([[-0.2632006 -0.23018081j, 0.10205176-0.23451777j,
-0.1047891 -0.23080475j, -0.19203344+0.17472507j,
...,
0.24978662+0.11971013j, -0.29722952-0.06710114j,
0.02805405+0.06449108j, 0.00428793+0.06484184j]])
r = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.85741133+0.j ]])
r1 = array([[-2.71689554+1.11854803j, -2.44698532+0.21863258j,
-1.95656598+0.44518591j, -2.03304913+0.35717975j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.09894495+0.13054195j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116162870>
u = array([[0.97255678+0.3309747j , 0.36071622+0.83147129j,
0.28201392+0.08478734j, 0.70583085+0.33644792j,
...296j, 0.18229887+0.10463658j,
0.94297871+0.83240123j, 0.25144159+0.05419413j,
0.55571446+0.26849241j]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.97255678+0.3309747j , 0.36071622+0.83147129j,
0.28201392+0.08478734j, 0.70583085+0.33644792j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[-0.2632006 -0.23018081j, 0.10205176-0.23451777j,
-0.1047891 -0.23080475j, -0.19203344+0.17472507j,
...,
0.24978662+0.11971013j, -0.29722952-0.06710114j,
0.02805405+0.06449108j, 0.00428793+0.06484184j]])
r = array([[-2.71689554+1.11854803j, -2.44698532+0.21863258j,
-1.95656598+0.44518591j, -2.03304913+0.35717975j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.09894495+0.13054195j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.2632006 -0.23018081j, 0.10205176-0.23451777j,
-0.1047891 -0.23080475j, -0.19203344+0.17472507j,
...,
0.24978662+0.11971013j, -0.29722952-0.06710114j,
0.02805405+0.06449108j, 0.00428793+0.06484184j]])
aTa = array([[ 1.00000003e+00+0.00000000e+00j, -2.31989594e-08+3.34688852e-09j,
1.25101407e-08+4.55376456e-09j, 1....8648e-09j, 2.50221022e-09-2.09127225e-09j,
3.54576368e-11-2.17529936e-09j, 9.99999982e-01+0.00000000e+00j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 144 / 144 (100%)
E Max absolute difference among violations: 1.49384274e-07
E Max relative difference among violations: 1.49384274e-07
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, -2.319896e-08+3.346889e-09j,
E 1.251014e-08+4.553765e-09j, 1.822719e-09+7.802896e-09j,
E -4.695049e-09+4.943428e-10j, -6.384947e-09+3.074066e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc4cc0>, array([[ 1.00000003e+00+0.00000000e+00j, -2.31989594e-08+....],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
____________________ TestQRinsert_D.test_economic_p_col_fat ____________________
scipy/linalg/tests/test_decomp_update.py:830: in test_economic_p_col_fat
self.base_economic_p_col_xxx(7)
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x1161622a0>
scipy/linalg/tests/test_decomp_update.py:818: in base_economic_p_col_xxx
check_qr(q1, r1, a1, self.rtol, self.atol, False)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
a1 = array([[0.97255678+0.84951255j, 0.36071622+0.45585201j,
0.28201392+0.82472945j, 0.70583085+0.34878762j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
col = 0
p = 7
q = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
..., 0.12717499-0.13948103j,
0.06060244-0.22584374j, -0.04277848-0.09283101j,
0.04983613+0.15919433j]])
q1 = array([[-0.28426519-0.34473467j, 0.23361243+0.0714727j ,
-0.24825881+0.1827518j , 0.20436637+0.23768201j,
...,
0.15879446-0.42923291j, -0.21377124+0.07920347j,
0.01734348-0.09805697j, -0.08531735+0.00650505j]])
r = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.85741133+0.j ]])
r1 = array([[-2.85161133+4.69761152e-01j, -2.0142192 +7.17506697e-01j,
-2.32674244+4.71660630e-01j, -1.88473949+3.6... +0.00000000e+00j, 0.40423824+6.13212846e-02j,
-0.69474831+3.82061498e-01j, 0.29608475-3.25713183e-01j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x1161622a0>
u = array([[0.97255678+0.84951255j, 0.36071622+0.45585201j,
0.28201392+0.82472945j, 0.70583085+0.34878762j,
...391j, 0.87449984+0.27200256j,
0.95179613+0.91921095j, 0.0455137 +0.76276433j,
0.25767117+0.7957284j ]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.97255678+0.84951255j, 0.36071622+0.45585201j,
0.28201392+0.82472945j, 0.70583085+0.34878762j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[-0.28426519-0.34473467j, 0.23361243+0.0714727j ,
-0.24825881+0.1827518j , 0.20436637+0.23768201j,
...,
0.15879446-0.42923291j, -0.21377124+0.07920347j,
0.01734348-0.09805697j, -0.08531735+0.00650505j]])
r = array([[-2.85161133+4.69761152e-01j, -2.0142192 +7.17506697e-01j,
-2.32674244+4.71660630e-01j, -1.88473949+3.6... +0.00000000e+00j, 0.40423824+6.13212846e-02j,
-0.69474831+3.82061498e-01j, 0.29608475-3.25713183e-01j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.28426519-0.34473467j, 0.23361243+0.0714727j ,
-0.24825881+0.1827518j , 0.20436637+0.23768201j,
...,
0.15879446-0.42923291j, -0.21377124+0.07920347j,
0.01734348-0.09805697j, -0.08531735+0.00650505j]])
aTa = array([[ 9.99999999e-01+0.00000000e+00j, 8.04672770e-09+9.69895136e-10j,
1.64707697e-09+2.66248670e-09j, -3....3612e-09j, 2.29822900e-09-4.89711254e-08j,
8.41598699e-09+1.43081204e-09j, 9.99999911e-01+0.00000000e+00j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 144 / 144 (100%)
E Max absolute difference among violations: 1.43133921e-07
E Max relative difference among violations: 1.43133921e-07
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, 8.046728e-09+9.698951e-10j,
E 1.647077e-09+2.662487e-09j, -3.508512e-09+3.463025e-09j,
E -5.222204e-10-2.027313e-09j, 2.814801e-09+8.434355e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc4f40>, array([[ 9.99999999e-01+0.00000000e+00j, 8.04672770e-09+....],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRinsert_D.test_Mx1_1_row _________________________
scipy/linalg/tests/test_decomp_update.py:837: in test_Mx1_1_row
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.20555395j],
[0.97637554+0.57238605j],
[0.73179659+0.93713906j],
[0.68487472+...62759+0.09842774j],
[0.31758111+0.66954795j],
[0.77389198+0.63448525j],
[0.61821572+0.53186528j]])
a1 = array([[0.19692903+0.25108618j],
[0.36852295+0.20555395j],
[0.97637554+0.57238605j],
[0.73179659+...62759+0.09842774j],
[0.31758111+0.66954795j],
[0.77389198+0.63448525j],
[0.61821572+0.53186528j]])
q = array([[-0.15132749-0.08440712j, -0.43092343+0.17405462j,
-0.35340931+0.3368798j , -0.30535479+0.14301866j,
...,
-0.04182664-0.02512782j, -0.08309283+0.02979214j,
-0.11864701-0.01153338j, 0.90311691-0.00710278j]])
q1 = array([[-0.08018005-1.02230245e-01j, 0. +0.00000000e+00j,
0. +0.00000000e+00j, 0. +0.0...97921439e-02j,
-0.11864701-1.15333804e-02j, 0.90311691-7.10277723e-03j,
-0.04268167+8.44069780e-03j]])
r = array([[-2.4352677+0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j]])
r1 = array([[-2.45608512+0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j]])
row = 0
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x1161605f0>
u = array([0.19692903+0.25108618j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.19692903+0.25108618j],
[0.36852295+0.20555395j],
[0.97637554+0.57238605j],
[0.73179659+...62759+0.09842774j],
[0.31758111+0.66954795j],
[0.77389198+0.63448525j],
[0.61821572+0.53186528j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.08018005-1.02230245e-01j, 0. +0.00000000e+00j,
0. +0.00000000e+00j, 0. +0.0...97921439e-02j,
-0.11864701-1.15333804e-02j, 0.90311691-7.10277723e-03j,
-0.04268167+8.44069780e-03j]])
r = array([[-2.45608512+0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.08018005-1.02230245e-01j, 0. +0.00000000e+00j,
0. +0.00000000e+00j, 0. +0.0...97921439e-02j,
-0.11864701-1.15333804e-02j, 0.90311691-7.10277723e-03j,
-0.04268167+8.44069780e-03j]])
aTa = array([[ 1.00000000e+00+0.00000000e+00j, -2.77555756e-17+6.93889390e-18j,
2.08166817e-17-2.77555756e-17j, 2....j,
7.80625564e-18+1.08420217e-19j, -2.16840434e-18+4.87890978e-19j,
1.00000000e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 2 / 81 (2.47%)
E Max absolute difference among violations: 1.01076325e-09
E Max relative difference among violations: 1.01076325e-09
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, -2.775558e-17+6.938894e-18j,
E 2.081668e-17-2.775558e-17j, 2.081668e-17-4.683753e-17j,
E -6.938894e-18-2.081668e-17j, -2.775558e-17-4.163336e-17j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc6b60>, array([[ 1.00000000e+00+0.00000000e+00j, -2.77555756e-17+...., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRinsert_D.test_Mx1_1_col _________________________
scipy/linalg/tests/test_decomp_update.py:851: in test_Mx1_1_col
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.20555395j],
[0.97637554+0.57238605j],
[0.73179659+0.93713906j],
[0.68487472+...62759+0.09842774j],
[0.31758111+0.66954795j],
[0.77389198+0.63448525j],
[0.61821572+0.53186528j]])
a1 = array([[0.19692903+0.87183943j, 0.36852295+0.20555395j],
[0.25108618+0.42412754j, 0.97637554+0.57238605j],
...5j],
[0.80851798+0.17999393j, 0.77389198+0.63448525j],
[0.08109652+0.03105987j, 0.61821572+0.53186528j]])
col = 0
q = array([[-0.15132749-0.08440712j, -0.43092343+0.17405462j,
-0.35340931+0.3368798j , -0.30535479+0.14301866j,
...,
-0.04182664-0.02512782j, -0.08309283+0.02979214j,
-0.11864701-0.01153338j, 0.90311691-0.00710278j]])
q1 = array([[-0.02177515-4.14551642e-01j, 0.0036494 -3.87981094e-01j,
-0.4675711 -1.76770806e-01j, -0.04487981-2.3...43139+3.18921109e-02j, -0.1327242 -1.22463573e-01j,
0.07979344-4.18744381e-01j, 0.69309991+7.19023490e-02j]])
r = array([[-2.4352677+0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j]])
r1 = array([[-2.12218727+0.36356888j, -1.80439186+0.j ],
[ 0. +0.j , 1.40601748+0.83535236j],
...
[ 0. +0.j , 0. +0.j ],
[ 0. +0.j , 0. +0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116178080>
u = array([0.19692903+0.87183943j, 0.25108618+0.42412754j,
0.8754754 +0.33271532j, 0.78469287+0.54201381j,
0.05898658+0.56121883j, 0.83897349+0.30233481j,
0.80851798+0.17999393j, 0.08109652+0.03105987j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.19692903+0.87183943j, 0.36852295+0.20555395j],
[0.25108618+0.42412754j, 0.97637554+0.57238605j],
...5j],
[0.80851798+0.17999393j, 0.77389198+0.63448525j],
[0.08109652+0.03105987j, 0.61821572+0.53186528j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.02177515-4.14551642e-01j, 0.0036494 -3.87981094e-01j,
-0.4675711 -1.76770806e-01j, -0.04487981-2.3...43139+3.18921109e-02j, -0.1327242 -1.22463573e-01j,
0.07979344-4.18744381e-01j, 0.69309991+7.19023490e-02j]])
r = array([[-2.12218727+0.36356888j, -1.80439186+0.j ],
[ 0. +0.j , 1.40601748+0.83535236j],
...
[ 0. +0.j , 0. +0.j ],
[ 0. +0.j , 0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.02177515-4.14551642e-01j, 0.0036494 -3.87981094e-01j,
-0.4675711 -1.76770806e-01j, -0.04487981-2.3...43139+3.18921109e-02j, -0.1327242 -1.22463573e-01j,
0.07979344-4.18744381e-01j, 0.69309991+7.19023490e-02j]])
aTa = array([[ 1.00000006e+00+2.56793539e-17j, 7.00476984e-08-4.16171996e-08j,
-1.08035947e-08-5.09426919e-09j, -3....9477e-17j, -1.38777878e-17-3.40792278e-17j,
-1.38777878e-17-1.09328303e-16j, 1.00000000e+00-1.75092270e-17j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 50 / 64 (78.1%)
E Max absolute difference among violations: 1.06641e-07
E Max relative difference among violations: 1.06641e-07
E ACTUAL: array([[ 1.000000e+00+2.567935e-17j, 7.004770e-08-4.161720e-08j,
E -1.080359e-08-5.094269e-09j, -3.468819e-08+1.815442e-08j,
E 1.372581e-08+2.161612e-08j, -7.964813e-09-5.498519e-10j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117c23f60>, array([[ 1.00000006e+00+2.56793539e-17j, 7.00476984e-08-... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRinsert_D.test_Mx1_p_col _________________________
scipy/linalg/tests/test_decomp_update.py:858: in test_Mx1_p_col
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.20555395j],
[0.97637554+0.57238605j],
[0.73179659+0.93713906j],
[0.68487472+...62759+0.09842774j],
[0.31758111+0.66954795j],
[0.77389198+0.63448525j],
[0.61821572+0.53186528j]])
a1 = array([[0.19692903+0.86570213j, 0.25108618+0.00226081j,
0.8754754 +0.4531451j , 0.36852295+0.20555395j],
...25j],
[0.69713675+0.21569725j, 0.44478867+0.06281709j,
0.43275109+0.64568342j, 0.61821572+0.53186528j]])
col = 0
q = array([[-0.15132749-0.08440712j, -0.43092343+0.17405462j,
-0.35340931+0.3368798j , -0.30535479+0.14301866j,
...,
-0.04182664-0.02512782j, -0.08309283+0.02979214j,
-0.11864701-0.01153338j, 0.90311691-0.00710278j]])
q1 = array([[-0.05491277-0.38446739j, 0.10980363-0.4292256j ,
-0.49877447-0.07086451j, -0.22944248-0.24396112j,
...,
0.03302558+0.25861186j, -0.09714123+0.21484161j,
-0.36295895+0.03404417j, 0.56207724+0.08946768j]])
r = array([[-2.4352677+0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j]])
r1 = array([[-2.27837187+0.18679687j, -1.2280209 -0.49112989j,
-2.0191068 +0.08339156j, -2.0692212 +0.j ],
...,
[ 0. +0.j , 0. +0.j ,
0. +0.j , 0. +0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116178260>
u = array([[0.19692903+0.86570213j, 0.25108618+0.00226081j,
0.8754754 +0.4531451j ],
[0.78469287+0.35071609... 0.72072846+0.84034989j],
[0.69713675+0.21569725j, 0.44478867+0.06281709j,
0.43275109+0.64568342j]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.19692903+0.86570213j, 0.25108618+0.00226081j,
0.8754754 +0.4531451j , 0.36852295+0.20555395j],
...25j],
[0.69713675+0.21569725j, 0.44478867+0.06281709j,
0.43275109+0.64568342j, 0.61821572+0.53186528j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.05491277-0.38446739j, 0.10980363-0.4292256j ,
-0.49877447-0.07086451j, -0.22944248-0.24396112j,
...,
0.03302558+0.25861186j, -0.09714123+0.21484161j,
-0.36295895+0.03404417j, 0.56207724+0.08946768j]])
r = array([[-2.27837187+0.18679687j, -1.2280209 -0.49112989j,
-2.0191068 +0.08339156j, -2.0692212 +0.j ],
...,
[ 0. +0.j , 0. +0.j ,
0. +0.j , 0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.05491277-0.38446739j, 0.10980363-0.4292256j ,
-0.49877447-0.07086451j, -0.22944248-0.24396112j,
...,
0.03302558+0.25861186j, -0.09714123+0.21484161j,
-0.36295895+0.03404417j, 0.56207724+0.08946768j]])
aTa = array([[ 1.00000002e+00-2.91461063e-17j, 2.77555756e-17+8.60748228e-18j,
9.02056208e-17+2.67671655e-17j, -8....5661e-17j, -5.55111512e-17+7.08124661e-17j,
-8.32667268e-17-2.06652802e-17j, 1.00000000e+00+1.98567812e-17j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 10 / 64 (15.6%)
E Max absolute difference among violations: 3.46835287e-08
E Max relative difference among violations: 3.46835287e-08
E ACTUAL: array([[ 1.000000e+00-2.914611e-17j, 2.775558e-17+8.607482e-18j,
E 9.020562e-17+2.676717e-17j, -8.326673e-17-9.701525e-19j,
E -2.775558e-17+6.386694e-18j, 1.387779e-17-1.400765e-16j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc7060>, array([[ 1.00000002e+00-2.91461063e-17j, 2.77555756e-17+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
____________________ TestQRinsert_D.test_Mx1_economic_1_row ____________________
scipy/linalg/tests/test_decomp_update.py:865: in test_Mx1_economic_1_row
check_qr(q1, r1, a1, self.rtol, self.atol, False)
a = array([[0.36852295+0.20555395j],
[0.97637554+0.57238605j],
[0.73179659+0.93713906j],
[0.68487472+...62759+0.09842774j],
[0.31758111+0.66954795j],
[0.77389198+0.63448525j],
[0.61821572+0.53186528j]])
a1 = array([[0.19692903+0.25108618j],
[0.36852295+0.20555395j],
[0.97637554+0.57238605j],
[0.73179659+...62759+0.09842774j],
[0.31758111+0.66954795j],
[0.77389198+0.63448525j],
[0.61821572+0.53186528j]])
q = array([[-0.15132749-0.08440712j],
[-0.4009315 -0.2350403j ],
[-0.30049944-0.38481973j],
[-0.28123...8 -0.04041763j],
[-0.13040912-0.27493813j],
[-0.31778518-0.26054025j],
[-0.25385945-0.21840115j]])
q1 = array([[-0.08018005-0.10223024j],
[-0.15004486-0.0836917j ],
[-0.39753327-0.23304813j],
[-0.29795...88-0.04007505j],
[-0.12930379-0.2726078j ],
[-0.31509168-0.25833195j],
[-0.25170778-0.21655002j]])
r = array([[-2.4352677+0.j]])
r1 = array([[-2.45608512+0.j]])
row = 0
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116178440>
u = array([0.19692903+0.25108618j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.19692903+0.25108618j],
[0.36852295+0.20555395j],
[0.97637554+0.57238605j],
[0.73179659+...62759+0.09842774j],
[0.31758111+0.66954795j],
[0.77389198+0.63448525j],
[0.61821572+0.53186528j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[-0.08018005-0.10223024j],
[-0.15004486-0.0836917j ],
[-0.39753327-0.23304813j],
[-0.29795...88-0.04007505j],
[-0.12930379-0.2726078j ],
[-0.31509168-0.25833195j],
[-0.25170778-0.21655002j]])
r = array([[-2.45608512+0.j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.08018005-0.10223024j],
[-0.15004486-0.0836917j ],
[-0.39753327-0.23304813j],
[-0.29795...88-0.04007505j],
[-0.12930379-0.2726078j ],
[-0.31509168-0.25833195j],
[-0.25170778-0.21655002j]])
aTa = array([[1.+0.j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 1 / 1 (100%)
E Max absolute difference among violations: 1.01076303e-09
E Max relative difference among violations: 1.01076303e-09
E ACTUAL: array([[1.+0.j]])
E DESIRED: array([[1.]])
args = (<function assert_allclose.<locals>.compare at 0x117cc4860>, array([[1.+0.j]]), array([[1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
____________________ TestQRinsert_D.test_Mx1_economic_1_col ____________________
scipy/linalg/tests/test_decomp_update.py:879: in test_Mx1_economic_1_col
check_qr(q1, r1, a1, self.rtol, self.atol, False)
a = array([[0.36852295+0.20555395j],
[0.97637554+0.57238605j],
[0.73179659+0.93713906j],
[0.68487472+...62759+0.09842774j],
[0.31758111+0.66954795j],
[0.77389198+0.63448525j],
[0.61821572+0.53186528j]])
a1 = array([[0.19692903+0.87183943j, 0.36852295+0.20555395j],
[0.25108618+0.42412754j, 0.97637554+0.57238605j],
...5j],
[0.80851798+0.17999393j, 0.77389198+0.63448525j],
[0.08109652+0.03105987j, 0.61821572+0.53186528j]])
col = 0
q = array([[-0.15132749-0.08440712j],
[-0.4009315 -0.2350403j ],
[-0.30049944-0.38481973j],
[-0.28123...8 -0.04041763j],
[-0.13040912-0.27493813j],
[-0.31778518-0.26054025j],
[-0.25385945-0.21840115j]])
q1 = array([[-0.02177516-0.41455161j, -0.14241076+0.36091798j],
[-0.08167897-0.21384703j, -0.51887006-0.0268192j ],
...
[-0.35600426-0.14580523j, -0.11760995-0.21025033j],
[-0.03468819-0.0205785j , -0.38593997-0.24079466j]])
r = array([[-2.4352677+0.j]])
r1 = array([[-2.12218733+0.36356889j, -1.80439181+0.j ],
[ 0. +0.j , -1.61196619-0.27615883j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116178800>
u = array([0.19692903+0.87183943j, 0.25108618+0.42412754j,
0.8754754 +0.33271532j, 0.78469287+0.54201381j,
0.05898658+0.56121883j, 0.83897349+0.30233481j,
0.80851798+0.17999393j, 0.08109652+0.03105987j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.19692903+0.87183943j, 0.36852295+0.20555395j],
[0.25108618+0.42412754j, 0.97637554+0.57238605j],
...5j],
[0.80851798+0.17999393j, 0.77389198+0.63448525j],
[0.08109652+0.03105987j, 0.61821572+0.53186528j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[-0.02177516-0.41455161j, -0.14241076+0.36091798j],
[-0.08167897-0.21384703j, -0.51887006-0.0268192j ],
...
[-0.35600426-0.14580523j, -0.11760995-0.21025033j],
[-0.03468819-0.0205785j , -0.38593997-0.24079466j]])
r = array([[-2.12218733+0.36356889j, -1.80439181+0.j ],
[ 0. +0.j , -1.61196619-0.27615883j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.02177516-0.41455161j, -0.14241076+0.36091798j],
[-0.08167897-0.21384703j, -0.51887006-0.0268192j ],
...
[-0.35600426-0.14580523j, -0.11760995-0.21025033j],
[-0.03468819-0.0205785j , -0.38593997-0.24079466j]])
aTa = array([[ 9.99999950e-01+0.00000000e+00j, -8.32667268e-17+5.55111512e-17j],
[-8.32667268e-17-5.55111512e-17j, 9.99999950e-01+0.00000000e+00j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 2 / 4 (50%)
E Max absolute difference among violations: 5.03684774e-08
E Max relative difference among violations: 5.03684774e-08
E ACTUAL: array([[ 9.999999e-01+0.000000e+00j, -8.326673e-17+5.551115e-17j],
E [-8.326673e-17-5.551115e-17j, 9.999999e-01+0.000000e+00j]])
E DESIRED: array([[1., 0.],
E [0., 1.]])
args = (<function assert_allclose.<locals>.compare at 0x117cc58a0>, array([[ 9.99999950e-01+0.00000000e+00j, -8.32667268e-17+...-17j],
[-8.32667268e-17-5.55111512e-17j, 9.99999950e-01+0.00000000e+00j]]), array([[1., 0.],
[0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
____________________ TestQRinsert_D.test_Mx1_economic_p_col ____________________
scipy/linalg/tests/test_decomp_update.py:886: in test_Mx1_economic_p_col
check_qr(q1, r1, a1, self.rtol, self.atol, False)
a = array([[0.36852295+0.20555395j],
[0.97637554+0.57238605j],
[0.73179659+0.93713906j],
[0.68487472+...62759+0.09842774j],
[0.31758111+0.66954795j],
[0.77389198+0.63448525j],
[0.61821572+0.53186528j]])
a1 = array([[0.19692903+0.86570213j, 0.25108618+0.00226081j,
0.8754754 +0.4531451j , 0.36852295+0.20555395j],
...25j],
[0.69713675+0.21569725j, 0.44478867+0.06281709j,
0.43275109+0.64568342j, 0.61821572+0.53186528j]])
col = 0
q = array([[-0.15132749-0.08440712j],
[-0.4009315 -0.2350403j ],
[-0.30049944-0.38481973j],
[-0.28123...8 -0.04041763j],
[-0.13040912-0.27493813j],
[-0.31778518-0.26054025j],
[-0.25385945-0.21840115j]])
q1 = array([[-0.05491277-0.38446739j, -0.10980363+0.4292256j ,
-0.49877447-0.07086451j, 0.22944248+0.24396112j],
...,
[-0.29622719-0.11895844j, -0.02942779+0.18886579j,
0.33297462-0.32231267j, -0.14841738-0.21066363j]])
r = array([[-2.4352677+0.j]])
r1 = array([[-2.27837187+0.18679687j, -1.2280209 -0.49112989j,
-2.0191068 +0.08339156j, -2.0692212 +0.j ],
...,
[ 0. +0.j , 0. +0.j ,
0. +0.j , -0.79727907-0.05552388j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x1161789e0>
u = array([[0.19692903+0.86570213j, 0.25108618+0.00226081j,
0.8754754 +0.4531451j ],
[0.78469287+0.35071609... 0.72072846+0.84034989j],
[0.69713675+0.21569725j, 0.44478867+0.06281709j,
0.43275109+0.64568342j]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.19692903+0.86570213j, 0.25108618+0.00226081j,
0.8754754 +0.4531451j , 0.36852295+0.20555395j],
...25j],
[0.69713675+0.21569725j, 0.44478867+0.06281709j,
0.43275109+0.64568342j, 0.61821572+0.53186528j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[-0.05491277-0.38446739j, -0.10980363+0.4292256j ,
-0.49877447-0.07086451j, 0.22944248+0.24396112j],
...,
[-0.29622719-0.11895844j, -0.02942779+0.18886579j,
0.33297462-0.32231267j, -0.14841738-0.21066363j]])
r = array([[-2.27837187+0.18679687j, -1.2280209 -0.49112989j,
-2.0191068 +0.08339156j, -2.0692212 +0.j ],
...,
[ 0. +0.j , 0. +0.j ,
0. +0.j , -0.79727907-0.05552388j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.05491277-0.38446739j, -0.10980363+0.4292256j ,
-0.49877447-0.07086451j, 0.22944248+0.24396112j],
...,
[-0.29622719-0.11895844j, -0.02942779+0.18886579j,
0.33297462-0.32231267j, -0.14841738-0.21066363j]])
aTa = array([[ 1.00000002e+00+0.00000000e+00j, 3.88578059e-16+5.55111512e-17j,
4.26741975e-16+2.49800181e-16j, -6....9390e-17j, 7.31449787e-09-8.97867058e-11j,
-1.34732766e-08-5.39043479e-09j, 9.99999977e-01+0.00000000e+00j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 10 / 16 (62.5%)
E Max absolute difference among violations: 3.46835283e-08
E Max relative difference among violations: 3.46835283e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, 3.885781e-16+5.551115e-17j,
E 4.267420e-16+2.498002e-16j, -6.106227e-16+6.938894e-17j],
E [ 3.885781e-16-5.551115e-17j, 1.000000e+00+0.000000e+00j,...
E DESIRED: array([[1., 0., 0., 0.],
E [0., 1., 0., 0.],
E [0., 0., 1., 0.],
E [0., 0., 0., 1.]])
args = (<function assert_allclose.<locals>.compare at 0x117cc5f80>, array([[ 1.00000002e+00+0.00000000e+00j, 3.88578059e-16+...00000000e+00j]]), array([[1., 0., 0., 0.],
[0., 1., 0., 0.],
[0., 0., 1., 0.],
[0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRinsert_D.test_1xN_1_row _________________________
scipy/linalg/tests/test_decomp_update.py:893: in test_1xN_1_row
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.20555395j, 0.97637554+0.57238605j,
0.73179659+0.93713906j, 0.68487472+0.45301583j,
0.39762759+0.09842774j, 0.31758111+0.66954795j,
0.77389198+0.63448525j, 0.61821572+0.53186528j]])
a1 = array([[0.19692903+0.87183943j, 0.25108618+0.42412754j,
0.8754754 +0.33271532j, 0.78469287+0.54201381j,
...583j,
0.39762759+0.09842774j, 0.31758111+0.66954795j,
0.77389198+0.63448525j, 0.61821572+0.53186528j]])
q = array([[-0.87333209-0.4871253j]])
q1 = array([[-0.199239 -0.88206606j, 0.42692314+0.j ],
[-0.37284567-0.20796506j, -0.60367851+0.67328224j]])
r = array([[-0.42197345+0.j , -1.13152382-0.02426587j,
-1.0956056 -0.46195698j, -0.81879855-0.06201345j,
-0.39520758+0.10773436j, -0.60350752-0.43003591j,
-0.98493852-0.17713396j, -0.79899266-0.16334649j]])
r1 = array([[-0.98840614+0.j , -0.90720836+0.12661219j,
-0.93564511+0.50871715j, -0.98399745+0.55768569j,
...,
-0.14858685-0.08753701j, 0.61725505-0.48893971j,
0.30518072-0.82722926j, 0.01951388-0.72404913j]])
row = 0
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116178bc0>
u = array([0.19692903+0.87183943j, 0.25108618+0.42412754j,
0.8754754 +0.33271532j, 0.78469287+0.54201381j,
0.05898658+0.56121883j, 0.83897349+0.30233481j,
0.80851798+0.17999393j, 0.08109652+0.03105987j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.19692903+0.87183943j, 0.25108618+0.42412754j,
0.8754754 +0.33271532j, 0.78469287+0.54201381j,
...583j,
0.39762759+0.09842774j, 0.31758111+0.66954795j,
0.77389198+0.63448525j, 0.61821572+0.53186528j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.199239 -0.88206606j, 0.42692314+0.j ],
[-0.37284567-0.20796506j, -0.60367851+0.67328224j]])
r = array([[-0.98840614+0.j , -0.90720836+0.12661219j,
-0.93564511+0.50871715j, -0.98399745+0.55768569j,
...,
-0.14858685-0.08753701j, 0.61725505-0.48893971j,
0.30518072-0.82722926j, 0.01951388-0.72404913j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.199239 -0.88206606j, 0.42692314+0.j ],
[-0.37284567-0.20796506j, -0.60367851+0.67328224j]])
aTa = array([[1.00000008+0.00000000e+00j, 0. -5.55111512e-17j],
[0. +5.55111512e-17j, 1.00000008+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 2 / 4 (50%)
E Max absolute difference among violations: 8.397011e-08
E Max relative difference among violations: 8.397011e-08
E ACTUAL: array([[1.+0.000000e+00j, 0.-5.551115e-17j],
E [0.+5.551115e-17j, 1.+0.000000e+00j]])
E DESIRED: array([[1., 0.],
E [0., 1.]])
args = (<function assert_allclose.<locals>.compare at 0x117cc7600>, array([[1.00000008+0.00000000e+00j, 0. -5.55111512e-17j],
[0. +5.55111512e-17j, 1.00000008+0.00000000e+00j]]), array([[1., 0.],
[0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRinsert_D.test_1x1_1_row _________________________
scipy/linalg/tests/test_decomp_update.py:921: in test_1x1_1_row
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.97637554j]])
a1 = array([[0.73179659+0.68487472j],
[0.36852295+0.97637554j]])
q = array([[-0.35312381-0.9355766j]])
q1 = array([[-0.5057471 -0.47331924j, 0.72124118+0.j ],
[-0.25468743-0.67477637j, -0.62141775-0.30602486j]])
r = array([[-1.04360834+0.j]])
r1 = array([[-1.44696167+0.j],
[ 0. +0.j]])
row = 0
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116179340>
u = array([0.73179659+0.68487472j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.73179659+0.68487472j],
[0.36852295+0.97637554j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.5057471 -0.47331924j, 0.72124118+0.j ],
[-0.25468743-0.67477637j, -0.62141775-0.30602486j]])
r = array([[-1.44696167+0.j],
[ 0. +0.j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.5057471 -0.47331924j, 0.72124118+0.j ],
[-0.25468743-0.67477637j, -0.62141775-0.30602486j]])
aTa = array([[ 1.00000007e+00+0.00000000e+00j, -5.55111512e-17+4.16333634e-17j],
[-5.55111512e-17-4.16333634e-17j, 1.00000007e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 2 / 4 (50%)
E Max absolute difference among violations: 7.26881251e-08
E Max relative difference among violations: 7.26881251e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, -5.551115e-17+4.163336e-17j],
E [-5.551115e-17-4.163336e-17j, 1.000000e+00+0.000000e+00j]])
E DESIRED: array([[1., 0.],
E [0., 1.]])
args = (<function assert_allclose.<locals>.compare at 0x117c23d80>, array([[ 1.00000007e+00+0.00000000e+00j, -5.55111512e-17+...-17j],
[-5.55111512e-17-4.16333634e-17j, 1.00000007e+00+0.00000000e+00j]]), array([[1., 0.],
[0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
__________________ TestQRinsert_D.test_non_unit_strides_1_row __________________
scipy/linalg/tests/test_decomp_update.py:1005: in test_non_unit_strides_1_row
self.base_non_simple_strides(make_strided, 0, 1, 'row')
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116179ca0>
scipy/linalg/tests/test_decomp_update.py:974: in base_non_simple_strides
check_qr(q1, r1, ai, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function make_strided at 0x115363240>
ai = array([[0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
k = 0
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.3054083 -0.08568765j, -0.28014361-0.02952692j,
0.19563298-0.12369069j, 0.35006666-0.3434013j ,
..., -0.30086792+0.34744517j,
-0.18813176+0.41052714j, 0.26783025-0.11475425j,
0.39954433-0.05045007j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.25943349+0.j , -1.57561735-0.53703788j,
-2.15789998-0.51622516j, -1.68663252-0.76899105j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0. +0.j ]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116179ca0>
type = 'sqr'
u = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
u0 = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
us = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
which = 'row'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.3054083 -0.08568765j, -0.28014361-0.02952692j,
0.19563298-0.12369069j, 0.35006666-0.3434013j ,
..., -0.30086792+0.34744517j,
-0.18813176+0.41052714j, 0.26783025-0.11475425j,
0.39954433-0.05045007j]])
r = array([[-2.25943349+0.j , -1.57561735-0.53703788j,
-2.15789998-0.51622516j, -1.68663252-0.76899105j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.3054083 -0.08568765j, -0.28014361-0.02952692j,
0.19563298-0.12369069j, 0.35006666-0.3434013j ,
..., -0.30086792+0.34744517j,
-0.18813176+0.41052714j, 0.26783025-0.11475425j,
0.39954433-0.05045007j]])
aTa = array([[ 1.00000000e+00+0.00000000e+00j, -1.11022302e-16+4.16333634e-17j,
-7.02563008e-17-1.90819582e-16j, 5....j,
3.08807077e-11+1.11925806e-08j, -2.04513818e-08+1.01838159e-08j,
1.00000006e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 65 / 81 (80.2%)
E Max absolute difference among violations: 5.54621176e-08
E Max relative difference among violations: 5.54621176e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, -1.110223e-16+4.163336e-17j,
E -7.025630e-17-1.908196e-16j, 5.551115e-17-1.387779e-17j,
E -2.775558e-17+2.365729e-16j, -6.938894e-17-1.316221e-16j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc4400>, array([[ 1.00000000e+00+0.00000000e+00j, -1.11022302e-16+...., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
__________________ TestQRinsert_D.test_non_unit_strides_1_col __________________
scipy/linalg/tests/test_decomp_update.py:1011: in test_non_unit_strides_1_col
self.base_non_simple_strides(make_strided, 0, 1, 'col')
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x1161612e0>
scipy/linalg/tests/test_decomp_update.py:974: in base_non_simple_strides
check_qr(q1, r1, ai, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function make_strided at 0x115363240>
ai = array([[0.69004971+0.19360553j, 0.36852295+0.14279479j,
0.97637554+0.06374039j, 0.73179659+0.89841842j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
k = 0
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.31133284+0.00818516j, -0.25416105+0.08323764j,
0.36864495-0.29118349j, 0.47863211+0.16572372j,
...,
0.08312578-0.31312283j, -0.21976675-0.08076437j,
0.44780504-0.08993459j, 0.33595675-0.36059435j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.19856842-0.67966221j, -1.88878911+0.j ,
-1.64308481-0.60871325j, -2.29992159-0.42174528j,
..., 0. +0.j ,
0. +0.j , -0.23881927-0.01799643j,
0.36255911-0.33802782j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x1161612e0>
type = 'sqr'
u = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
u0 = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
us = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
which = 'col'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.69004971+0.19360553j, 0.36852295+0.14279479j,
0.97637554+0.06374039j, 0.73179659+0.89841842j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.31133284+0.00818516j, -0.25416105+0.08323764j,
0.36864495-0.29118349j, 0.47863211+0.16572372j,
...,
0.08312578-0.31312283j, -0.21976675-0.08076437j,
0.44780504-0.08993459j, 0.33595675-0.36059435j]])
r = array([[-2.19856842-0.67966221j, -1.88878911+0.j ,
-1.64308481-0.60871325j, -2.29992159-0.42174528j,
..., 0. +0.j ,
0. +0.j , -0.23881927-0.01799643j,
0.36255911-0.33802782j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.31133284+0.00818516j, -0.25416105+0.08323764j,
0.36864495-0.29118349j, 0.47863211+0.16572372j,
...,
0.08312578-0.31312283j, -0.21976675-0.08076437j,
0.44780504-0.08993459j, 0.33595675-0.36059435j]])
aTa = array([[ 1.00000003e+00-4.19486303e-17j, 1.42353991e-08+4.53073387e-09j,
2.98351707e-09-4.70493859e-10j, -1....3635e-17j, 5.55111512e-17+1.01287903e-16j,
6.24500451e-17-1.49876673e-16j, 1.00000001e+00-1.90113599e-17j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 50 / 64 (78.1%)
E Max absolute difference among violations: 5.07377538e-08
E Max relative difference among violations: 5.07377538e-08
E ACTUAL: array([[ 1.000000e+00-4.194863e-17j, 1.423540e-08+4.530734e-09j,
E 2.983517e-09-4.704939e-10j, -1.125151e-10+3.811585e-10j,
E 7.080195e-10+1.609329e-09j, -3.315578e-09-8.653049e-10j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc4f40>, array([[ 1.00000003e+00-4.19486303e-17j, 1.42353991e-08+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
__________________ TestQRinsert_D.test_non_unit_strides_p_col __________________
scipy/linalg/tests/test_decomp_update.py:1014: in test_non_unit_strides_p_col
self.base_non_simple_strides(make_strided, 0, 3, 'col')
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116163020>
scipy/linalg/tests/test_decomp_update.py:974: in base_non_simple_strides
check_qr(q1, r1, ai, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function make_strided at 0x115363240>
ai = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j , 0.36852295+0.14279479j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
k = 0
p = 3
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.32280536-0.18345524j, -0.13370067-0.16881654j,
0.1255672 +0.04363497j, -0.16314046-0.13084926j,
...,
0.05340357-0.51189146j, 0.30834139+0.25530744j,
-0.33636952+0.0447657j , 0.40848463-0.18628585j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.4344645 -0.52224441j, -2.0138392 -0.27725687j,
-1.63506691-0.14215892j, -1.78122461+0.j ,
..., -0.04667299+0.25599919j,
-0.23169306+0.46437499j, -0.05506421+0.25416257j,
0.56397199+0.30820313j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116163020>
type = 'sqr'
u = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j ],
[0.2670281 +0.8092116j... 0.19352602+0.20652787j],
[0.42250713+0.57184983j, 0.24968324+0.36117885j,
0.31072018+0.15989782j]])
u0 = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j ],
[0.2670281 +0.8092116j... 0.19352602+0.20652787j],
[0.42250713+0.57184983j, 0.24968324+0.36117885j,
0.31072018+0.15989782j]])
us = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j ],
[0.2670281 +0.8092116j... 0.19352602+0.20652787j],
[0.42250713+0.57184983j, 0.24968324+0.36117885j,
0.31072018+0.15989782j]])
which = 'col'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j , 0.36852295+0.14279479j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.32280536-0.18345524j, -0.13370067-0.16881654j,
0.1255672 +0.04363497j, -0.16314046-0.13084926j,
...,
0.05340357-0.51189146j, 0.30834139+0.25530744j,
-0.33636952+0.0447657j , 0.40848463-0.18628585j]])
r = array([[-2.4344645 -0.52224441j, -2.0138392 -0.27725687j,
-1.63506691-0.14215892j, -1.78122461+0.j ,
..., -0.04667299+0.25599919j,
-0.23169306+0.46437499j, -0.05506421+0.25416257j,
0.56397199+0.30820313j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.32280536-0.18345524j, -0.13370067-0.16881654j,
0.1255672 +0.04363497j, -0.16314046-0.13084926j,
...,
0.05340357-0.51189146j, 0.30834139+0.25530744j,
-0.33636952+0.0447657j , 0.40848463-0.18628585j]])
aTa = array([[ 1.00000002e+00-5.83801173e-17j, 2.17259108e-09-9.94023268e-09j,
-3.42973566e-09-2.69099033e-09j, 5....6428e-09j, -6.63454340e-09+3.69966573e-09j,
-4.87909169e-09-1.00922594e-08j, 9.99999953e-01-3.63683756e-19j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 8.09549376e-08
E Max relative difference among violations: 8.09549376e-08
E ACTUAL: array([[ 1.000000e+00-5.838012e-17j, 2.172591e-09-9.940233e-09j,
E -3.429736e-09-2.690990e-09j, 5.624914e-10+8.367370e-09j,
E -3.763218e-09-1.605057e-09j, 1.335882e-09+6.042179e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc5e40>, array([[ 1.00000002e+00-5.83801173e-17j, 2.17259108e-09-... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
____________________ TestQRinsert_D.test_neg_strides_1_row _____________________
scipy/linalg/tests/test_decomp_update.py:1017: in test_neg_strides_1_row
self.base_non_simple_strides(negate_strides, 0, 1, 'row')
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116179df0>
scipy/linalg/tests/test_decomp_update.py:974: in base_non_simple_strides
check_qr(q1, r1, ai, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function negate_strides at 0x1153632e0>
ai = array([[0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
k = 0
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.3054083 -0.08568765j, -0.28014361-0.02952692j,
0.19563298-0.12369069j, 0.35006666-0.3434013j ,
..., -0.30086792+0.34744517j,
-0.18813176+0.41052714j, 0.26783025-0.11475425j,
0.39954433-0.05045007j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.25943349+0.j , -1.57561735-0.53703788j,
-2.15789998-0.51622516j, -1.68663252-0.76899105j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0. +0.j ]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116179df0>
type = 'sqr'
u = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
u0 = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
us = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
which = 'row'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.3054083 -0.08568765j, -0.28014361-0.02952692j,
0.19563298-0.12369069j, 0.35006666-0.3434013j ,
..., -0.30086792+0.34744517j,
-0.18813176+0.41052714j, 0.26783025-0.11475425j,
0.39954433-0.05045007j]])
r = array([[-2.25943349+0.j , -1.57561735-0.53703788j,
-2.15789998-0.51622516j, -1.68663252-0.76899105j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.3054083 -0.08568765j, -0.28014361-0.02952692j,
0.19563298-0.12369069j, 0.35006666-0.3434013j ,
..., -0.30086792+0.34744517j,
-0.18813176+0.41052714j, 0.26783025-0.11475425j,
0.39954433-0.05045007j]])
aTa = array([[ 1.00000000e+00+0.00000000e+00j, -1.11022302e-16+4.16333634e-17j,
-7.02563008e-17-1.90819582e-16j, 5....j,
3.08807077e-11+1.11925806e-08j, -2.04513818e-08+1.01838159e-08j,
1.00000006e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 65 / 81 (80.2%)
E Max absolute difference among violations: 5.54621176e-08
E Max relative difference among violations: 5.54621176e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, -1.110223e-16+4.163336e-17j,
E -7.025630e-17-1.908196e-16j, 5.551115e-17-1.387779e-17j,
E -2.775558e-17+2.365729e-16j, -6.938894e-17-1.316221e-16j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc7f60>, array([[ 1.00000000e+00+0.00000000e+00j, -1.11022302e-16+...., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
____________________ TestQRinsert_D.test_neg_strides_1_col _____________________
scipy/linalg/tests/test_decomp_update.py:1023: in test_neg_strides_1_col
self.base_non_simple_strides(negate_strides, 0, 1, 'col')
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116179250>
scipy/linalg/tests/test_decomp_update.py:974: in base_non_simple_strides
check_qr(q1, r1, ai, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function negate_strides at 0x1153632e0>
ai = array([[0.69004971+0.19360553j, 0.36852295+0.14279479j,
0.97637554+0.06374039j, 0.73179659+0.89841842j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
k = 0
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.31133284+0.00818516j, -0.25416105+0.08323764j,
0.36864495-0.29118349j, 0.47863211+0.16572372j,
...,
0.08312578-0.31312283j, -0.21976675-0.08076437j,
0.44780504-0.08993459j, 0.33595675-0.36059435j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.19856842-0.67966221j, -1.88878911+0.j ,
-1.64308481-0.60871325j, -2.29992159-0.42174528j,
..., 0. +0.j ,
0. +0.j , -0.23881927-0.01799643j,
0.36255911-0.33802782j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116179250>
type = 'sqr'
u = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
u0 = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
us = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
which = 'col'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.69004971+0.19360553j, 0.36852295+0.14279479j,
0.97637554+0.06374039j, 0.73179659+0.89841842j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.31133284+0.00818516j, -0.25416105+0.08323764j,
0.36864495-0.29118349j, 0.47863211+0.16572372j,
...,
0.08312578-0.31312283j, -0.21976675-0.08076437j,
0.44780504-0.08993459j, 0.33595675-0.36059435j]])
r = array([[-2.19856842-0.67966221j, -1.88878911+0.j ,
-1.64308481-0.60871325j, -2.29992159-0.42174528j,
..., 0. +0.j ,
0. +0.j , -0.23881927-0.01799643j,
0.36255911-0.33802782j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.31133284+0.00818516j, -0.25416105+0.08323764j,
0.36864495-0.29118349j, 0.47863211+0.16572372j,
...,
0.08312578-0.31312283j, -0.21976675-0.08076437j,
0.44780504-0.08993459j, 0.33595675-0.36059435j]])
aTa = array([[ 1.00000003e+00-4.19486303e-17j, 1.42353991e-08+4.53073387e-09j,
2.98351707e-09-4.70493859e-10j, -1....3635e-17j, 5.55111512e-17+1.01287903e-16j,
6.24500451e-17-1.49876673e-16j, 1.00000001e+00-1.90113599e-17j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 50 / 64 (78.1%)
E Max absolute difference among violations: 5.07377538e-08
E Max relative difference among violations: 5.07377538e-08
E ACTUAL: array([[ 1.000000e+00-4.194863e-17j, 1.423540e-08+4.530734e-09j,
E 2.983517e-09-4.704939e-10j, -1.125151e-10+3.811585e-10j,
E 7.080195e-10+1.609329e-09j, -3.315578e-09-8.653049e-10j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x1178945e0>, array([[ 1.00000003e+00-4.19486303e-17j, 1.42353991e-08+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
____________________ TestQRinsert_D.test_neg_strides_p_col _____________________
scipy/linalg/tests/test_decomp_update.py:1026: in test_neg_strides_p_col
self.base_non_simple_strides(negate_strides, 0, 3, 'col')
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116178b30>
scipy/linalg/tests/test_decomp_update.py:974: in base_non_simple_strides
check_qr(q1, r1, ai, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function negate_strides at 0x1153632e0>
ai = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j , 0.36852295+0.14279479j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
k = 0
p = 3
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.32280536-0.18345524j, -0.13370067-0.16881654j,
0.1255672 +0.04363497j, -0.16314046-0.13084926j,
...,
0.05340357-0.51189146j, 0.30834139+0.25530744j,
-0.33636952+0.0447657j , 0.40848463-0.18628585j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.4344645 -0.52224441j, -2.0138392 -0.27725687j,
-1.63506691-0.14215892j, -1.78122461+0.j ,
..., -0.04667299+0.25599919j,
-0.23169306+0.46437499j, -0.05506421+0.25416257j,
0.56397199+0.30820313j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116178b30>
type = 'sqr'
u = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j ],
[0.2670281 +0.8092116j... 0.19352602+0.20652787j],
[0.42250713+0.57184983j, 0.24968324+0.36117885j,
0.31072018+0.15989782j]])
u0 = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j ],
[0.2670281 +0.8092116j... 0.19352602+0.20652787j],
[0.42250713+0.57184983j, 0.24968324+0.36117885j,
0.31072018+0.15989782j]])
us = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j ],
[0.2670281 +0.8092116j... 0.19352602+0.20652787j],
[0.42250713+0.57184983j, 0.24968324+0.36117885j,
0.31072018+0.15989782j]])
which = 'col'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j , 0.36852295+0.14279479j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.32280536-0.18345524j, -0.13370067-0.16881654j,
0.1255672 +0.04363497j, -0.16314046-0.13084926j,
...,
0.05340357-0.51189146j, 0.30834139+0.25530744j,
-0.33636952+0.0447657j , 0.40848463-0.18628585j]])
r = array([[-2.4344645 -0.52224441j, -2.0138392 -0.27725687j,
-1.63506691-0.14215892j, -1.78122461+0.j ,
..., -0.04667299+0.25599919j,
-0.23169306+0.46437499j, -0.05506421+0.25416257j,
0.56397199+0.30820313j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.32280536-0.18345524j, -0.13370067-0.16881654j,
0.1255672 +0.04363497j, -0.16314046-0.13084926j,
...,
0.05340357-0.51189146j, 0.30834139+0.25530744j,
-0.33636952+0.0447657j , 0.40848463-0.18628585j]])
aTa = array([[ 1.00000002e+00-5.83801173e-17j, 2.17259108e-09-9.94023268e-09j,
-3.42973566e-09-2.69099033e-09j, 5....6428e-09j, -6.63454340e-09+3.69966573e-09j,
-4.87909169e-09-1.00922594e-08j, 9.99999953e-01-3.63683756e-19j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 8.09549376e-08
E Max relative difference among violations: 8.09549376e-08
E ACTUAL: array([[ 1.000000e+00-5.838012e-17j, 2.172591e-09-9.940233e-09j,
E -3.429736e-09-2.690990e-09j, 5.624914e-10+8.367370e-09j,
E -3.763218e-09-1.605057e-09j, 1.335882e-09+6.042179e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc7f60>, array([[ 1.00000002e+00-5.83801173e-17j, 2.17259108e-09-... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________ TestQRinsert_D.test_non_itemsize_strides_1_row ________________
scipy/linalg/tests/test_decomp_update.py:1029: in test_non_itemsize_strides_1_row
self.base_non_simple_strides(nonitemsize_strides, 0, 1, 'row')
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116178560>
scipy/linalg/tests/test_decomp_update.py:974: in base_non_simple_strides
check_qr(q1, r1, ai, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function nonitemsize_strides at 0x115363380>
ai = array([[0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
k = 0
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.3054083 -0.08568765j, -0.28014361-0.02952692j,
0.19563298-0.12369069j, 0.35006666-0.3434013j ,
..., -0.30086792+0.34744517j,
-0.18813176+0.41052714j, 0.26783025-0.11475425j,
0.39954433-0.05045007j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.25943349+0.j , -1.57561735-0.53703788j,
-2.15789998-0.51622516j, -1.68663252-0.76899105j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0. +0.j ]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x116178560>
type = 'sqr'
u = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
u0 = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
us = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
which = 'row'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.3054083 -0.08568765j, -0.28014361-0.02952692j,
0.19563298-0.12369069j, 0.35006666-0.3434013j ,
..., -0.30086792+0.34744517j,
-0.18813176+0.41052714j, 0.26783025-0.11475425j,
0.39954433-0.05045007j]])
r = array([[-2.25943349+0.j , -1.57561735-0.53703788j,
-2.15789998-0.51622516j, -1.68663252-0.76899105j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.3054083 -0.08568765j, -0.28014361-0.02952692j,
0.19563298-0.12369069j, 0.35006666-0.3434013j ,
..., -0.30086792+0.34744517j,
-0.18813176+0.41052714j, 0.26783025-0.11475425j,
0.39954433-0.05045007j]])
aTa = array([[ 1.00000000e+00+0.00000000e+00j, -1.11022302e-16+4.16333634e-17j,
-7.02563008e-17-1.90819582e-16j, 5....j,
3.08807077e-11+1.11925806e-08j, -2.04513818e-08+1.01838159e-08j,
1.00000006e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 65 / 81 (80.2%)
E Max absolute difference among violations: 5.54621176e-08
E Max relative difference among violations: 5.54621176e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, -1.110223e-16+4.163336e-17j,
E -7.025630e-17-1.908196e-16j, 5.551115e-17-1.387779e-17j,
E -2.775558e-17+2.365729e-16j, -6.938894e-17-1.316221e-16j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc7240>, array([[ 1.00000000e+00+0.00000000e+00j, -1.11022302e-16+...., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________ TestQRinsert_D.test_non_itemsize_strides_1_col ________________
scipy/linalg/tests/test_decomp_update.py:1035: in test_non_itemsize_strides_1_col
self.base_non_simple_strides(nonitemsize_strides, 0, 1, 'col')
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x11617a1e0>
scipy/linalg/tests/test_decomp_update.py:974: in base_non_simple_strides
check_qr(q1, r1, ai, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function nonitemsize_strides at 0x115363380>
ai = array([[0.69004971+0.19360553j, 0.36852295+0.14279479j,
0.97637554+0.06374039j, 0.73179659+0.89841842j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
k = 0
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.31133284+0.00818516j, -0.25416105+0.08323764j,
0.36864495-0.29118349j, 0.47863211+0.16572372j,
...,
0.08312578-0.31312283j, -0.21976675-0.08076437j,
0.44780504-0.08993459j, 0.33595675-0.36059435j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.19856842-0.67966221j, -1.88878911+0.j ,
-1.64308481-0.60871325j, -2.29992159-0.42174528j,
..., 0. +0.j ,
0. +0.j , -0.23881927-0.01799643j,
0.36255911-0.33802782j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x11617a1e0>
type = 'sqr'
u = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
u0 = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
us = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
which = 'col'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.69004971+0.19360553j, 0.36852295+0.14279479j,
0.97637554+0.06374039j, 0.73179659+0.89841842j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.31133284+0.00818516j, -0.25416105+0.08323764j,
0.36864495-0.29118349j, 0.47863211+0.16572372j,
...,
0.08312578-0.31312283j, -0.21976675-0.08076437j,
0.44780504-0.08993459j, 0.33595675-0.36059435j]])
r = array([[-2.19856842-0.67966221j, -1.88878911+0.j ,
-1.64308481-0.60871325j, -2.29992159-0.42174528j,
..., 0. +0.j ,
0. +0.j , -0.23881927-0.01799643j,
0.36255911-0.33802782j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.31133284+0.00818516j, -0.25416105+0.08323764j,
0.36864495-0.29118349j, 0.47863211+0.16572372j,
...,
0.08312578-0.31312283j, -0.21976675-0.08076437j,
0.44780504-0.08993459j, 0.33595675-0.36059435j]])
aTa = array([[ 1.00000003e+00+4.47122416e-17j, 1.42353990e-08+4.53073380e-09j,
2.98351689e-09-4.70493814e-10j, -1....8265e-17j, 8.32667268e-17+1.24341712e-16j,
5.55111512e-17-1.08901010e-16j, 1.00000001e+00-4.85714836e-17j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 50 / 64 (78.1%)
E Max absolute difference among violations: 5.07377536e-08
E Max relative difference among violations: 5.07377536e-08
E ACTUAL: array([[ 1.000000e+00+4.471224e-17j, 1.423540e-08+4.530734e-09j,
E 2.983517e-09-4.704938e-10j, -1.125151e-10+3.811586e-10j,
E 7.080194e-10+1.609329e-09j, -3.315578e-09-8.653049e-10j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc4400>, array([[ 1.00000003e+00+4.47122416e-17j, 1.42353990e-08+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________ TestQRinsert_D.test_non_itemsize_strides_p_col ________________
scipy/linalg/tests/test_decomp_update.py:1038: in test_non_itemsize_strides_p_col
self.base_non_simple_strides(nonitemsize_strides, 0, 3, 'col')
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x11617a3c0>
scipy/linalg/tests/test_decomp_update.py:974: in base_non_simple_strides
check_qr(q1, r1, ai, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function nonitemsize_strides at 0x115363380>
ai = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j , 0.36852295+0.14279479j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
k = 0
p = 3
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.32280536-0.18345524j, -0.13370067-0.16881654j,
0.1255672 +0.04363497j, -0.16314046-0.13084926j,
...,
0.05340357-0.51189146j, 0.30834139+0.25530744j,
-0.33636952+0.0447657j , 0.40848463-0.18628585j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.4344645 -0.52224441j, -2.0138392 -0.27725687j,
-1.63506691-0.14215892j, -1.78122461+0.j ,
..., -0.04667299+0.25599919j,
-0.23169306+0.46437499j, -0.05506421+0.25416257j,
0.56397199+0.30820313j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x11617a3c0>
type = 'sqr'
u = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j ],
[0.2670281 +0.8092116j... 0.19352602+0.20652787j],
[0.42250713+0.57184983j, 0.24968324+0.36117885j,
0.31072018+0.15989782j]])
u0 = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j ],
[0.2670281 +0.8092116j... 0.19352602+0.20652787j],
[0.42250713+0.57184983j, 0.24968324+0.36117885j,
0.31072018+0.15989782j]])
us = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j ],
[0.2670281 +0.8092116j... 0.19352602+0.20652787j],
[0.42250713+0.57184983j, 0.24968324+0.36117885j,
0.31072018+0.15989782j]])
which = 'col'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j , 0.36852295+0.14279479j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.32280536-0.18345524j, -0.13370067-0.16881654j,
0.1255672 +0.04363497j, -0.16314046-0.13084926j,
...,
0.05340357-0.51189146j, 0.30834139+0.25530744j,
-0.33636952+0.0447657j , 0.40848463-0.18628585j]])
r = array([[-2.4344645 -0.52224441j, -2.0138392 -0.27725687j,
-1.63506691-0.14215892j, -1.78122461+0.j ,
..., -0.04667299+0.25599919j,
-0.23169306+0.46437499j, -0.05506421+0.25416257j,
0.56397199+0.30820313j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.32280536-0.18345524j, -0.13370067-0.16881654j,
0.1255672 +0.04363497j, -0.16314046-0.13084926j,
...,
0.05340357-0.51189146j, 0.30834139+0.25530744j,
-0.33636952+0.0447657j , 0.40848463-0.18628585j]])
aTa = array([[ 1.00000002e+00-5.83801173e-17j, 2.17259108e-09-9.94023268e-09j,
-3.42973566e-09-2.69099033e-09j, 5....6428e-09j, -6.63454340e-09+3.69966573e-09j,
-4.87909169e-09-1.00922594e-08j, 9.99999953e-01-3.63683756e-19j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 8.09549376e-08
E Max relative difference among violations: 8.09549376e-08
E ACTUAL: array([[ 1.000000e+00-5.838012e-17j, 2.172591e-09-9.940233e-09j,
E -3.429736e-09-2.690990e-09j, 5.624914e-10+8.367370e-09j,
E -3.763218e-09-1.605057e-09j, 1.335882e-09+6.042179e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc7380>, array([[ 1.00000002e+00-5.83801173e-17j, 2.17259108e-09-... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_______________ TestQRinsert_D.test_non_native_byte_order_1_row ________________
scipy/linalg/tests/test_decomp_update.py:1041: in test_non_native_byte_order_1_row
self.base_non_simple_strides(make_nonnative, 0, 1, 'row')
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x11617a5a0>
scipy/linalg/tests/test_decomp_update.py:974: in base_non_simple_strides
check_qr(q1, r1, ai, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function make_nonnative at 0x115363420>
ai = array([[0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
k = 0
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.3054083 -0.08568765j, -0.28014361-0.02952692j,
0.19563298-0.12369069j, 0.35006666-0.3434013j ,
..., -0.30086792+0.34744517j,
-0.18813176+0.41052714j, 0.26783025-0.11475425j,
0.39954433-0.05045007j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...0772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]], dtype='>c16')
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.25943349+0.j , -1.57561735-0.53703788j,
-2.15789998-0.51622516j, -1.68663252-0.76899105j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0. +0.j ]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
... +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]], dtype='>c16')
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x11617a5a0>
type = 'sqr'
u = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
u0 = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
us = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ], dtype='>c16')
which = 'row'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.3054083 -0.08568765j, -0.28014361-0.02952692j,
0.19563298-0.12369069j, 0.35006666-0.3434013j ,
..., -0.30086792+0.34744517j,
-0.18813176+0.41052714j, 0.26783025-0.11475425j,
0.39954433-0.05045007j]])
r = array([[-2.25943349+0.j , -1.57561735-0.53703788j,
-2.15789998-0.51622516j, -1.68663252-0.76899105j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.3054083 -0.08568765j, -0.28014361-0.02952692j,
0.19563298-0.12369069j, 0.35006666-0.3434013j ,
..., -0.30086792+0.34744517j,
-0.18813176+0.41052714j, 0.26783025-0.11475425j,
0.39954433-0.05045007j]])
aTa = array([[ 1.00000000e+00+0.00000000e+00j, -1.11022302e-16+4.16333634e-17j,
-7.02563008e-17-1.90819582e-16j, 5....j,
3.08807077e-11+1.11925806e-08j, -2.04513818e-08+1.01838159e-08j,
1.00000006e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 65 / 81 (80.2%)
E Max absolute difference among violations: 5.54621176e-08
E Max relative difference among violations: 5.54621176e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, -1.110223e-16+4.163336e-17j,
E -7.025630e-17-1.908196e-16j, 5.551115e-17-1.387779e-17j,
E -2.775558e-17+2.365729e-16j, -6.938894e-17-1.316221e-16j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117894900>, array([[ 1.00000000e+00+0.00000000e+00j, -1.11022302e-16+...., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_______________ TestQRinsert_D.test_non_native_byte_order_1_col ________________
scipy/linalg/tests/test_decomp_update.py:1047: in test_non_native_byte_order_1_col
self.base_non_simple_strides(make_nonnative, 0, 1, 'col')
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x11617a960>
scipy/linalg/tests/test_decomp_update.py:974: in base_non_simple_strides
check_qr(q1, r1, ai, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function make_nonnative at 0x115363420>
ai = array([[0.69004971+0.19360553j, 0.36852295+0.14279479j,
0.97637554+0.06374039j, 0.73179659+0.89841842j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
k = 0
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.31133284+0.00818516j, -0.25416105+0.08323764j,
0.36864495-0.29118349j, 0.47863211+0.16572372j,
...,
0.08312578-0.31312283j, -0.21976675-0.08076437j,
0.44780504-0.08993459j, 0.33595675-0.36059435j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...0772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]], dtype='>c16')
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.19856842-0.67966221j, -1.88878911+0.j ,
-1.64308481-0.60871325j, -2.29992159-0.42174528j,
..., 0. +0.j ,
0. +0.j , -0.23881927-0.01799643j,
0.36255911-0.33802782j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
... +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]], dtype='>c16')
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x11617a960>
type = 'sqr'
u = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
u0 = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
us = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ], dtype='>c16')
which = 'col'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.69004971+0.19360553j, 0.36852295+0.14279479j,
0.97637554+0.06374039j, 0.73179659+0.89841842j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.31133284+0.00818516j, -0.25416105+0.08323764j,
0.36864495-0.29118349j, 0.47863211+0.16572372j,
...,
0.08312578-0.31312283j, -0.21976675-0.08076437j,
0.44780504-0.08993459j, 0.33595675-0.36059435j]])
r = array([[-2.19856842-0.67966221j, -1.88878911+0.j ,
-1.64308481-0.60871325j, -2.29992159-0.42174528j,
..., 0. +0.j ,
0. +0.j , -0.23881927-0.01799643j,
0.36255911-0.33802782j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.31133284+0.00818516j, -0.25416105+0.08323764j,
0.36864495-0.29118349j, 0.47863211+0.16572372j,
...,
0.08312578-0.31312283j, -0.21976675-0.08076437j,
0.44780504-0.08993459j, 0.33595675-0.36059435j]])
aTa = array([[ 1.00000003e+00-4.19486303e-17j, 1.42353991e-08+4.53073387e-09j,
2.98351707e-09-4.70493859e-10j, -1....3635e-17j, 5.55111512e-17+1.01287903e-16j,
6.24500451e-17-1.49876673e-16j, 1.00000001e+00-1.90113599e-17j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 50 / 64 (78.1%)
E Max absolute difference among violations: 5.07377538e-08
E Max relative difference among violations: 5.07377538e-08
E ACTUAL: array([[ 1.000000e+00-4.194863e-17j, 1.423540e-08+4.530734e-09j,
E 2.983517e-09-4.704939e-10j, -1.125151e-10+3.811585e-10j,
E 7.080195e-10+1.609329e-09j, -3.315578e-09-8.653049e-10j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x1178940e0>, array([[ 1.00000003e+00-4.19486303e-17j, 1.42353991e-08+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_______________ TestQRinsert_D.test_non_native_byte_order_p_col ________________
scipy/linalg/tests/test_decomp_update.py:1050: in test_non_native_byte_order_p_col
self.base_non_simple_strides(make_nonnative, 0, 3, 'col')
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x11617ab40>
scipy/linalg/tests/test_decomp_update.py:974: in base_non_simple_strides
check_qr(q1, r1, ai, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function make_nonnative at 0x115363420>
ai = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j , 0.36852295+0.14279479j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
k = 0
p = 3
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.32280536-0.18345524j, -0.13370067-0.16881654j,
0.1255672 +0.04363497j, -0.16314046-0.13084926j,
...,
0.05340357-0.51189146j, 0.30834139+0.25530744j,
-0.33636952+0.0447657j , 0.40848463-0.18628585j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...0772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]], dtype='>c16')
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.4344645 -0.52224441j, -2.0138392 -0.27725687j,
-1.63506691-0.14215892j, -1.78122461+0.j ,
..., -0.04667299+0.25599919j,
-0.23169306+0.46437499j, -0.05506421+0.25416257j,
0.56397199+0.30820313j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
... +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]], dtype='>c16')
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x11617ab40>
type = 'sqr'
u = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j ],
[0.2670281 +0.8092116j... 0.19352602+0.20652787j],
[0.42250713+0.57184983j, 0.24968324+0.36117885j,
0.31072018+0.15989782j]])
u0 = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j ],
[0.2670281 +0.8092116j... 0.19352602+0.20652787j],
[0.42250713+0.57184983j, 0.24968324+0.36117885j,
0.31072018+0.15989782j]])
us = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j ],
[0.2670281 +0.8092116j...2+0.20652787j],
[0.42250713+0.57184983j, 0.24968324+0.36117885j,
0.31072018+0.15989782j]], dtype='>c16')
which = 'col'
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j , 0.36852295+0.14279479j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.32280536-0.18345524j, -0.13370067-0.16881654j,
0.1255672 +0.04363497j, -0.16314046-0.13084926j,
...,
0.05340357-0.51189146j, 0.30834139+0.25530744j,
-0.33636952+0.0447657j , 0.40848463-0.18628585j]])
r = array([[-2.4344645 -0.52224441j, -2.0138392 -0.27725687j,
-1.63506691-0.14215892j, -1.78122461+0.j ,
..., -0.04667299+0.25599919j,
-0.23169306+0.46437499j, -0.05506421+0.25416257j,
0.56397199+0.30820313j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.32280536-0.18345524j, -0.13370067-0.16881654j,
0.1255672 +0.04363497j, -0.16314046-0.13084926j,
...,
0.05340357-0.51189146j, 0.30834139+0.25530744j,
-0.33636952+0.0447657j , 0.40848463-0.18628585j]])
aTa = array([[ 1.00000002e+00-5.83801173e-17j, 2.17259108e-09-9.94023268e-09j,
-3.42973566e-09-2.69099033e-09j, 5....6428e-09j, -6.63454340e-09+3.69966573e-09j,
-4.87909169e-09-1.00922594e-08j, 9.99999953e-01-3.63683756e-19j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 8.09549376e-08
E Max relative difference among violations: 8.09549376e-08
E ACTUAL: array([[ 1.000000e+00-5.838012e-17j, 2.172591e-09-9.940233e-09j,
E -3.429736e-09-2.690990e-09j, 5.624914e-10+8.367370e-09j,
E -3.763218e-09-1.605057e-09j, 1.335882e-09+6.042179e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117cc7c40>, array([[ 1.00000002e+00-5.83801173e-17j, 2.17259108e-09-... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
___________________ TestQRinsert_D.test_overwrite_qu_rank_1 ____________________
scipy/linalg/tests/test_decomp_update.py:1063: in test_overwrite_qu_rank_1
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.69004971+0.19360553j, 0.36852295+0.14279479j,
0.97637554+0.06374039j, 0.73179659+0.89841842j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.31133284+0.00818516j, -0.25416105+0.08323764j,
0.36864495-0.29118349j, 0.47863211+0.16572372j,
...,
0.08312578-0.31312283j, -0.21976675-0.08076437j,
0.44780504-0.08993459j, 0.33595675-0.36059435j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.19856842-0.67966221j, -1.88878911+0.j ,
-1.64308481-0.60871325j, -2.29992159-0.42174528j,
..., 0. +0.j ,
0. +0.j , -0.23881927-0.01799643j,
0.36255911-0.33802782j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x11617ad20>
u = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
u0 = array([0.69004971+0.19360553j, 0.82775052+0.34040244j,
0.47553715+0.6170145j , 0.2670281 +0.888258j ,
0.50729606+0.89656783j, 0.42612341+0.67433536j,
0.40090086+0.24952374j, 0.5327176 +0.5563584j ])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.69004971+0.19360553j, 0.36852295+0.14279479j,
0.97637554+0.06374039j, 0.73179659+0.89841842j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.31133284+0.00818516j, -0.25416105+0.08323764j,
0.36864495-0.29118349j, 0.47863211+0.16572372j,
...,
0.08312578-0.31312283j, -0.21976675-0.08076437j,
0.44780504-0.08993459j, 0.33595675-0.36059435j]])
r = array([[-2.19856842-0.67966221j, -1.88878911+0.j ,
-1.64308481-0.60871325j, -2.29992159-0.42174528j,
..., 0. +0.j ,
0. +0.j , -0.23881927-0.01799643j,
0.36255911-0.33802782j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.31133284+0.00818516j, -0.25416105+0.08323764j,
0.36864495-0.29118349j, 0.47863211+0.16572372j,
...,
0.08312578-0.31312283j, -0.21976675-0.08076437j,
0.44780504-0.08993459j, 0.33595675-0.36059435j]])
aTa = array([[ 1.00000003e+00+4.47122416e-17j, 1.42353990e-08+4.53073380e-09j,
2.98351689e-09-4.70493814e-10j, -1....8265e-17j, 8.32667268e-17+1.24341712e-16j,
5.55111512e-17-1.08901010e-16j, 1.00000001e+00-4.85714836e-17j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 50 / 64 (78.1%)
E Max absolute difference among violations: 5.07377536e-08
E Max relative difference among violations: 5.07377536e-08
E ACTUAL: array([[ 1.000000e+00+4.471224e-17j, 1.423540e-08+4.530734e-09j,
E 2.983517e-09-4.704938e-10j, -1.125151e-10+3.811586e-10j,
E 7.080194e-10+1.609329e-09j, -3.315578e-09-8.653049e-10j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a1c7c0>, array([[ 1.00000003e+00+4.47122416e-17j, 1.42353990e-08+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
___________________ TestQRinsert_D.test_overwrite_qu_rank_p ____________________
scipy/linalg/tests/test_decomp_update.py:1095: in test_overwrite_qu_rank_p
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j , 0.36852295+0.14279479j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.32280536-0.18345524j, -0.13370067-0.16881654j,
0.1255672 +0.04363497j, -0.16314046-0.13084926j,
...,
0.05340357-0.51189146j, 0.30834139+0.25530744j,
-0.33636952+0.0447657j , 0.40848463-0.18628585j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.4344645 -0.52224441j, -2.0138392 -0.27725687j,
-1.63506691-0.14215892j, -1.78122461+0.j ,
..., -0.04667299+0.25599919j,
-0.23169306+0.46437499j, -0.05506421+0.25416257j,
0.56397199+0.30820313j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRinsert_D object at 0x11617af00>
u = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j ],
[0.2670281 +0.8092116j... 0.19352602+0.20652787j],
[0.42250713+0.57184983j, 0.24968324+0.36117885j,
0.31072018+0.15989782j]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.69004971+0.61519857j, 0.82775052+0.30568488j,
0.47553715+0.3944807j , 0.36852295+0.14279479j,
...233j, 0.84034989+0.74526508j,
0.21569725+0.74108876j, 0.06281709+0.96201566j,
0.64568342+0.2662364j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.32280536-0.18345524j, -0.13370067-0.16881654j,
0.1255672 +0.04363497j, -0.16314046-0.13084926j,
...,
0.05340357-0.51189146j, 0.30834139+0.25530744j,
-0.33636952+0.0447657j , 0.40848463-0.18628585j]])
r = array([[-2.4344645 -0.52224441j, -2.0138392 -0.27725687j,
-1.63506691-0.14215892j, -1.78122461+0.j ,
..., -0.04667299+0.25599919j,
-0.23169306+0.46437499j, -0.05506421+0.25416257j,
0.56397199+0.30820313j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.32280536-0.18345524j, -0.13370067-0.16881654j,
0.1255672 +0.04363497j, -0.16314046-0.13084926j,
...,
0.05340357-0.51189146j, 0.30834139+0.25530744j,
-0.33636952+0.0447657j , 0.40848463-0.18628585j]])
aTa = array([[ 1.00000002e+00-5.83801173e-17j, 2.17259108e-09-9.94023268e-09j,
-3.42973566e-09-2.69099033e-09j, 5....6428e-09j, -6.63454340e-09+3.69966573e-09j,
-4.87909169e-09-1.00922594e-08j, 9.99999953e-01-3.63683756e-19j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 8.09549376e-08
E Max relative difference among violations: 8.09549376e-08
E ACTUAL: array([[ 1.000000e+00-5.838012e-17j, 2.172591e-09-9.940233e-09j,
E -3.429736e-09-2.690990e-09j, 5.624914e-10+8.367370e-09j,
E -3.763218e-09-1.605057e-09j, 1.335882e-09+6.042179e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a1c040>, array([[ 1.00000002e+00-5.83801173e-17j, 2.17259108e-09-... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRupdate_D.test_sqr_rank_1 ________________________
scipy/linalg/tests/test_decomp_update.py:1202: in test_sqr_rank_1
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.74029272-0.20676899j, 1.32961515-0.01541156j,
1.31028931+0.86508248j, 1.61110079+0.4574096j ,
...074j,
1.50924477+0.69590914j, 0.74104944+0.66580889j,
0.48800471+0.53847605j, 0.99566458+0.34721435j]])
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.22735462+1.46399374j, -2.17912868+0.16808217j,
-3.27003917+0.66558286j, -3.21579254+0.83515862j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.06419343+0.17494157j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x116161d60>
u = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
v = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.74029272-0.20676899j, 1.32961515-0.01541156j,
1.31028931+0.86508248j, 1.61110079+0.4574096j ,
...074j,
1.50924477+0.69590914j, 0.74104944+0.66580889j,
0.48800471+0.53847605j, 0.99566458+0.34721435j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
r = array([[-2.22735462+1.46399374j, -2.17912868+0.16808217j,
-3.27003917+0.66558286j, -3.21579254+0.83515862j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.06419343+0.17494157j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
aTa = array([[ 9.99999917e-01-4.81877658e-17j, -3.23048643e-10-6.57903061e-10j,
1.07208502e-09-2.92018709e-09j, -1....8662e-08j, 2.85890064e-09-4.06437577e-09j,
-3.09314377e-08+3.09983015e-08j, 9.99999893e-01+5.37425670e-18j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 1.31511139e-07
E Max relative difference among violations: 1.31511139e-07
E ACTUAL: array([[ 9.999999e-01-4.818777e-17j, -3.230486e-10-6.579031e-10j,
E 1.072085e-09-2.920187e-09j, -1.006488e-08+3.312128e-09j,
E -7.532170e-09-8.530349e-09j, 1.565584e-09+2.680135e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117896520>, array([[ 9.99999917e-01-4.81877658e-17j, -3.23048643e-10-... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRupdate_D.test_sqr_rank_p ________________________
scipy/linalg/tests/test_decomp_update.py:1213: in test_sqr_rank_p
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.74029272-0.20676899j, 1.32961515-0.01541156j,
1.31028931+0.86508248j, 1.61110079+0.4574096j ,
...074j,
1.50924477+0.69590914j, 0.74104944+0.66580889j,
0.48800471+0.53847605j, 0.99566458+0.34721435j]])
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.22735462+1.46399374j, -2.17912868+0.16808217j,
-3.27003917+0.66558286j, -3.21579254+0.83515862j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.06419343+0.17494157j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x116178290>
u = array([[0.69004971+0.38714706j],
[0.82775052+0.81300103j],
[0.47553715+0.35251657j],
[0.2670281 +...29606+0.19352602j],
[0.42612341+0.42250713j],
[0.40090086+0.24968324j],
[0.5327176 +0.31072018j]])
v = array([[0.19360553+0.61519857j],
[0.34040244+0.30568488j],
[0.6170145 +0.3944807j ],
[0.888258 +...56783+0.6155938j ],
[0.67433536+0.534635j ],
[0.24952374+0.94059529j],
[0.5563584 +0.17250008j]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.74029272-0.20676899j, 1.32961515-0.01541156j,
1.31028931+0.86508248j, 1.61110079+0.4574096j ,
...074j,
1.50924477+0.69590914j, 0.74104944+0.66580889j,
0.48800471+0.53847605j, 0.99566458+0.34721435j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
r = array([[-2.22735462+1.46399374j, -2.17912868+0.16808217j,
-3.27003917+0.66558286j, -3.21579254+0.83515862j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.06419343+0.17494157j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
aTa = array([[ 9.99999917e-01-4.81877658e-17j, -3.23048643e-10-6.57903061e-10j,
1.07208502e-09-2.92018709e-09j, -1....8662e-08j, 2.85890064e-09-4.06437577e-09j,
-3.09314377e-08+3.09983015e-08j, 9.99999893e-01+5.37425670e-18j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 1.31511139e-07
E Max relative difference among violations: 1.31511139e-07
E ACTUAL: array([[ 9.999999e-01-4.818777e-17j, -3.230486e-10-6.579031e-10j,
E 1.072085e-09-2.920187e-09j, -1.006488e-08+3.312128e-09j,
E -7.532170e-09-8.530349e-09j, 1.565584e-09+2.680135e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117896700>, array([[ 9.99999917e-01-4.81877658e-17j, -3.23048643e-10-... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_______________________ TestQRupdate_D.test_tall_rank_1 ________________________
scipy/linalg/tests/test_decomp_update.py:1219: in test_tall_rank_1
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
a1 = array([[0.3908612 +0.70103497j, 1.22498805+0.88380761j,
1.41719704+0.26743965j, 1.4636082 -0.15787368j,
...278j, 0.62631374+1.09913745j,
0.88810876+1.04380301j, 0.60864029+1.03192173j,
1.33174753+0.13240087j]])
q = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
...,
0.07221112-0.17945509j, 0.10256997-0.11285204j,
-0.05898739+0.03267021j, 0.56949722-0.06679237j]])
q1 = array([[-1.17881098e-01-0.21700216j, 3.99200922e-01+0.25821379j,
2.67050755e-01-0.05700347j, 1.65343816e-01...98177e-02+0.0701067j , 2.37985758e-01+0.17688175j,
-2.01501525e-01+0.15975256j, 4.49597152e-01-0.07771279j]])
r = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
r1 = array([[-3.24995241+0.03572904j, -2.79299979+0.35532972j,
-3.16100341+1.45325958j, -4.07896761+1.803646j ,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x116179550>
u = array([0.97255678+0.26777079j, 0.36071622+0.78994569j,
0.28201392+0.67496934j, 0.70583085+0.81774514j,
0...358533j,
0.09839256+0.43700129j, 0.56218546+0.88397738j,
0.9777969 +0.18651321j, 0.14721884+0.59979179j])
v = array([0.01989467+0.01116458j, 0.23820349+0.06328583j,
0.58360935+0.43995546j, 0.63492416+0.60213318j,
0.45233787+0.88219112j, 0.63913689+0.71684251j,
0.03427202+0.81291815j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.3908612 +0.70103497j, 1.22498805+0.88380761j,
1.41719704+0.26743965j, 1.4636082 -0.15787368j,
...278j, 0.62631374+1.09913745j,
0.88810876+1.04380301j, 0.60864029+1.03192173j,
1.33174753+0.13240087j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-1.17881098e-01-0.21700216j, 3.99200922e-01+0.25821379j,
2.67050755e-01-0.05700347j, 1.65343816e-01...98177e-02+0.0701067j , 2.37985758e-01+0.17688175j,
-2.01501525e-01+0.15975256j, 4.49597152e-01-0.07771279j]])
r = array([[-3.24995241+0.03572904j, -2.79299979+0.35532972j,
-3.16100341+1.45325958j, -4.07896761+1.803646j ,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-1.17881098e-01-0.21700216j, 3.99200922e-01+0.25821379j,
2.67050755e-01-0.05700347j, 1.65343816e-01...98177e-02+0.0701067j , 2.37985758e-01+0.17688175j,
-2.01501525e-01+0.15975256j, 4.49597152e-01-0.07771279j]])
aTa = array([[ 9.99999986e-01+0.00000000e+00j, 1.82649016e-10+2.14883167e-10j,
3.07648629e-11+3.01491748e-10j, 5....5756e-17j, 8.32667268e-17+5.55111512e-17j,
-4.85722573e-17-8.32667268e-17j, 1.00000000e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 122 / 144 (84.7%)
E Max absolute difference among violations: 6.21825045e-08
E Max relative difference among violations: 6.21825045e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, 1.826490e-10+2.148832e-10j,
E 3.076486e-11+3.014917e-10j, 5.159676e-11+1.672040e-10j,
E 5.847280e-11-2.768098e-11j, 1.135758e-10-3.372802e-11j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x116dd4680>, array([[ 9.99999986e-01+0.00000000e+00j, 1.82649016e-10+....],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_______________________ TestQRupdate_D.test_tall_rank_p ________________________
scipy/linalg/tests/test_decomp_update.py:1229: in test_tall_rank_p
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
a1 = array([[0.3908612 +0.70103497j, 1.22498805+0.88380761j,
1.41719704+0.26743965j, 1.4636082 -0.15787368j,
...278j, 0.62631374+1.09913745j,
0.88810876+1.04380301j, 0.60864029+1.03192173j,
1.33174753+0.13240087j]])
p = 1
q = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
...,
0.07221112-0.17945509j, 0.10256997-0.11285204j,
-0.05898739+0.03267021j, 0.56949722-0.06679237j]])
q1 = array([[-1.17881098e-01-0.21700216j, 3.99200922e-01+0.25821379j,
2.67050755e-01-0.05700347j, 1.65343816e-01...98177e-02+0.0701067j , 2.37985758e-01+0.17688175j,
-2.01501525e-01+0.15975256j, 4.49597152e-01-0.07771279j]])
r = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
r1 = array([[-3.24995241+0.03572904j, -2.79299979+0.35532972j,
-3.16100341+1.45325958j, -4.07896761+1.803646j ,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x11617a030>
u = array([[0.97255678+0.26777079j],
[0.36071622+0.78994569j],
[0.28201392+0.67496934j],
[0.70583085+...39256+0.43700129j],
[0.56218546+0.88397738j],
[0.9777969 +0.18651321j],
[0.14721884+0.59979179j]])
v = array([[0.01989467+0.01116458j],
[0.23820349+0.06328583j],
[0.58360935+0.43995546j],
[0.63492416+0.60213318j],
[0.45233787+0.88219112j],
[0.63913689+0.71684251j],
[0.03427202+0.81291815j]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.3908612 +0.70103497j, 1.22498805+0.88380761j,
1.41719704+0.26743965j, 1.4636082 -0.15787368j,
...278j, 0.62631374+1.09913745j,
0.88810876+1.04380301j, 0.60864029+1.03192173j,
1.33174753+0.13240087j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-1.17881098e-01-0.21700216j, 3.99200922e-01+0.25821379j,
2.67050755e-01-0.05700347j, 1.65343816e-01...98177e-02+0.0701067j , 2.37985758e-01+0.17688175j,
-2.01501525e-01+0.15975256j, 4.49597152e-01-0.07771279j]])
r = array([[-3.24995241+0.03572904j, -2.79299979+0.35532972j,
-3.16100341+1.45325958j, -4.07896761+1.803646j ,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-1.17881098e-01-0.21700216j, 3.99200922e-01+0.25821379j,
2.67050755e-01-0.05700347j, 1.65343816e-01...98177e-02+0.0701067j , 2.37985758e-01+0.17688175j,
-2.01501525e-01+0.15975256j, 4.49597152e-01-0.07771279j]])
aTa = array([[ 9.99999986e-01+0.00000000e+00j, 1.82649016e-10+2.14883167e-10j,
3.07648629e-11+3.01491748e-10j, 5....5756e-17j, 8.32667268e-17+5.55111512e-17j,
-4.85722573e-17-8.32667268e-17j, 1.00000000e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 122 / 144 (84.7%)
E Max absolute difference among violations: 6.21825045e-08
E Max relative difference among violations: 6.21825045e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, 1.826490e-10+2.148832e-10j,
E 3.076486e-11+3.014917e-10j, 5.159676e-11+1.672040e-10j,
E 5.847280e-11-2.768098e-11j, 1.135758e-10-3.372802e-11j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a1da80>, array([[ 9.99999986e-01+0.00000000e+00j, 1.82649016e-10+....],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRupdate_D.test_fat_rank_1 ________________________
scipy/linalg/tests/test_decomp_update.py:1235: in test_fat_rank_1
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
a1 = array([[0.77669725-0.1683084j , 1.18908408+0.48291082j,
1.51525719-0.17013356j, 1.68578051+0.33815164j,
...423j,
0.59707784+0.79623059j, 0.74302441+0.73103386j,
0.54885638+0.70331668j, 1.11620608-0.05092731j]])
q = array([[-0.16744807-0.32104676j, -0.46249724-0.22660237j,
0.20466257-0.41920076j, -0.05476509-0.23749447j,
..., 0.27538245-0.03199855j,
0.28604992+0.37688667j, 0.18087928-0.03634228j,
-0.11962411+0.59514298j]])
q1 = array([[-0.19924143-0.10862798j, -0.56198161-0.09093291j,
0.32274793-0.54600076j, -0.00737574-0.19885794j,
..., 0.15321001-0.41099919j,
0.32163187+0.36323706j, 0.297205 -0.04430099j,
-0.09492564+0.52532793j]])
r = array([[-2.20081937+0.j , -1.69656064+0.00705994j,
-1.71258114+0.39390614j, -1.31554061+0.16505241j,
...,
0.10677582-0.13276234j, 0.15652092+0.00902154j,
0.41916145+0.32277885j, -0.23787641-0.11789546j]])
r1 = array([[-2.64999458+2.28954383j, -2.12845774+0.79678681j,
-2.98690464+2.07257491j, -3.69263206+0.30814732j,
...,
0.12665421-0.28671548j, 0.34116827-0.09603878j,
0.45020184+0.32643439j, -0.16130131-0.17656347j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x11617b2f0>
u = array([0.97255678+0.26777079j, 0.36071622+0.78994569j,
0.28201392+0.67496934j, 0.70583085+0.81774514j,
0.20652787+0.76728684j, 0.57184983+0.89039632j,
0.36117885+0.32562607j])
v = array([0.15989782+0.94358533j, 0.09839256+0.43700129j,
0.56218546+0.88397738j, 0.9777969 +0.18651321j,
0...995546j,
0.63492416+0.60213318j, 0.45233787+0.88219112j,
0.63913689+0.71684251j, 0.03427202+0.81291815j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.77669725-0.1683084j , 1.18908408+0.48291082j,
1.51525719-0.17013356j, 1.68578051+0.33815164j,
...423j,
0.59707784+0.79623059j, 0.74302441+0.73103386j,
0.54885638+0.70331668j, 1.11620608-0.05092731j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.19924143-0.10862798j, -0.56198161-0.09093291j,
0.32274793-0.54600076j, -0.00737574-0.19885794j,
..., 0.15321001-0.41099919j,
0.32163187+0.36323706j, 0.297205 -0.04430099j,
-0.09492564+0.52532793j]])
r = array([[-2.64999458+2.28954383j, -2.12845774+0.79678681j,
-2.98690464+2.07257491j, -3.69263206+0.30814732j,
...,
0.12665421-0.28671548j, 0.34116827-0.09603878j,
0.45020184+0.32643439j, -0.16130131-0.17656347j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.19924143-0.10862798j, -0.56198161-0.09093291j,
0.32274793-0.54600076j, -0.00737574-0.19885794j,
..., 0.15321001-0.41099919j,
0.32163187+0.36323706j, 0.297205 -0.04430099j,
-0.09492564+0.52532793j]])
aTa = array([[ 1.00000004e+00+0.00000000e+00j, 1.02249160e-09+1.75179249e-09j,
-7.02035152e-10-1.18210423e-09j, -4....j,
-4.68184341e-09-6.92105774e-09j, 1.75415076e-09-3.94966271e-09j,
1.00000001e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 49 / 49 (100%)
E Max absolute difference among violations: 9.05180284e-08
E Max relative difference among violations: 9.05180284e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, 1.022492e-09+1.751792e-09j,
E -7.020352e-10-1.182104e-09j, -4.358471e-09+5.723969e-10j,
E 1.553242e-09-5.173884e-10j, 2.371258e-09+1.630721e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117896660>, array([[ 1.00000004e+00+0.00000000e+00j, 1.02249160e-09+..., 0.],
[0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRupdate_D.test_fat_rank_p ________________________
scipy/linalg/tests/test_decomp_update.py:1245: in test_fat_rank_p
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j,
0.1716864 +0.8069605j , 0.29238511+0.90236963j,
0.08459105+0.7541054j , 0.83912041+0.23152167j]])
a1 = array([[0.77669725-0.1683084j , 1.18908408+0.48291082j,
1.51525719-0.17013356j, 1.68578051+0.33815164j,
...423j,
0.59707784+0.79623059j, 0.74302441+0.73103386j,
0.54885638+0.70331668j, 1.11620608-0.05092731j]])
p = 1
q = array([[-0.16744807-0.32104676j, -0.46249724-0.22660237j,
0.20466257-0.41920076j, -0.05476509-0.23749447j,
..., 0.27538245-0.03199855j,
0.28604992+0.37688667j, 0.18087928-0.03634228j,
-0.11962411+0.59514298j]])
q1 = array([[-0.19924143-0.10862798j, -0.56198161-0.09093291j,
0.32274793-0.54600076j, -0.00737574-0.19885794j,
..., 0.15321001-0.41099919j,
0.32163187+0.36323706j, 0.297205 -0.04430099j,
-0.09492564+0.52532793j]])
r = array([[-2.20081937+0.j , -1.69656064+0.00705994j,
-1.71258114+0.39390614j, -1.31554061+0.16505241j,
...,
0.10677582-0.13276234j, 0.15652092+0.00902154j,
0.41916145+0.32277885j, -0.23787641-0.11789546j]])
r1 = array([[-2.64999458+2.28954383j, -2.12845774+0.79678681j,
-2.98690464+2.07257491j, -3.69263206+0.30814732j,
...,
0.12665421-0.28671548j, 0.34116827-0.09603878j,
0.45020184+0.32643439j, -0.16130131-0.17656347j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x11617a870>
u = array([[0.97255678+0.26777079j],
[0.36071622+0.78994569j],
[0.28201392+0.67496934j],
[0.70583085+0.81774514j],
[0.20652787+0.76728684j],
[0.57184983+0.89039632j],
[0.36117885+0.32562607j]])
v = array([[0.15989782+0.94358533j],
[0.09839256+0.43700129j],
[0.56218546+0.88397738j],
[0.9777969 +...92416+0.60213318j],
[0.45233787+0.88219112j],
[0.63913689+0.71684251j],
[0.03427202+0.81291815j]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.77669725-0.1683084j , 1.18908408+0.48291082j,
1.51525719-0.17013356j, 1.68578051+0.33815164j,
...423j,
0.59707784+0.79623059j, 0.74302441+0.73103386j,
0.54885638+0.70331668j, 1.11620608-0.05092731j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.19924143-0.10862798j, -0.56198161-0.09093291j,
0.32274793-0.54600076j, -0.00737574-0.19885794j,
..., 0.15321001-0.41099919j,
0.32163187+0.36323706j, 0.297205 -0.04430099j,
-0.09492564+0.52532793j]])
r = array([[-2.64999458+2.28954383j, -2.12845774+0.79678681j,
-2.98690464+2.07257491j, -3.69263206+0.30814732j,
...,
0.12665421-0.28671548j, 0.34116827-0.09603878j,
0.45020184+0.32643439j, -0.16130131-0.17656347j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.19924143-0.10862798j, -0.56198161-0.09093291j,
0.32274793-0.54600076j, -0.00737574-0.19885794j,
..., 0.15321001-0.41099919j,
0.32163187+0.36323706j, 0.297205 -0.04430099j,
-0.09492564+0.52532793j]])
aTa = array([[ 1.00000004e+00+0.00000000e+00j, 1.02249160e-09+1.75179249e-09j,
-7.02035152e-10-1.18210423e-09j, -4....j,
-4.68184341e-09-6.92105774e-09j, 1.75415076e-09-3.94966271e-09j,
1.00000001e+00+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 49 / 49 (100%)
E Max absolute difference among violations: 9.05180284e-08
E Max relative difference among violations: 9.05180284e-08
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, 1.022492e-09+1.751792e-09j,
E -7.020352e-10-1.182104e-09j, -4.358471e-09+5.723969e-10j,
E 1.553242e-09-5.173884e-10j, 2.371258e-09+1.630721e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117896340>, array([[ 1.00000004e+00+0.00000000e+00j, 1.02249160e-09+..., 0.],
[0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_____________________ TestQRupdate_D.test_economic_rank_1 ______________________
scipy/linalg/tests/test_decomp_update.py:1251: in test_economic_rank_1
check_qr(q1, r1, a1, self.rtol, self.atol, False)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
a1 = array([[0.3908612 +0.70103497j, 1.22498805+0.88380761j,
1.41719704+0.26743965j, 1.4636082 -0.15787368j,
...278j, 0.62631374+1.09913745j,
0.88810876+1.04380301j, 0.60864029+1.03192173j,
1.33174753+0.13240087j]])
q = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
..., 0.12717499-0.13948103j,
0.06060244-0.22584374j, -0.04277848-0.09283101j,
0.04983613+0.15919433j]])
q1 = array([[-1.17881098e-01-0.21700216j, 3.99200923e-01+0.25821379j,
2.67050759e-01-0.05700348j, 1.65343822e-01...1-0.31332513j,
-4.76529955e-02+0.28839384j, -1.00085069e-02+0.03817726j,
1.43346347e-01+0.14673516j]])
r = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.85741133+0.j ]])
r1 = array([[-3.24995241+0.03572904j, -2.79299979+0.35532972j,
-3.16100341+1.45325958j, -4.07896761+1.803646j ,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.83580904-0.32473301j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1161970e0>
u = array([0.97255678+0.26777079j, 0.36071622+0.78994569j,
0.28201392+0.67496934j, 0.70583085+0.81774514j,
0...358533j,
0.09839256+0.43700129j, 0.56218546+0.88397738j,
0.9777969 +0.18651321j, 0.14721884+0.59979179j])
v = array([0.01989467+0.01116458j, 0.23820349+0.06328583j,
0.58360935+0.43995546j, 0.63492416+0.60213318j,
0.45233787+0.88219112j, 0.63913689+0.71684251j,
0.03427202+0.81291815j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.3908612 +0.70103497j, 1.22498805+0.88380761j,
1.41719704+0.26743965j, 1.4636082 -0.15787368j,
...278j, 0.62631374+1.09913745j,
0.88810876+1.04380301j, 0.60864029+1.03192173j,
1.33174753+0.13240087j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[-1.17881098e-01-0.21700216j, 3.99200923e-01+0.25821379j,
2.67050759e-01-0.05700348j, 1.65343822e-01...1-0.31332513j,
-4.76529955e-02+0.28839384j, -1.00085069e-02+0.03817726j,
1.43346347e-01+0.14673516j]])
r = array([[-3.24995241+0.03572904j, -2.79299979+0.35532972j,
-3.16100341+1.45325958j, -4.07896761+1.803646j ,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.83580904-0.32473301j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-1.17881098e-01-0.21700216j, 3.99200923e-01+0.25821379j,
2.67050759e-01-0.05700348j, 1.65343822e-01...1-0.31332513j,
-4.76529955e-02+0.28839384j, -1.00085069e-02+0.03817726j,
1.43346347e-01+0.14673516j]])
aTa = array([[ 9.99999986e-01+0.00000000e+00j, 8.49470667e-11+1.64792041e-10j,
-2.12721438e-10+1.38996412e-10j, 1....j,
-5.26507044e-09-3.48613456e-09j, 1.16168686e-10-6.37497857e-09j,
9.99999949e-01+0.00000000e+00j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 49 / 49 (100%)
E Max absolute difference among violations: 1.19295713e-07
E Max relative difference among violations: 1.19295713e-07
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, 8.494707e-11+1.647920e-10j,
E -2.127214e-10+1.389964e-10j, 1.880994e-10+1.076792e-11j,
E -2.877740e-10+1.465876e-12j, -1.185513e-10-2.738572e-10j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x1178974c0>, array([[ 9.99999986e-01+0.00000000e+00j, 8.49470667e-11+..., 0.],
[0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_____________________ TestQRupdate_D.test_economic_rank_p ______________________
scipy/linalg/tests/test_decomp_update.py:1261: in test_economic_rank_p
check_qr(q1, r1, a1, self.rtol, self.atol, False)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
a1 = array([[0.3908612 +0.70103497j, 1.22498805+0.88380761j,
1.41719704+0.26743965j, 1.4636082 -0.15787368j,
...278j, 0.62631374+1.09913745j,
0.88810876+1.04380301j, 0.60864029+1.03192173j,
1.33174753+0.13240087j]])
p = 1
q = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
..., 0.12717499-0.13948103j,
0.06060244-0.22584374j, -0.04277848-0.09283101j,
0.04983613+0.15919433j]])
q1 = array([[-1.17881098e-01-0.21700216j, 3.99200923e-01+0.25821379j,
2.67050759e-01-0.05700348j, 1.65343822e-01...1-0.31332513j,
-4.76529955e-02+0.28839384j, -1.00085069e-02+0.03817726j,
1.43346347e-01+0.14673516j]])
r = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.85741133+0.j ]])
r1 = array([[-3.24995241+0.03572904j, -2.79299979+0.35532972j,
-3.16100341+1.45325958j, -4.07896761+1.803646j ,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.83580904-0.32473301j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x116196270>
u = array([[0.97255678+0.26777079j],
[0.36071622+0.78994569j],
[0.28201392+0.67496934j],
[0.70583085+...39256+0.43700129j],
[0.56218546+0.88397738j],
[0.9777969 +0.18651321j],
[0.14721884+0.59979179j]])
v = array([[0.01989467+0.01116458j],
[0.23820349+0.06328583j],
[0.58360935+0.43995546j],
[0.63492416+0.60213318j],
[0.45233787+0.88219112j],
[0.63913689+0.71684251j],
[0.03427202+0.81291815j]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.3908612 +0.70103497j, 1.22498805+0.88380761j,
1.41719704+0.26743965j, 1.4636082 -0.15787368j,
...278j, 0.62631374+1.09913745j,
0.88810876+1.04380301j, 0.60864029+1.03192173j,
1.33174753+0.13240087j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[-1.17881098e-01-0.21700216j, 3.99200923e-01+0.25821379j,
2.67050759e-01-0.05700348j, 1.65343822e-01...1-0.31332513j,
-4.76529955e-02+0.28839384j, -1.00085069e-02+0.03817726j,
1.43346347e-01+0.14673516j]])
r = array([[-3.24995241+0.03572904j, -2.79299979+0.35532972j,
-3.16100341+1.45325958j, -4.07896761+1.803646j ,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.83580904-0.32473301j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-1.17881098e-01-0.21700216j, 3.99200923e-01+0.25821379j,
2.67050759e-01-0.05700348j, 1.65343822e-01...1-0.31332513j,
-4.76529955e-02+0.28839384j, -1.00085069e-02+0.03817726j,
1.43346347e-01+0.14673516j]])
aTa = array([[ 9.99999986e-01+0.00000000e+00j, 8.49470667e-11+1.64792041e-10j,
-2.12721438e-10+1.38996412e-10j, 1....j,
-5.26507044e-09-3.48613456e-09j, 1.16168686e-10-6.37497857e-09j,
9.99999949e-01+0.00000000e+00j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 49 / 49 (100%)
E Max absolute difference among violations: 1.19295713e-07
E Max relative difference among violations: 1.19295713e-07
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, 8.494707e-11+1.647920e-10j,
E -2.127214e-10+1.389964e-10j, 1.880994e-10+1.076792e-11j,
E -2.877740e-10+1.465876e-12j, -1.185513e-10-2.738572e-10j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117896d40>, array([[ 9.99999986e-01+0.00000000e+00j, 8.49470667e-11+..., 0.],
[0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRupdate_D.test_Mx1_rank_1 ________________________
scipy/linalg/tests/test_decomp_update.py:1267: in test_Mx1_rank_1
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.20555395j],
[0.97637554+0.57238605j],
[0.73179659+0.93713906j],
[0.68487472+...62759+0.09842774j],
[0.31758111+0.66954795j],
[0.77389198+0.63448525j],
[0.61821572+0.53186528j]])
a1 = array([[0.68498627+0.50810478j],
[1.3088523 +0.77675396j],
[1.68008299+1.11085097j],
[1.56056884+...25419+0.34188051j],
[1.11047089+0.54009631j],
[1.48939189+0.38558279j],
[0.92011594+1.09469496j]])
q = array([[-0.15132749-0.08440712j, -0.43092343+0.17405462j,
-0.35340931+0.3368798j , -0.30535479+0.14301866j,
...,
-0.04182664-0.02512782j, -0.08309283+0.02979214j,
-0.11864701-0.01153338j, 0.90311691-0.00710278j]])
q1 = array([[-0.13139962-0.16499583j, 0.04824797-0.23316563j,
-0.52794937+0.08659144j, -0.01929132-0.37950827j,
...,
0.20469478-0.07954971j, -0.19926925+0.05861426j,
-0.42980989-0.05173044j, 0.59399017-0.00193415j]])
r = array([[-2.4352677+0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j]])
r1 = array([[-3.90748752+1.03968631j],
[ 0. +0.j ],
[ 0. +0.j ],
[ 0. ... +0.j ],
[ 0. +0.j ],
[ 0. +0.j ],
[ 0. +0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x116197650>
u = array([0.19692903+0.42412754j, 0.25108618+0.33271532j,
0.8754754 +0.54201381j, 0.78469287+0.56121883j,
0.05898658+0.30233481j, 0.83897349+0.17999393j,
0.80851798+0.03105987j, 0.08109652+0.67731668j])
v = array([0.87183943+0.34134265j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.68498627+0.50810478j],
[1.3088523 +0.77675396j],
[1.68008299+1.11085097j],
[1.56056884+...25419+0.34188051j],
[1.11047089+0.54009631j],
[1.48939189+0.38558279j],
[0.92011594+1.09469496j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.13139962-0.16499583j, 0.04824797-0.23316563j,
-0.52794937+0.08659144j, -0.01929132-0.37950827j,
...,
0.20469478-0.07954971j, -0.19926925+0.05861426j,
-0.42980989-0.05173044j, 0.59399017-0.00193415j]])
r = array([[-3.90748752+1.03968631j],
[ 0. +0.j ],
[ 0. +0.j ],
[ 0. ... +0.j ],
[ 0. +0.j ],
[ 0. +0.j ],
[ 0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.13139962-0.16499583j, 0.04824797-0.23316563j,
-0.52794937+0.08659144j, -0.01929132-0.37950827j,
...,
0.20469478-0.07954971j, -0.19926925+0.05861426j,
-0.42980989-0.05173044j, 0.59399017-0.00193415j]])
aTa = array([[ 9.99999994e-01-4.59657196e-17j, -1.67531918e-08+1.66394414e-09j,
2.92260331e-11+9.98402830e-12j, 2....2406e-17j, 0.00000000e+00-1.40816027e-17j,
-7.58941521e-18+3.00453381e-17j, 9.99999983e-01-2.49799308e-17j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 50 / 64 (78.1%)
E Max absolute difference among violations: 6.10108948e-08
E Max relative difference among violations: 6.10108948e-08
E ACTUAL: array([[ 1.000000e+00-4.596572e-17j, -1.675319e-08+1.663944e-09j,
E 2.922603e-11+9.984028e-12j, 2.543151e-09-1.477140e-09j,
E 1.094316e-09+1.578012e-09j, 2.645797e-09+1.480343e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x1178965c0>, array([[ 9.99999994e-01-4.59657196e-17j, -1.67531918e-08+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
________________________ TestQRupdate_D.test_Mx1_rank_p ________________________
scipy/linalg/tests/test_decomp_update.py:1277: in test_Mx1_rank_p
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.20555395j],
[0.97637554+0.57238605j],
[0.73179659+0.93713906j],
[0.68487472+...62759+0.09842774j],
[0.31758111+0.66954795j],
[0.77389198+0.63448525j],
[0.61821572+0.53186528j]])
a1 = array([[0.68498627+0.50810478j],
[1.3088523 +0.77675396j],
[1.68008299+1.11085097j],
[1.56056884+...25419+0.34188051j],
[1.11047089+0.54009631j],
[1.48939189+0.38558279j],
[0.92011594+1.09469496j]])
q = array([[-0.15132749-0.08440712j, -0.43092343+0.17405462j,
-0.35340931+0.3368798j , -0.30535479+0.14301866j,
...,
-0.04182664-0.02512782j, -0.08309283+0.02979214j,
-0.11864701-0.01153338j, 0.90311691-0.00710278j]])
q1 = array([[-0.13139962-0.16499583j, 0.04824797-0.23316563j,
-0.52794937+0.08659144j, -0.01929132-0.37950827j,
...,
0.20469478-0.07954971j, -0.19926925+0.05861426j,
-0.42980989-0.05173044j, 0.59399017-0.00193415j]])
r = array([[-2.4352677+0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j]])
r1 = array([[-3.90748752+1.03968631j],
[ 0. +0.j ],
[ 0. +0.j ],
[ 0. ... +0.j ],
[ 0. +0.j ],
[ 0. +0.j ],
[ 0. +0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x116194260>
u = array([[0.19692903+0.42412754j],
[0.25108618+0.33271532j],
[0.8754754 +0.54201381j],
[0.78469287+...98658+0.30233481j],
[0.83897349+0.17999393j],
[0.80851798+0.03105987j],
[0.08109652+0.67731668j]])
v = array([[0.87183943+0.34134265j]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.68498627+0.50810478j],
[1.3088523 +0.77675396j],
[1.68008299+1.11085097j],
[1.56056884+...25419+0.34188051j],
[1.11047089+0.54009631j],
[1.48939189+0.38558279j],
[0.92011594+1.09469496j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.13139962-0.16499583j, 0.04824797-0.23316563j,
-0.52794937+0.08659144j, -0.01929132-0.37950827j,
...,
0.20469478-0.07954971j, -0.19926925+0.05861426j,
-0.42980989-0.05173044j, 0.59399017-0.00193415j]])
r = array([[-3.90748752+1.03968631j],
[ 0. +0.j ],
[ 0. +0.j ],
[ 0. ... +0.j ],
[ 0. +0.j ],
[ 0. +0.j ],
[ 0. +0.j ]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.13139962-0.16499583j, 0.04824797-0.23316563j,
-0.52794937+0.08659144j, -0.01929132-0.37950827j,
...,
0.20469478-0.07954971j, -0.19926925+0.05861426j,
-0.42980989-0.05173044j, 0.59399017-0.00193415j]])
aTa = array([[ 9.99999994e-01-4.59657196e-17j, -1.67531918e-08+1.66394414e-09j,
2.92260331e-11+9.98402830e-12j, 2....2406e-17j, 0.00000000e+00-1.40816027e-17j,
-7.58941521e-18+3.00453381e-17j, 9.99999983e-01-2.49799308e-17j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 50 / 64 (78.1%)
E Max absolute difference among violations: 6.10108948e-08
E Max relative difference among violations: 6.10108948e-08
E ACTUAL: array([[ 1.000000e+00-4.596572e-17j, -1.675319e-08+1.663944e-09j,
E 2.922603e-11+9.984028e-12j, 2.543151e-09-1.477140e-09j,
E 1.094316e-09+1.578012e-09j, 2.645797e-09+1.480343e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x1178974c0>, array([[ 9.99999994e-01-4.59657196e-17j, -1.67531918e-08+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
___________________ TestQRupdate_D.test_Mx1_economic_rank_1 ____________________
scipy/linalg/tests/test_decomp_update.py:1283: in test_Mx1_economic_rank_1
check_qr(q1, r1, a1, self.rtol, self.atol, False)
a = array([[0.36852295+0.20555395j],
[0.97637554+0.57238605j],
[0.73179659+0.93713906j],
[0.68487472+...62759+0.09842774j],
[0.31758111+0.66954795j],
[0.77389198+0.63448525j],
[0.61821572+0.53186528j]])
a1 = array([[0.68498627+0.50810478j],
[1.3088523 +0.77675396j],
[1.68008299+1.11085097j],
[1.56056884+...25419+0.34188051j],
[1.11047089+0.54009631j],
[1.48939189+0.38558279j],
[0.92011594+1.09469496j]])
q = array([[-0.15132749-0.08440712j],
[-0.4009315 -0.2350403j ],
[-0.30049944-0.38481973j],
[-0.28123...8 -0.04041763j],
[-0.13040912-0.27493813j],
[-0.31778518-0.26054025j],
[-0.25385945-0.21840115j]])
q1 = array([[-0.13139962-0.16499584j],
[-0.26341896-0.26887535j],
[-0.33089684-0.3723313j ],
[-0.33008...3 -0.11682779j],
[-0.23105551-0.19969906j],
[-0.33144293-0.18686675j],
[-0.15029306-0.32014245j]])
r = array([[-2.4352677+0.j]])
r1 = array([[-3.90748752+1.0396863j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x116196720>
u = array([0.19692903+0.42412754j, 0.25108618+0.33271532j,
0.8754754 +0.54201381j, 0.78469287+0.56121883j,
0.05898658+0.30233481j, 0.83897349+0.17999393j,
0.80851798+0.03105987j, 0.08109652+0.67731668j])
v = array([0.87183943+0.34134265j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.68498627+0.50810478j],
[1.3088523 +0.77675396j],
[1.68008299+1.11085097j],
[1.56056884+...25419+0.34188051j],
[1.11047089+0.54009631j],
[1.48939189+0.38558279j],
[0.92011594+1.09469496j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[-0.13139962-0.16499584j],
[-0.26341896-0.26887535j],
[-0.33089684-0.3723313j ],
[-0.33008...3 -0.11682779j],
[-0.23105551-0.19969906j],
[-0.33144293-0.18686675j],
[-0.15029306-0.32014245j]])
r = array([[-3.90748752+1.0396863j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.13139962-0.16499584j],
[-0.26341896-0.26887535j],
[-0.33089684-0.3723313j ],
[-0.33008...3 -0.11682779j],
[-0.23105551-0.19969906j],
[-0.33144293-0.18686675j],
[-0.15029306-0.32014245j]])
aTa = array([[1.00000003+0.j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 1 / 1 (100%)
E Max absolute difference among violations: 3.04276493e-08
E Max relative difference among violations: 3.04276493e-08
E ACTUAL: array([[1.+0.j]])
E DESIRED: array([[1.]])
args = (<function assert_allclose.<locals>.compare at 0x1178977e0>, array([[1.00000003+0.j]]), array([[1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
___________________ TestQRupdate_D.test_Mx1_economic_rank_p ____________________
scipy/linalg/tests/test_decomp_update.py:1293: in test_Mx1_economic_rank_p
check_qr(q1, r1, a1, self.rtol, self.atol, False)
a = array([[0.36852295+0.20555395j],
[0.97637554+0.57238605j],
[0.73179659+0.93713906j],
[0.68487472+...62759+0.09842774j],
[0.31758111+0.66954795j],
[0.77389198+0.63448525j],
[0.61821572+0.53186528j]])
a1 = array([[0.68498627+0.50810478j],
[1.3088523 +0.77675396j],
[1.68008299+1.11085097j],
[1.56056884+...25419+0.34188051j],
[1.11047089+0.54009631j],
[1.48939189+0.38558279j],
[0.92011594+1.09469496j]])
q = array([[-0.15132749-0.08440712j],
[-0.4009315 -0.2350403j ],
[-0.30049944-0.38481973j],
[-0.28123...8 -0.04041763j],
[-0.13040912-0.27493813j],
[-0.31778518-0.26054025j],
[-0.25385945-0.21840115j]])
q1 = array([[-0.13139962-0.16499584j],
[-0.26341896-0.26887535j],
[-0.33089684-0.3723313j ],
[-0.33008...3 -0.11682779j],
[-0.23105551-0.19969906j],
[-0.33144293-0.18686675j],
[-0.15029306-0.32014245j]])
r = array([[-2.4352677+0.j]])
r1 = array([[-3.90748752+1.0396863j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x116197b30>
u = array([[0.19692903+0.42412754j],
[0.25108618+0.33271532j],
[0.8754754 +0.54201381j],
[0.78469287+...98658+0.30233481j],
[0.83897349+0.17999393j],
[0.80851798+0.03105987j],
[0.08109652+0.67731668j]])
v = array([[0.87183943+0.34134265j]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.68498627+0.50810478j],
[1.3088523 +0.77675396j],
[1.68008299+1.11085097j],
[1.56056884+...25419+0.34188051j],
[1.11047089+0.54009631j],
[1.48939189+0.38558279j],
[0.92011594+1.09469496j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[-0.13139962-0.16499584j],
[-0.26341896-0.26887535j],
[-0.33089684-0.3723313j ],
[-0.33008...3 -0.11682779j],
[-0.23105551-0.19969906j],
[-0.33144293-0.18686675j],
[-0.15029306-0.32014245j]])
r = array([[-3.90748752+1.0396863j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.13139962-0.16499584j],
[-0.26341896-0.26887535j],
[-0.33089684-0.3723313j ],
[-0.33008...3 -0.11682779j],
[-0.23105551-0.19969906j],
[-0.33144293-0.18686675j],
[-0.15029306-0.32014245j]])
aTa = array([[1.00000003+0.j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 1 / 1 (100%)
E Max absolute difference among violations: 3.04276493e-08
E Max relative difference among violations: 3.04276493e-08
E ACTUAL: array([[1.+0.j]])
E DESIRED: array([[1.]])
args = (<function assert_allclose.<locals>.compare at 0x117a1db20>, array([[1.00000003+0.j]]), array([[1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_________________ TestQRupdate_D.test_non_unit_strides_rank_1 __________________
scipy/linalg/tests/test_decomp_update.py:1412: in test_non_unit_strides_rank_1
self.base_non_simple_strides(make_strided, 'full', 1, True)
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x11542c3b0>
scipy/linalg/tests/test_decomp_update.py:1354: in base_non_simple_strides
check_qr(q1, r1, aup, self.rtol, self.atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function make_strided at 0x115363240>
assert_sqr = True
aup = array([[0.74029272-0.20676899j, 1.32961515-0.01541156j,
1.31028931+0.86508248j, 1.61110079+0.4574096j ,
...074j,
1.50924477+0.69590914j, 0.74104944+0.66580889j,
0.48800471+0.53847605j, 0.99566458+0.34721435j]])
mode = 'full'
overwriteable = True
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.22735462+1.46399374j, -2.17912868+0.16808217j,
-3.27003917+0.66558286j, -3.21579254+0.83515862j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.06419343+0.17494157j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x11542c3b0>
type = 'sqr'
u = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
u0 = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
us = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
v = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
v0 = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
vs = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.74029272-0.20676899j, 1.32961515-0.01541156j,
1.31028931+0.86508248j, 1.61110079+0.4574096j ,
...074j,
1.50924477+0.69590914j, 0.74104944+0.66580889j,
0.48800471+0.53847605j, 0.99566458+0.34721435j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
r = array([[-2.22735462+1.46399374j, -2.17912868+0.16808217j,
-3.27003917+0.66558286j, -3.21579254+0.83515862j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.06419343+0.17494157j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
aTa = array([[ 9.99999917e-01+0.00000000e+00j, -3.23048588e-10-6.57903052e-10j,
1.07208503e-09-2.92018711e-09j, -1....8660e-08j, 2.85890064e-09-4.06437578e-09j,
-3.09314382e-08+3.09983021e-08j, 9.99999893e-01+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 1.31511142e-07
E Max relative difference among violations: 1.31511142e-07
E ACTUAL: array([[ 9.999999e-01+0.000000e+00j, -3.230486e-10-6.579031e-10j,
E 1.072085e-09-2.920187e-09j, -1.006488e-08+3.312128e-09j,
E -7.532170e-09-8.530349e-09j, 1.565584e-09+2.680134e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x116f2c680>, array([[ 9.99999917e-01+0.00000000e+00j, -3.23048588e-10-... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_____________ TestQRupdate_D.test_non_unit_strides_economic_rank_1 _____________
scipy/linalg/tests/test_decomp_update.py:1415: in test_non_unit_strides_economic_rank_1
self.base_non_simple_strides(make_strided, 'economic', 1, True)
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1154ee570>
scipy/linalg/tests/test_decomp_update.py:1354: in base_non_simple_strides
check_qr(q1, r1, aup, self.rtol, self.atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function make_strided at 0x115363240>
assert_sqr = False
aup = array([[0.74029272-0.20676899j, 1.32961515-0.01541156j,
1.31028931+0.86508248j, 1.61110079+0.4574096j ,
...074j,
1.50924477+0.69590914j, 0.74104944+0.66580889j,
0.48800471+0.53847605j, 0.99566458+0.34721435j]])
mode = 'economic'
overwriteable = True
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.22735462+1.46399374j, -2.17912868+0.16808217j,
-3.27003917+0.66558286j, -3.21579254+0.83515862j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.06419343+0.17494157j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1154ee570>
type = 'sqr'
u = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
u0 = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
us = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
v = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
v0 = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
vs = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.74029272-0.20676899j, 1.32961515-0.01541156j,
1.31028931+0.86508248j, 1.61110079+0.4574096j ,
...074j,
1.50924477+0.69590914j, 0.74104944+0.66580889j,
0.48800471+0.53847605j, 0.99566458+0.34721435j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
r = array([[-2.22735462+1.46399374j, -2.17912868+0.16808217j,
-3.27003917+0.66558286j, -3.21579254+0.83515862j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.06419343+0.17494157j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
aTa = array([[ 9.99999917e-01+0.00000000e+00j, -3.23048588e-10-6.57903052e-10j,
1.07208503e-09-2.92018711e-09j, -1....8660e-08j, 2.85890064e-09-4.06437578e-09j,
-3.09314382e-08+3.09983021e-08j, 9.99999893e-01+0.00000000e+00j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 1.31511142e-07
E Max relative difference among violations: 1.31511142e-07
E ACTUAL: array([[ 9.999999e-01+0.000000e+00j, -3.230486e-10-6.579031e-10j,
E 1.072085e-09-2.920187e-09j, -1.006488e-08+3.312128e-09j,
E -7.532170e-09-8.530349e-09j, 1.565584e-09+2.680134e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x116f2d080>, array([[ 9.99999917e-01+0.00000000e+00j, -3.23048588e-10-... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_________________ TestQRupdate_D.test_non_unit_strides_rank_p __________________
scipy/linalg/tests/test_decomp_update.py:1418: in test_non_unit_strides_rank_p
self.base_non_simple_strides(make_strided, 'full', 3, False)
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1154f0cb0>
scipy/linalg/tests/test_decomp_update.py:1354: in base_non_simple_strides
check_qr(q1, r1, aup, self.rtol, self.atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function make_strided at 0x115363240>
assert_sqr = True
aup = array([[2.07598897+0.06671892j, 3.58323698-0.57649213j,
2.93176483+1.07193013j, 2.96749225+0.13805656j,
...99j ,
1.90701212+0.81591078j, 1.18386313+0.75171332j,
1.11258701+0.76087188j, 1.22041731+0.0124695j ]])
mode = 'full'
overwriteable = False
p = 3
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[ 5.40881057+0.j , 7.30022723-1.41985604j,
7.03932359+0.61597692j, 6.50278811-0.02048803j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.38445668-0.26882127j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1154f0cb0>
type = 'sqr'
u = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
u0 = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
us = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
v = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
v0 = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
vs = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[2.07598897+0.06671892j, 3.58323698-0.57649213j,
2.93176483+1.07193013j, 2.96749225+0.13805656j,
...99j ,
1.90701212+0.81591078j, 1.18386313+0.75171332j,
1.11258701+0.76087188j, 1.22041731+0.0124695j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
r = array([[ 5.40881057+0.j , 7.30022723-1.41985604j,
7.03932359+0.61597692j, 6.50278811-0.02048803j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.38445668-0.26882127j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
aTa = array([[ 9.99999956e-01+1.57788912e-17j, 3.89102277e-09+2.20261305e-09j,
3.02295609e-09+3.09561967e-09j, -1....0026e-09j, 3.21943317e-09-1.15066276e-08j,
-6.92992996e-10-4.84758061e-10j, 1.00000002e+00+9.64759379e-20j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 4.38251588e-08
E Max relative difference among violations: 4.38251588e-08
E ACTUAL: array([[ 1.000000e+00+1.577889e-17j, 3.891023e-09+2.202613e-09j,
E 3.022956e-09+3.095620e-09j, -1.651378e-09+2.338767e-10j,
E -2.677938e-09-4.605475e-09j, 2.735027e-09+2.916744e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a1d120>, array([[ 9.99999956e-01+1.57788912e-17j, 3.89102277e-09+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_____________ TestQRupdate_D.test_non_unit_strides_economic_rank_p _____________
scipy/linalg/tests/test_decomp_update.py:1421: in test_non_unit_strides_economic_rank_p
self.base_non_simple_strides(make_strided, 'economic', 3, False)
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1154f1a00>
scipy/linalg/tests/test_decomp_update.py:1354: in base_non_simple_strides
check_qr(q1, r1, aup, self.rtol, self.atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function make_strided at 0x115363240>
assert_sqr = False
aup = array([[2.07598897+0.06671892j, 3.58323698-0.57649213j,
2.93176483+1.07193013j, 2.96749225+0.13805656j,
...99j ,
1.90701212+0.81591078j, 1.18386313+0.75171332j,
1.11258701+0.76087188j, 1.22041731+0.0124695j ]])
mode = 'economic'
overwriteable = False
p = 3
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[ 5.40881057+0.j , 7.30022723-1.41985604j,
7.03932359+0.61597692j, 6.50278811-0.02048803j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.38445668-0.26882127j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1154f1a00>
type = 'sqr'
u = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
u0 = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
us = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
v = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
v0 = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
vs = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[2.07598897+0.06671892j, 3.58323698-0.57649213j,
2.93176483+1.07193013j, 2.96749225+0.13805656j,
...99j ,
1.90701212+0.81591078j, 1.18386313+0.75171332j,
1.11258701+0.76087188j, 1.22041731+0.0124695j ]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
r = array([[ 5.40881057+0.j , 7.30022723-1.41985604j,
7.03932359+0.61597692j, 6.50278811-0.02048803j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.38445668-0.26882127j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
aTa = array([[ 9.99999956e-01+1.57788912e-17j, 3.89102277e-09+2.20261305e-09j,
3.02295609e-09+3.09561967e-09j, -1....0026e-09j, 3.21943317e-09-1.15066276e-08j,
-6.92992996e-10-4.84758061e-10j, 1.00000002e+00+9.64759379e-20j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 4.38251588e-08
E Max relative difference among violations: 4.38251588e-08
E ACTUAL: array([[ 1.000000e+00+1.577889e-17j, 3.891023e-09+2.202613e-09j,
E 3.022956e-09+3.095620e-09j, -1.651378e-09+2.338767e-10j,
E -2.677938e-09-4.605475e-09j, 2.735027e-09+2.916744e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117896840>, array([[ 9.99999956e-01+1.57788912e-17j, 3.89102277e-09+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
____________________ TestQRupdate_D.test_neg_strides_rank_1 ____________________
scipy/linalg/tests/test_decomp_update.py:1424: in test_neg_strides_rank_1
self.base_non_simple_strides(negate_strides, 'full', 1, False)
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1154f2c60>
scipy/linalg/tests/test_decomp_update.py:1354: in base_non_simple_strides
check_qr(q1, r1, aup, self.rtol, self.atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function negate_strides at 0x1153632e0>
assert_sqr = True
aup = array([[0.74029272-0.20676899j, 1.32961515-0.01541156j,
1.31028931+0.86508248j, 1.61110079+0.4574096j ,
...074j,
1.50924477+0.69590914j, 0.74104944+0.66580889j,
0.48800471+0.53847605j, 0.99566458+0.34721435j]])
mode = 'full'
overwriteable = False
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.22735462+1.46399374j, -2.17912868+0.16808217j,
-3.27003917+0.66558286j, -3.21579254+0.83515862j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.06419343+0.17494157j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1154f2c60>
type = 'sqr'
u = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
u0 = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
us = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
v = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
v0 = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
vs = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.74029272-0.20676899j, 1.32961515-0.01541156j,
1.31028931+0.86508248j, 1.61110079+0.4574096j ,
...074j,
1.50924477+0.69590914j, 0.74104944+0.66580889j,
0.48800471+0.53847605j, 0.99566458+0.34721435j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
r = array([[-2.22735462+1.46399374j, -2.17912868+0.16808217j,
-3.27003917+0.66558286j, -3.21579254+0.83515862j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.06419343+0.17494157j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
aTa = array([[ 9.99999917e-01-4.81877658e-17j, -3.23048643e-10-6.57903061e-10j,
1.07208502e-09-2.92018709e-09j, -1....8662e-08j, 2.85890064e-09-4.06437577e-09j,
-3.09314377e-08+3.09983015e-08j, 9.99999893e-01+5.37425670e-18j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 1.31511139e-07
E Max relative difference among violations: 1.31511139e-07
E ACTUAL: array([[ 9.999999e-01-4.818777e-17j, -3.230486e-10-6.579031e-10j,
E 1.072085e-09-2.920187e-09j, -1.006488e-08+3.312128e-09j,
E -7.532170e-09-8.530349e-09j, 1.565584e-09+2.680135e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117897ec0>, array([[ 9.99999917e-01-4.81877658e-17j, -3.23048643e-10-... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_______________ TestQRupdate_D.test_neg_strides_economic_rank_1 ________________
scipy/linalg/tests/test_decomp_update.py:1427: in test_neg_strides_economic_rank_1
self.base_non_simple_strides(negate_strides, 'economic', 1, False)
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1154f0da0>
scipy/linalg/tests/test_decomp_update.py:1354: in base_non_simple_strides
check_qr(q1, r1, aup, self.rtol, self.atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function negate_strides at 0x1153632e0>
assert_sqr = False
aup = array([[0.74029272-0.20676899j, 1.32961515-0.01541156j,
1.31028931+0.86508248j, 1.61110079+0.4574096j ,
...074j,
1.50924477+0.69590914j, 0.74104944+0.66580889j,
0.48800471+0.53847605j, 0.99566458+0.34721435j]])
mode = 'economic'
overwriteable = False
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.22735462+1.46399374j, -2.17912868+0.16808217j,
-3.27003917+0.66558286j, -3.21579254+0.83515862j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.06419343+0.17494157j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1154f0da0>
type = 'sqr'
u = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
u0 = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
us = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
v = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
v0 = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
vs = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.74029272-0.20676899j, 1.32961515-0.01541156j,
1.31028931+0.86508248j, 1.61110079+0.4574096j ,
...074j,
1.50924477+0.69590914j, 0.74104944+0.66580889j,
0.48800471+0.53847605j, 0.99566458+0.34721435j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
r = array([[-2.22735462+1.46399374j, -2.17912868+0.16808217j,
-3.27003917+0.66558286j, -3.21579254+0.83515862j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.06419343+0.17494157j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
aTa = array([[ 9.99999917e-01-4.81877658e-17j, -3.23048643e-10-6.57903061e-10j,
1.07208502e-09-2.92018709e-09j, -1....8662e-08j, 2.85890064e-09-4.06437577e-09j,
-3.09314377e-08+3.09983015e-08j, 9.99999893e-01+5.37425670e-18j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 1.31511139e-07
E Max relative difference among violations: 1.31511139e-07
E ACTUAL: array([[ 9.999999e-01-4.818777e-17j, -3.230486e-10-6.579031e-10j,
E 1.072085e-09-2.920187e-09j, -1.006488e-08+3.312128e-09j,
E -7.532170e-09-8.530349e-09j, 1.565584e-09+2.680135e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117896ca0>, array([[ 9.99999917e-01-4.81877658e-17j, -3.23048643e-10-... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
____________________ TestQRupdate_D.test_neg_strides_rank_p ____________________
scipy/linalg/tests/test_decomp_update.py:1430: in test_neg_strides_rank_p
self.base_non_simple_strides(negate_strides, 'full', 3, False)
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1151e8e00>
scipy/linalg/tests/test_decomp_update.py:1354: in base_non_simple_strides
check_qr(q1, r1, aup, self.rtol, self.atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function negate_strides at 0x1153632e0>
assert_sqr = True
aup = array([[2.07598897+0.06671892j, 3.58323698-0.57649213j,
2.93176483+1.07193013j, 2.96749225+0.13805656j,
...99j ,
1.90701212+0.81591078j, 1.18386313+0.75171332j,
1.11258701+0.76087188j, 1.22041731+0.0124695j ]])
mode = 'full'
overwriteable = False
p = 3
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[ 5.40881057+0.j , 7.30022723-1.41985604j,
7.03932359+0.61597692j, 6.50278811-0.02048803j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.38445668-0.26882127j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1151e8e00>
type = 'sqr'
u = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
u0 = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
us = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
v = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
v0 = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
vs = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[2.07598897+0.06671892j, 3.58323698-0.57649213j,
2.93176483+1.07193013j, 2.96749225+0.13805656j,
...99j ,
1.90701212+0.81591078j, 1.18386313+0.75171332j,
1.11258701+0.76087188j, 1.22041731+0.0124695j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
r = array([[ 5.40881057+0.j , 7.30022723-1.41985604j,
7.03932359+0.61597692j, 6.50278811-0.02048803j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.38445668-0.26882127j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
aTa = array([[ 9.99999956e-01+1.57788912e-17j, 3.89102277e-09+2.20261305e-09j,
3.02295609e-09+3.09561967e-09j, -1....0026e-09j, 3.21943317e-09-1.15066276e-08j,
-6.92992996e-10-4.84758061e-10j, 1.00000002e+00+9.64759379e-20j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 4.38251588e-08
E Max relative difference among violations: 4.38251588e-08
E ACTUAL: array([[ 1.000000e+00+1.577889e-17j, 3.891023e-09+2.202613e-09j,
E 3.022956e-09+3.095620e-09j, -1.651378e-09+2.338767e-10j,
E -2.677938e-09-4.605475e-09j, 2.735027e-09+2.916744e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x116f2d260>, array([[ 9.99999956e-01+1.57788912e-17j, 3.89102277e-09+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_______________ TestQRupdate_D.test_neg_strides_economic_rank_p ________________
scipy/linalg/tests/test_decomp_update.py:1433: in test_neg_strides_economic_rank_p
self.base_non_simple_strides(negate_strides, 'economic', 3, False)
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1161b47a0>
scipy/linalg/tests/test_decomp_update.py:1354: in base_non_simple_strides
check_qr(q1, r1, aup, self.rtol, self.atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function negate_strides at 0x1153632e0>
assert_sqr = False
aup = array([[2.07598897+0.06671892j, 3.58323698-0.57649213j,
2.93176483+1.07193013j, 2.96749225+0.13805656j,
...99j ,
1.90701212+0.81591078j, 1.18386313+0.75171332j,
1.11258701+0.76087188j, 1.22041731+0.0124695j ]])
mode = 'economic'
overwriteable = False
p = 3
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[ 5.40881057+0.j , 7.30022723-1.41985604j,
7.03932359+0.61597692j, 6.50278811-0.02048803j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.38445668-0.26882127j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1161b47a0>
type = 'sqr'
u = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
u0 = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
us = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
v = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
v0 = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
vs = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[2.07598897+0.06671892j, 3.58323698-0.57649213j,
2.93176483+1.07193013j, 2.96749225+0.13805656j,
...99j ,
1.90701212+0.81591078j, 1.18386313+0.75171332j,
1.11258701+0.76087188j, 1.22041731+0.0124695j ]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
r = array([[ 5.40881057+0.j , 7.30022723-1.41985604j,
7.03932359+0.61597692j, 6.50278811-0.02048803j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.38445668-0.26882127j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
aTa = array([[ 9.99999956e-01+1.57788912e-17j, 3.89102277e-09+2.20261305e-09j,
3.02295609e-09+3.09561967e-09j, -1....0026e-09j, 3.21943317e-09-1.15066276e-08j,
-6.92992996e-10-4.84758061e-10j, 1.00000002e+00+9.64759379e-20j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 4.38251588e-08
E Max relative difference among violations: 4.38251588e-08
E ACTUAL: array([[ 1.000000e+00+1.577889e-17j, 3.891023e-09+2.202613e-09j,
E 3.022956e-09+3.095620e-09j, -1.651378e-09+2.338767e-10j,
E -2.677938e-09-4.605475e-09j, 2.735027e-09+2.916744e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x116f2d620>, array([[ 9.99999956e-01+1.57788912e-17j, 3.89102277e-09+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_______________ TestQRupdate_D.test_non_itemsize_strides_rank_1 ________________
scipy/linalg/tests/test_decomp_update.py:1436: in test_non_itemsize_strides_rank_1
self.base_non_simple_strides(nonitemsize_strides, 'full', 1, False)
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1161b5820>
scipy/linalg/tests/test_decomp_update.py:1354: in base_non_simple_strides
check_qr(q1, r1, aup, self.rtol, self.atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function nonitemsize_strides at 0x115363380>
assert_sqr = True
aup = array([[0.74029272-0.20676899j, 1.32961515-0.01541156j,
1.31028931+0.86508248j, 1.61110079+0.4574096j ,
...074j,
1.50924477+0.69590914j, 0.74104944+0.66580889j,
0.48800471+0.53847605j, 0.99566458+0.34721435j]])
mode = 'full'
overwriteable = False
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.22735462+1.46399374j, -2.17912868+0.16808217j,
-3.27003917+0.66558286j, -3.21579254+0.83515862j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.06419343+0.17494157j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1161b5820>
type = 'sqr'
u = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
u0 = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
us = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
v = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
v0 = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
vs = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.74029272-0.20676899j, 1.32961515-0.01541156j,
1.31028931+0.86508248j, 1.61110079+0.4574096j ,
...074j,
1.50924477+0.69590914j, 0.74104944+0.66580889j,
0.48800471+0.53847605j, 0.99566458+0.34721435j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
r = array([[-2.22735462+1.46399374j, -2.17912868+0.16808217j,
-3.27003917+0.66558286j, -3.21579254+0.83515862j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.06419343+0.17494157j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
aTa = array([[ 9.99999917e-01+0.00000000e+00j, -3.23048588e-10-6.57903052e-10j,
1.07208503e-09-2.92018711e-09j, -1....8660e-08j, 2.85890064e-09-4.06437578e-09j,
-3.09314382e-08+3.09983021e-08j, 9.99999893e-01+0.00000000e+00j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 1.31511142e-07
E Max relative difference among violations: 1.31511142e-07
E ACTUAL: array([[ 9.999999e-01+0.000000e+00j, -3.230486e-10-6.579031e-10j,
E 1.072085e-09-2.920187e-09j, -1.006488e-08+3.312128e-09j,
E -7.532170e-09-8.530349e-09j, 1.565584e-09+2.680134e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117897740>, array([[ 9.99999917e-01+0.00000000e+00j, -3.23048588e-10-... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
___________ TestQRupdate_D.test_non_itemsize_strides_economic_rank_1 ___________
scipy/linalg/tests/test_decomp_update.py:1439: in test_non_itemsize_strides_economic_rank_1
self.base_non_simple_strides(nonitemsize_strides, 'economic', 1, False)
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1161b5250>
scipy/linalg/tests/test_decomp_update.py:1354: in base_non_simple_strides
check_qr(q1, r1, aup, self.rtol, self.atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function nonitemsize_strides at 0x115363380>
assert_sqr = False
aup = array([[0.74029272-0.20676899j, 1.32961515-0.01541156j,
1.31028931+0.86508248j, 1.61110079+0.4574096j ,
...074j,
1.50924477+0.69590914j, 0.74104944+0.66580889j,
0.48800471+0.53847605j, 0.99566458+0.34721435j]])
mode = 'economic'
overwriteable = False
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.22735462+1.46399374j, -2.17912868+0.16808217j,
-3.27003917+0.66558286j, -3.21579254+0.83515862j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.06419343+0.17494157j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1161b5250>
type = 'sqr'
u = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
u0 = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
us = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
v = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
v0 = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
vs = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.74029272-0.20676899j, 1.32961515-0.01541156j,
1.31028931+0.86508248j, 1.61110079+0.4574096j ,
...074j,
1.50924477+0.69590914j, 0.74104944+0.66580889j,
0.48800471+0.53847605j, 0.99566458+0.34721435j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
r = array([[-2.22735462+1.46399374j, -2.17912868+0.16808217j,
-3.27003917+0.66558286j, -3.21579254+0.83515862j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.06419343+0.17494157j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
aTa = array([[ 9.99999917e-01+0.00000000e+00j, -3.23048588e-10-6.57903052e-10j,
1.07208503e-09-2.92018711e-09j, -1....8660e-08j, 2.85890064e-09-4.06437578e-09j,
-3.09314382e-08+3.09983021e-08j, 9.99999893e-01+0.00000000e+00j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 1.31511142e-07
E Max relative difference among violations: 1.31511142e-07
E ACTUAL: array([[ 9.999999e-01+0.000000e+00j, -3.230486e-10-6.579031e-10j,
E 1.072085e-09-2.920187e-09j, -1.006488e-08+3.312128e-09j,
E -7.532170e-09-8.530349e-09j, 1.565584e-09+2.680134e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117896660>, array([[ 9.99999917e-01+0.00000000e+00j, -3.23048588e-10-... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_______________ TestQRupdate_D.test_non_itemsize_strides_rank_p ________________
scipy/linalg/tests/test_decomp_update.py:1442: in test_non_itemsize_strides_rank_p
self.base_non_simple_strides(nonitemsize_strides, 'full', 3, False)
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1161b4c50>
scipy/linalg/tests/test_decomp_update.py:1354: in base_non_simple_strides
check_qr(q1, r1, aup, self.rtol, self.atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function nonitemsize_strides at 0x115363380>
assert_sqr = True
aup = array([[2.07598897+0.06671892j, 3.58323698-0.57649213j,
2.93176483+1.07193013j, 2.96749225+0.13805656j,
...99j ,
1.90701212+0.81591078j, 1.18386313+0.75171332j,
1.11258701+0.76087188j, 1.22041731+0.0124695j ]])
mode = 'full'
overwriteable = False
p = 3
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[ 5.40881057+0.j , 7.30022723-1.41985604j,
7.03932359+0.61597692j, 6.50278811-0.02048803j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.38445668-0.26882127j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1161b4c50>
type = 'sqr'
u = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
u0 = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
us = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
v = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
v0 = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
vs = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[2.07598897+0.06671892j, 3.58323698-0.57649213j,
2.93176483+1.07193013j, 2.96749225+0.13805656j,
...99j ,
1.90701212+0.81591078j, 1.18386313+0.75171332j,
1.11258701+0.76087188j, 1.22041731+0.0124695j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
r = array([[ 5.40881057+0.j , 7.30022723-1.41985604j,
7.03932359+0.61597692j, 6.50278811-0.02048803j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.38445668-0.26882127j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
aTa = array([[ 9.99999956e-01+1.57788912e-17j, 3.89102277e-09+2.20261305e-09j,
3.02295609e-09+3.09561967e-09j, -1....0026e-09j, 3.21943317e-09-1.15066276e-08j,
-6.92992996e-10-4.84758061e-10j, 1.00000002e+00+9.64759379e-20j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 4.38251588e-08
E Max relative difference among violations: 4.38251588e-08
E ACTUAL: array([[ 1.000000e+00+1.577889e-17j, 3.891023e-09+2.202613e-09j,
E 3.022956e-09+3.095620e-09j, -1.651378e-09+2.338767e-10j,
E -2.677938e-09-4.605475e-09j, 2.735027e-09+2.916744e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117896e80>, array([[ 9.99999956e-01+1.57788912e-17j, 3.89102277e-09+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
___________ TestQRupdate_D.test_non_itemsize_strides_economic_rank_p ___________
scipy/linalg/tests/test_decomp_update.py:1445: in test_non_itemsize_strides_economic_rank_p
self.base_non_simple_strides(nonitemsize_strides, 'economic', 3, False)
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1161b4500>
scipy/linalg/tests/test_decomp_update.py:1354: in base_non_simple_strides
check_qr(q1, r1, aup, self.rtol, self.atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function nonitemsize_strides at 0x115363380>
assert_sqr = False
aup = array([[2.07598897+0.06671892j, 3.58323698-0.57649213j,
2.93176483+1.07193013j, 2.96749225+0.13805656j,
...99j ,
1.90701212+0.81591078j, 1.18386313+0.75171332j,
1.11258701+0.76087188j, 1.22041731+0.0124695j ]])
mode = 'economic'
overwriteable = False
p = 3
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[ 5.40881057+0.j , 7.30022723-1.41985604j,
7.03932359+0.61597692j, 6.50278811-0.02048803j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.38445668-0.26882127j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1161b4500>
type = 'sqr'
u = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
u0 = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
us = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
v = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
v0 = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
vs = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[2.07598897+0.06671892j, 3.58323698-0.57649213j,
2.93176483+1.07193013j, 2.96749225+0.13805656j,
...99j ,
1.90701212+0.81591078j, 1.18386313+0.75171332j,
1.11258701+0.76087188j, 1.22041731+0.0124695j ]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
r = array([[ 5.40881057+0.j , 7.30022723-1.41985604j,
7.03932359+0.61597692j, 6.50278811-0.02048803j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.38445668-0.26882127j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
aTa = array([[ 9.99999956e-01+1.57788912e-17j, 3.89102277e-09+2.20261305e-09j,
3.02295609e-09+3.09561967e-09j, -1....0026e-09j, 3.21943317e-09-1.15066276e-08j,
-6.92992996e-10-4.84758061e-10j, 1.00000002e+00+9.64759379e-20j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 4.38251588e-08
E Max relative difference among violations: 4.38251588e-08
E ACTUAL: array([[ 1.000000e+00+1.577889e-17j, 3.891023e-09+2.202613e-09j,
E 3.022956e-09+3.095620e-09j, -1.651378e-09+2.338767e-10j,
E -2.677938e-09-4.605475e-09j, 2.735027e-09+2.916744e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x116f2c900>, array([[ 9.99999956e-01+1.57788912e-17j, 3.89102277e-09+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_______________ TestQRupdate_D.test_non_native_byte_order_rank_1 _______________
scipy/linalg/tests/test_decomp_update.py:1448: in test_non_native_byte_order_rank_1
self.base_non_simple_strides(make_nonnative, 'full', 1, False)
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1161b5c40>
scipy/linalg/tests/test_decomp_update.py:1354: in base_non_simple_strides
check_qr(q1, r1, aup, self.rtol, self.atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function make_nonnative at 0x115363420>
assert_sqr = True
aup = array([[0.74029272-0.20676899j, 1.32961515-0.01541156j,
1.31028931+0.86508248j, 1.61110079+0.4574096j ,
...074j,
1.50924477+0.69590914j, 0.74104944+0.66580889j,
0.48800471+0.53847605j, 0.99566458+0.34721435j]])
mode = 'full'
overwriteable = False
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...0772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]], dtype='>c16')
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.22735462+1.46399374j, -2.17912868+0.16808217j,
-3.27003917+0.66558286j, -3.21579254+0.83515862j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.06419343+0.17494157j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
... +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]], dtype='>c16')
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1161b5c40>
type = 'sqr'
u = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
u0 = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
us = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j], dtype='>c16')
v = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
v0 = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
vs = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j], dtype='>c16')
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.74029272-0.20676899j, 1.32961515-0.01541156j,
1.31028931+0.86508248j, 1.61110079+0.4574096j ,
...074j,
1.50924477+0.69590914j, 0.74104944+0.66580889j,
0.48800471+0.53847605j, 0.99566458+0.34721435j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
r = array([[-2.22735462+1.46399374j, -2.17912868+0.16808217j,
-3.27003917+0.66558286j, -3.21579254+0.83515862j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.06419343+0.17494157j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
aTa = array([[ 9.99999917e-01-4.81877658e-17j, -3.23048643e-10-6.57903061e-10j,
1.07208502e-09-2.92018709e-09j, -1....8662e-08j, 2.85890064e-09-4.06437577e-09j,
-3.09314377e-08+3.09983015e-08j, 9.99999893e-01+5.37425670e-18j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 1.31511139e-07
E Max relative difference among violations: 1.31511139e-07
E ACTUAL: array([[ 9.999999e-01-4.818777e-17j, -3.230486e-10-6.579031e-10j,
E 1.072085e-09-2.920187e-09j, -1.006488e-08+3.312128e-09j,
E -7.532170e-09-8.530349e-09j, 1.565584e-09+2.680135e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x116f2db20>, array([[ 9.99999917e-01-4.81877658e-17j, -3.23048643e-10-... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
__________ TestQRupdate_D.test_non_native_byte_order_economic_rank_1 ___________
scipy/linalg/tests/test_decomp_update.py:1451: in test_non_native_byte_order_economic_rank_1
self.base_non_simple_strides(make_nonnative, 'economic', 1, False)
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1161b5e20>
scipy/linalg/tests/test_decomp_update.py:1354: in base_non_simple_strides
check_qr(q1, r1, aup, self.rtol, self.atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function make_nonnative at 0x115363420>
assert_sqr = False
aup = array([[0.74029272-0.20676899j, 1.32961515-0.01541156j,
1.31028931+0.86508248j, 1.61110079+0.4574096j ,
...074j,
1.50924477+0.69590914j, 0.74104944+0.66580889j,
0.48800471+0.53847605j, 0.99566458+0.34721435j]])
mode = 'economic'
overwriteable = False
p = 1
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...0772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]], dtype='>c16')
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.22735462+1.46399374j, -2.17912868+0.16808217j,
-3.27003917+0.66558286j, -3.21579254+0.83515862j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.06419343+0.17494157j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
... +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]], dtype='>c16')
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1161b5e20>
type = 'sqr'
u = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
u0 = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
us = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j], dtype='>c16')
v = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
v0 = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
vs = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j], dtype='>c16')
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.74029272-0.20676899j, 1.32961515-0.01541156j,
1.31028931+0.86508248j, 1.61110079+0.4574096j ,
...074j,
1.50924477+0.69590914j, 0.74104944+0.66580889j,
0.48800471+0.53847605j, 0.99566458+0.34721435j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
r = array([[-2.22735462+1.46399374j, -2.17912868+0.16808217j,
-3.27003917+0.66558286j, -3.21579254+0.83515862j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.06419343+0.17494157j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
aTa = array([[ 9.99999917e-01-4.81877658e-17j, -3.23048643e-10-6.57903061e-10j,
1.07208502e-09-2.92018709e-09j, -1....8662e-08j, 2.85890064e-09-4.06437577e-09j,
-3.09314377e-08+3.09983015e-08j, 9.99999893e-01+5.37425670e-18j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 1.31511139e-07
E Max relative difference among violations: 1.31511139e-07
E ACTUAL: array([[ 9.999999e-01-4.818777e-17j, -3.230486e-10-6.579031e-10j,
E 1.072085e-09-2.920187e-09j, -1.006488e-08+3.312128e-09j,
E -7.532170e-09-8.530349e-09j, 1.565584e-09+2.680135e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x116f2e200>, array([[ 9.99999917e-01-4.81877658e-17j, -3.23048643e-10-... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_______________ TestQRupdate_D.test_non_native_byte_order_rank_p _______________
scipy/linalg/tests/test_decomp_update.py:1454: in test_non_native_byte_order_rank_p
self.base_non_simple_strides(make_nonnative, 'full', 3, False)
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1161b6000>
scipy/linalg/tests/test_decomp_update.py:1354: in base_non_simple_strides
check_qr(q1, r1, aup, self.rtol, self.atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function make_nonnative at 0x115363420>
assert_sqr = True
aup = array([[2.07598897+0.06671892j, 3.58323698-0.57649213j,
2.93176483+1.07193013j, 2.96749225+0.13805656j,
...99j ,
1.90701212+0.81591078j, 1.18386313+0.75171332j,
1.11258701+0.76087188j, 1.22041731+0.0124695j ]])
mode = 'full'
overwriteable = False
p = 3
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...0772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]], dtype='>c16')
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[ 5.40881057+0.j , 7.30022723-1.41985604j,
7.03932359+0.61597692j, 6.50278811-0.02048803j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.38445668-0.26882127j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
... +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]], dtype='>c16')
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1161b6000>
type = 'sqr'
u = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
u0 = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
us = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884...2+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]], dtype='>c16')
v = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
v0 = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
vs = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112...7+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]], dtype='>c16')
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[2.07598897+0.06671892j, 3.58323698-0.57649213j,
2.93176483+1.07193013j, 2.96749225+0.13805656j,
...99j ,
1.90701212+0.81591078j, 1.18386313+0.75171332j,
1.11258701+0.76087188j, 1.22041731+0.0124695j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
r = array([[ 5.40881057+0.j , 7.30022723-1.41985604j,
7.03932359+0.61597692j, 6.50278811-0.02048803j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.38445668-0.26882127j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
aTa = array([[ 9.99999956e-01+1.57788912e-17j, 3.89102277e-09+2.20261305e-09j,
3.02295609e-09+3.09561967e-09j, -1....0026e-09j, 3.21943317e-09-1.15066276e-08j,
-6.92992996e-10-4.84758061e-10j, 1.00000002e+00+9.64759379e-20j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 4.38251588e-08
E Max relative difference among violations: 4.38251588e-08
E ACTUAL: array([[ 1.000000e+00+1.577889e-17j, 3.891023e-09+2.202613e-09j,
E 3.022956e-09+3.095620e-09j, -1.651378e-09+2.338767e-10j,
E -2.677938e-09-4.605475e-09j, 2.735027e-09+2.916744e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117a1c040>, array([[ 9.99999956e-01+1.57788912e-17j, 3.89102277e-09+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
__________ TestQRupdate_D.test_non_native_byte_order_economic_rank_p ___________
scipy/linalg/tests/test_decomp_update.py:1457: in test_non_native_byte_order_economic_rank_p
self.base_non_simple_strides(make_nonnative, 'economic', 3, False)
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1161b61e0>
scipy/linalg/tests/test_decomp_update.py:1354: in base_non_simple_strides
check_qr(q1, r1, aup, self.rtol, self.atol, assert_sqr)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
adjust_strides = <function make_nonnative at 0x115363420>
assert_sqr = False
aup = array([[2.07598897+0.06671892j, 3.58323698-0.57649213j,
2.93176483+1.07193013j, 2.96749225+0.13805656j,
...99j ,
1.90701212+0.81591078j, 1.18386313+0.75171332j,
1.11258701+0.76087188j, 1.22041731+0.0124695j ]])
mode = 'economic'
overwriteable = False
p = 3
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
qs = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...0772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]], dtype='>c16')
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[ 5.40881057+0.j , 7.30022723-1.41985604j,
7.03932359+0.61597692j, 6.50278811-0.02048803j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.38445668-0.26882127j]])
rs = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
... +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]], dtype='>c16')
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1161b61e0>
type = 'sqr'
u = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
u0 = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
us = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884...2+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]], dtype='>c16')
v = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
v0 = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
vs = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112...7+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]], dtype='>c16')
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[2.07598897+0.06671892j, 3.58323698-0.57649213j,
2.93176483+1.07193013j, 2.96749225+0.13805656j,
...99j ,
1.90701212+0.81591078j, 1.18386313+0.75171332j,
1.11258701+0.76087188j, 1.22041731+0.0124695j ]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
r = array([[ 5.40881057+0.j , 7.30022723-1.41985604j,
7.03932359+0.61597692j, 6.50278811-0.02048803j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.38445668-0.26882127j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
aTa = array([[ 9.99999956e-01+1.57788912e-17j, 3.89102277e-09+2.20261305e-09j,
3.02295609e-09+3.09561967e-09j, -1....0026e-09j, 3.21943317e-09-1.15066276e-08j,
-6.92992996e-10-4.84758061e-10j, 1.00000002e+00+9.64759379e-20j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 4.38251588e-08
E Max relative difference among violations: 4.38251588e-08
E ACTUAL: array([[ 1.000000e+00+1.577889e-17j, 3.891023e-09+2.202613e-09j,
E 3.022956e-09+3.095620e-09j, -1.651378e-09+2.338767e-10j,
E -2.677938e-09-4.605475e-09j, 2.735027e-09+2.916744e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x1178965c0>, array([[ 9.99999956e-01+1.57788912e-17j, 3.89102277e-09+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
__________________ TestQRupdate_D.test_overwrite_qruv_rank_1 ___________________
scipy/linalg/tests/test_decomp_update.py:1471: in test_overwrite_qruv_rank_1
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[0.74029272-0.20676899j, 1.32961515-0.01541156j,
1.31028931+0.86508248j, 1.61110079+0.4574096j ,
...074j,
1.50924477+0.69590914j, 0.74104944+0.66580889j,
0.48800471+0.53847605j, 0.99566458+0.34721435j]])
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[-2.22735462+1.46399374j, -2.17912868+0.16808217j,
-3.27003917+0.66558286j, -3.21579254+0.83515862j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.06419343+0.17494157j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1161b63c0>
u = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
u0 = array([0.69004971+0.38714706j, 0.82775052+0.81300103j,
0.47553715+0.35251657j, 0.2670281 +0.14093254j,
0.50729606+0.19352602j, 0.42612341+0.42250713j,
0.40090086+0.24968324j, 0.5327176 +0.31072018j])
v = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
v0 = array([0.19360553+0.61519857j, 0.34040244+0.30568488j,
0.6170145 +0.3944807j , 0.888258 +0.8092116j ,
0.89656783+0.6155938j , 0.67433536+0.534635j ,
0.24952374+0.94059529j, 0.5563584 +0.17250008j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.74029272-0.20676899j, 1.32961515-0.01541156j,
1.31028931+0.86508248j, 1.61110079+0.4574096j ,
...074j,
1.50924477+0.69590914j, 0.74104944+0.66580889j,
0.48800471+0.53847605j, 0.99566458+0.34721435j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
r = array([[-2.22735462+1.46399374j, -2.17912868+0.16808217j,
-3.27003917+0.66558286j, -3.21579254+0.83515862j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.06419343+0.17494157j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-0.27470392-0.08772552j, -0.47327333+0.2860492j ,
-0.022784 -0.44784393j, 0.02620287-0.25164754j,
...,
0.00996948-0.42512995j, -0.04304381-0.36218709j,
-0.140629 +0.35563536j, 0.15558565-0.38724493j]])
aTa = array([[ 9.99999917e-01-4.81877658e-17j, -3.23048643e-10-6.57903061e-10j,
1.07208502e-09-2.92018709e-09j, -1....8662e-08j, 2.85890064e-09-4.06437577e-09j,
-3.09314377e-08+3.09983015e-08j, 9.99999893e-01+5.37425670e-18j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 1.31511139e-07
E Max relative difference among violations: 1.31511139e-07
E ACTUAL: array([[ 9.999999e-01-4.818777e-17j, -3.230486e-10-6.579031e-10j,
E 1.072085e-09-2.920187e-09j, -1.006488e-08+3.312128e-09j,
E -7.532170e-09-8.530349e-09j, 1.565584e-09+2.680135e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x117896c00>, array([[ 9.99999917e-01-4.81877658e-17j, -3.23048643e-10-... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
______________ TestQRupdate_D.test_overwrite_qruv_rank_1_economic ______________
scipy/linalg/tests/test_decomp_update.py:1502: in test_overwrite_qruv_rank_1_economic
check_qr(q1, r1, a1, self.rtol, self.atol, False)
a = array([[0.36852295+0.70656594j, 0.97637554+0.88157274j,
0.73179659+0.53904779j, 0.68487472+0.25772088j,
...842j, 0.1716864 +0.8069605j ,
0.29238511+0.90236963j, 0.08459105+0.7541054j ,
0.83912041+0.23152167j]])
a1 = array([[0.3908612 +0.70103497j, 1.22498805+0.88380761j,
1.41719704+0.26743965j, 1.4636082 -0.15787368j,
...278j, 0.62631374+1.09913745j,
0.88810876+1.04380301j, 0.60864029+1.03192173j,
1.33174753+0.13240087j]])
q = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
..., 0.12717499-0.13948103j,
0.06060244-0.22584374j, -0.04277848-0.09283101j,
0.04983613+0.15919433j]])
q0 = array([[-0.11519073-0.22085421j, 0.40310762+0.25545139j,
0.20641454-0.02725359j, 0.04916084+0.1205459j ,
..., 0.12717499-0.13948103j,
0.06060244-0.22584374j, -0.04277848-0.09283101j,
0.04983613+0.15919433j]])
q1 = array([[-1.17881098e-01-0.21700216j, 3.99200923e-01+0.25821379j,
2.67050759e-01-0.05700348j, 1.65343822e-01...1-0.31332513j,
-4.76529955e-02+0.28839384j, -1.00085069e-02+0.03817726j,
1.43346347e-01+0.14673516j]])
r = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.85741133+0.j ]])
r0 = array([[-3.19924142+0.j , -2.18995473+0.2389295j ,
-1.64672593+0.4729315j , -2.40332574+0.41776413j,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.85741133+0.j ]])
r1 = array([[-3.24995241+0.03572904j, -2.79299979+0.35532972j,
-3.16100341+1.45325958j, -4.07896761+1.803646j ,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.83580904-0.32473301j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1161b65a0>
u = array([0.97255678+0.26777079j, 0.36071622+0.78994569j,
0.28201392+0.67496934j, 0.70583085+0.81774514j,
0...358533j,
0.09839256+0.43700129j, 0.56218546+0.88397738j,
0.9777969 +0.18651321j, 0.14721884+0.59979179j])
u0 = array([0.97255678+0.26777079j, 0.36071622+0.78994569j,
0.28201392+0.67496934j, 0.70583085+0.81774514j,
0...358533j,
0.09839256+0.43700129j, 0.56218546+0.88397738j,
0.9777969 +0.18651321j, 0.14721884+0.59979179j])
v = array([0.01989467+0.01116458j, 0.23820349+0.06328583j,
0.58360935+0.43995546j, 0.63492416+0.60213318j,
0.45233787+0.88219112j, 0.63913689+0.71684251j,
0.03427202+0.81291815j])
v0 = array([0.01989467+0.01116458j, 0.23820349+0.06328583j,
0.58360935+0.43995546j, 0.63492416+0.60213318j,
0.45233787+0.88219112j, 0.63913689+0.71684251j,
0.03427202+0.81291815j])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[0.3908612 +0.70103497j, 1.22498805+0.88380761j,
1.41719704+0.26743965j, 1.4636082 -0.15787368j,
...278j, 0.62631374+1.09913745j,
0.88810876+1.04380301j, 0.60864029+1.03192173j,
1.33174753+0.13240087j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
q = array([[-1.17881098e-01-0.21700216j, 3.99200923e-01+0.25821379j,
2.67050759e-01-0.05700348j, 1.65343822e-01...1-0.31332513j,
-4.76529955e-02+0.28839384j, -1.00085069e-02+0.03817726j,
1.43346347e-01+0.14673516j]])
r = array([[-3.24995241+0.03572904j, -2.79299979+0.35532972j,
-3.16100341+1.45325958j, -4.07896761+1.803646j ,
..., 0. +0.j ,
0. +0.j , 0. +0.j ,
-0.83580904-0.32473301j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[-1.17881098e-01-0.21700216j, 3.99200923e-01+0.25821379j,
2.67050759e-01-0.05700348j, 1.65343822e-01...1-0.31332513j,
-4.76529955e-02+0.28839384j, -1.00085069e-02+0.03817726j,
1.43346347e-01+0.14673516j]])
aTa = array([[ 9.99999986e-01+0.00000000e+00j, 8.49470667e-11+1.64792041e-10j,
-2.12721438e-10+1.38996412e-10j, 1....j,
-5.26507044e-09-3.48613456e-09j, 1.16168686e-10-6.37497857e-09j,
9.99999949e-01+0.00000000e+00j]])
assert_sqr = False
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 49 / 49 (100%)
E Max absolute difference among violations: 1.19295713e-07
E Max relative difference among violations: 1.19295713e-07
E ACTUAL: array([[ 1.000000e+00+0.000000e+00j, 8.494707e-11+1.647920e-10j,
E -2.127214e-10+1.389964e-10j, 1.880994e-10+1.076792e-11j,
E -2.877740e-10+1.465876e-12j, -1.185513e-10-2.738572e-10j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x116f2c2c0>, array([[ 9.99999986e-01+0.00000000e+00j, 8.49470667e-11+..., 0.],
[0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
__________________ TestQRupdate_D.test_overwrite_qruv_rank_p ___________________
scipy/linalg/tests/test_decomp_update.py:1532: in test_overwrite_qruv_rank_p
check_qr(q1, r1, a1, self.rtol, self.atol)
a = array([[0.36852295+0.14279479j, 0.97637554+0.06374039j,
0.73179659+0.89841842j, 0.68487472+0.67191936j,
...233j,
0.84034989+0.74526508j, 0.21569725+0.74108876j,
0.06281709+0.96201566j, 0.64568342+0.2662364j ]])
a1 = array([[2.07598897+0.06671892j, 3.58323698-0.57649213j,
2.93176483+1.07193013j, 2.96749225+0.13805656j,
...99j ,
1.90701212+0.81591078j, 1.18386313+0.75171332j,
1.11258701+0.76087188j, 1.22041731+0.0124695j ]])
q = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q0 = array([[-0.17198578-0.06664082j, -0.58083951+0.08861119j,
-0.00882077-0.44755969j, 0.13044019-0.25578624j,
...,
-0.00772402-0.40906233j, -0.16611316+0.40610583j,
-0.03277588+0.29134352j, 0.41810281-0.22862595j]])
q1 = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
r = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r0 = array([[-2.14275243+0.j , -1.36409122-0.53144909j,
-2.06651488-0.38859942j, -1.61222529-0.54893885j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , 0.46696381+0.j ]])
r1 = array([[ 5.40881057+0.j , 7.30022723-1.41985604j,
7.03932359+0.61597692j, 6.50278811-0.02048803j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.38445668-0.26882127j]])
self = <scipy.linalg.tests.test_decomp_update.TestQRupdate_D object at 0x1161b6780>
u = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
u0 = array([[0.69004971+0.09839256j, 0.82775052+0.56218546j,
0.47553715+0.9777969j ],
[0.2670281 +0.14721884... 0.19352602+0.88397738j],
[0.42250713+0.18651321j, 0.24968324+0.59979179j,
0.31072018+0.01116458j]])
v = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
v0 = array([[0.61519857+0.06328583j, 0.30568488+0.43995546j,
0.3944807 +0.60213318j],
[0.8092116 +0.88219112... 0.20652787+0.31447383j],
[0.57184983+0.9198741j , 0.36117885+0.02514654j,
0.15989782+0.5918821j ]])
scipy/linalg/tests/test_decomp_update.py:30: in check_qr
assert_unitary(q, rtol, atol, assert_sqr)
a = array([[2.07598897+0.06671892j, 3.58323698-0.57649213j,
2.93176483+1.07193013j, 2.96749225+0.13805656j,
...99j ,
1.90701212+0.81591078j, 1.18386313+0.75171332j,
1.11258701+0.76087188j, 1.22041731+0.0124695j ]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
q = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
r = array([[ 5.40881057+0.j , 7.30022723-1.41985604j,
7.03932359+0.61597692j, 6.50278811-0.02048803j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.38445668-0.26882127j]])
rtol = 1e-13
scipy/linalg/tests/test_decomp_update.py:19: in assert_unitary
assert_allclose(aTa, np.eye(a.shape[1]), rtol=rtol, atol=atol)
a = array([[ 3.83816162e-01+0.01233523j, 4.14408215e-01-0.06596566j,
-1.23203140e-01+0.48816695j, 2.35154634e-01...32733e-01-0.39835901j, -2.35783599e-01+0.2491379j ,
-2.45362137e-01+0.05868194j, -3.18038662e-01-0.22558892j]])
aTa = array([[ 9.99999956e-01+1.57788912e-17j, 3.89102277e-09+2.20261305e-09j,
3.02295609e-09+3.09561967e-09j, -1....0026e-09j, 3.21943317e-09-1.15066276e-08j,
-6.92992996e-10-4.84758061e-10j, 1.00000002e+00+9.64759379e-20j]])
assert_sqr = True
atol = np.float64(2.220446049250313e-15)
rtol = 1e-13
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-13, atol=2.22045e-15
E
E Mismatched elements: 64 / 64 (100%)
E Max absolute difference among violations: 4.38251588e-08
E Max relative difference among violations: 4.38251588e-08
E ACTUAL: array([[ 1.000000e+00+1.577889e-17j, 3.891023e-09+2.202613e-09j,
E 3.022956e-09+3.095620e-09j, -1.651378e-09+2.338767e-10j,
E -2.677938e-09-4.605475e-09j, 2.735027e-09+2.916744e-09j,...
E DESIRED: array([[1., 0., 0., 0., 0., 0., 0., 0.],
E [0., 1., 0., 0., 0., 0., 0., 0.],
E [0., 0., 1., 0., 0., 0., 0., 0.],...
args = (<function assert_allclose.<locals>.compare at 0x116f2e3e0>, array([[ 9.99999956e-01+1.57788912e-17j, 3.89102277e-09+... [0., 0., 0., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-13, atol=2.22045e-15', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_________________________ test_gees_trexc[complex128] __________________________
scipy/linalg/tests/test_lapack.py:3086: in test_gees_trexc
assert_allclose(z @ t @ z.conj().T, a, rtol=0, atol=atol)
a = array([[0.19151945+0.76711663j, 0.62210877+0.70811536j,
0.43772774+0.79686718j, 0.78535858+0.55776083j,
...987j,
0.53687819+0.604334j , 0.81920207+0.10310444j,
0.05711564+0.80237418j, 0.66942174+0.94555324j]])
atol = np.float64(2.220446049250313e-14)
d2 = np.complex128(-0.07681671214527071-0.2250486177750949j)
dtype = <class 'numpy.complex128'>
gees = <fortran function zgees>
n = 10
result = (array([[-0.07681671-0.22504862j, 0.19816736+0.26090978j,
-0.03342489-0.02422679j, -0.01141797-0.11343524j,
...1e-01-0.07199979j, 3.38501362e-01-0.13824925j,
8.49869119e-02-0.24048119j, -1.60574746e-01-0.30107018j]]), 0)
t = array([[-0.07681671-0.22504862j, 0.19816736+0.26090978j,
-0.03342489-0.02422679j, -0.01141797-0.11343524j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.0367505 +0.56546594j]])
trexc = <fortran function ztrexc>
z = array([[-1.03401450e-01-0.1180038j , 2.33084404e-04-0.32733269j,
-1.01602132e-01+0.3337508j , 2.70151357e-01...54011e-01-0.07199979j, 3.38501362e-01-0.13824925j,
8.49869119e-02-0.24048119j, -1.60574746e-01-0.30107018j]])
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=0, atol=2.22045e-14
E
E Mismatched elements: 100 / 100 (100%)
E Max absolute difference among violations: 7.05450928e-08
E Max relative difference among violations: 4.7122269e-07
E ACTUAL: array([[0.191519+0.767117j, 0.622109+0.708115j, 0.437728+0.796867j,
E 0.785359+0.557761j, 0.779976+0.965837j, 0.272593+0.147157j,
E 0.276464+0.029647j, 0.801872+0.593893j, 0.958139+0.114066j,...
E DESIRED: array([[0.191519+0.767117j, 0.622109+0.708115j, 0.437728+0.796867j,
E 0.785359+0.557761j, 0.779976+0.965837j, 0.272593+0.147157j,
E 0.276464+0.029647j, 0.801872+0.593893j, 0.958139+0.114066j,...
args = (<function assert_allclose.<locals>.compare at 0x117f6f100>, array([[0.19151949+0.7671166j , 0.62210873+0.70811532j,
...87j,
0.53687819+0.604334j , 0.81920207+0.10310444j,
0.05711564+0.80237418j, 0.66942174+0.94555324j]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=0, atol=2.22045e-14', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_________________________ test_gges_tgexc[complex128] __________________________
scipy/linalg/tests/test_lapack.py:3157: in test_gges_tgexc
assert_allclose(q @ s @ z.conj().T, a, rtol=0, atol=atol)
a = array([[0.19151945+0.76711663j, 0.62210877+0.70811536j,
0.43772774+0.79686718j, 0.78535858+0.55776083j,
...987j,
0.53687819+0.604334j , 0.81920207+0.10310444j,
0.05711564+0.80237418j, 0.66942174+0.94555324j]])
atol = np.float64(2.220446049250313e-14)
b = array([[0.97903882+0.28587767j, 0.88123225+0.98674722j,
0.62768192+0.43180085j, 0.93048653+0.57423441j,
...469j,
0.60667522+0.47332988j, 0.82215979+0.90255503j,
0.62796507+0.22599553j, 0.11792306+0.30415374j]])
d1 = np.complex128(2.168913189889664+3.4494187713152753j)
d2 = np.complex128(0.5976472029971129+0.8235353290482963j)
dtype = <class 'numpy.complex128'>
gges = <fortran function zgges>
n = 10
q = array([[-0.20422982-0.3052951j , 0.28638711-0.05027862j,
0.04194937+0.49370971j, 0.11298321+0.1642196j ,
...,
0.17830392+0.06467996j, 0.04408475+0.26148916j,
0.13046269+0.14352477j, 0.04373179+0.09260572j]])
result = (array([[ 7.37817177e-01+1.17341737j, 7.79311299e-02+0.12099252j,
9.11183139e-02-0.05175722j, -5.36635483e-0... 0.17830392+0.06467996j, 0.04408475+0.26148916j,
0.13046269+0.14352477j, 0.04373179+0.09260572j]]), ...)
s = array([[ 7.37817177e-01+1.17341737j, 7.79311299e-02+0.12099252j,
9.11183139e-02-0.05175722j, -5.36635483e-01...00000e+00+0.j , 0.00000000e+00+0.j ,
0.00000000e+00+0.j , 1.87940295e-02-0.19372935j]])
t = array([[ 3.40178289e-01+0.j , -1.68913341e-01-0.03138816j,
-7.75866311e-01+0.31919974j, -5.09529105e-01...00000e+00+0.j , 0.00000000e+00+0.j ,
0.00000000e+00+0.j , 1.11494547e+00+0.j ]])
tgexc = <fortran function ztgexc>
z = array([[ 0.26573174-0.40060742j, 0.2939696 -0.02186038j,
-0.00885885+0.26538293j, -0.19994713+0.26316492j,
...,
-0.01579972-0.14420005j, 0.00861783-0.13354829j,
0.19927773+0.30616433j, -0.04315833+0.11078325j]])
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=0, atol=2.22045e-14
E
E Mismatched elements: 100 / 100 (100%)
E Max absolute difference among violations: 3.60618542e-07
E Max relative difference among violations: 1.05922437e-06
E ACTUAL: array([[0.191519+0.767117j, 0.622109+0.708115j, 0.437728+0.796867j,
E 0.785359+0.557761j, 0.779976+0.965837j, 0.272593+0.147157j,
E 0.276464+0.029647j, 0.801872+0.593894j, 0.95814 +0.114066j,...
E DESIRED: array([[0.191519+0.767117j, 0.622109+0.708115j, 0.437728+0.796867j,
E 0.785359+0.557761j, 0.779976+0.965837j, 0.272593+0.147157j,
E 0.276464+0.029647j, 0.801872+0.593893j, 0.958139+0.114066j,...
args = (<function assert_allclose.<locals>.compare at 0x117f6ee80>, array([[0.19151941+0.76711667j, 0.62210895+0.70811546j,
...87j,
0.53687819+0.604334j , 0.81920207+0.10310444j,
0.05711564+0.80237418j, 0.66942174+0.94555324j]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=0, atol=2.22045e-14', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_________________________ test_gees_trsen[complex128] __________________________
scipy/linalg/tests/test_lapack.py:3220: in test_gees_trsen
assert_allclose(z @ t @ z.conj().T, a, rtol=0, atol=atol)
a = array([[0.19151945+0.76711663j, 0.62210877+0.70811536j,
0.43772774+0.79686718j, 0.78535858+0.55776083j,
...987j,
0.53687819+0.604334j , 0.81920207+0.10310444j,
0.05711564+0.80237418j, 0.66942174+0.94555324j]])
atol = np.float64(2.220446049250313e-14)
d2 = np.complex128(-0.07681671214527071-0.2250486177750949j)
dtype = <class 'numpy.complex128'>
gees = <fortran function zgees>
lwork = 18
n = 10
result = (array([[-0.07681671-0.22504862j, 0.19816736+0.26090978j,
-0.03342489-0.02422679j, -0.01141797-0.11343524j,
....88926391j,
0.3970918 +0.40997015j, -0.0367505 +0.56546594j]), 1, 0.46624801820740597, 0.1576585669228466, ...)
select = array([0., 0., 0., 0., 0., 0., 1., 0., 0., 0.])
t = array([[-0.07681671-0.22504862j, 0.19816736+0.26090978j,
-0.03342489-0.02422679j, -0.01141797-0.11343524j,
...,
0. +0.j , 0. +0.j ,
0. +0.j , -0.0367505 +0.56546594j]])
trsen = <fortran function ztrsen>
trsen_lwork = <fortran function ztrsen_lwork>
z = array([[-1.03401450e-01-0.1180038j , 2.33084404e-04-0.32733269j,
-1.01602132e-01+0.3337508j , 2.70151357e-01...54011e-01-0.07199979j, 3.38501362e-01-0.13824925j,
8.49869119e-02-0.24048119j, -1.60574746e-01-0.30107018j]])
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=0, atol=2.22045e-14
E
E Mismatched elements: 100 / 100 (100%)
E Max absolute difference among violations: 7.05450928e-08
E Max relative difference among violations: 4.7122269e-07
E ACTUAL: array([[0.191519+0.767117j, 0.622109+0.708115j, 0.437728+0.796867j,
E 0.785359+0.557761j, 0.779976+0.965837j, 0.272593+0.147157j,
E 0.276464+0.029647j, 0.801872+0.593893j, 0.958139+0.114066j,...
E DESIRED: array([[0.191519+0.767117j, 0.622109+0.708115j, 0.437728+0.796867j,
E 0.785359+0.557761j, 0.779976+0.965837j, 0.272593+0.147157j,
E 0.276464+0.029647j, 0.801872+0.593893j, 0.958139+0.114066j,...
args = (<function assert_allclose.<locals>.compare at 0x117f6f4c0>, array([[0.19151949+0.7671166j , 0.62210873+0.70811532j,
...87j,
0.53687819+0.604334j , 0.81920207+0.10310444j,
0.05711564+0.80237418j, 0.66942174+0.94555324j]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=0, atol=2.22045e-14', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
_________________________ test_gges_tgsen[complex128] __________________________
scipy/linalg/tests/test_lapack.py:3327: in test_gges_tgsen
assert_allclose(q @ s @ z.conj().T, a, rtol=0, atol=atol)
a = array([[0.19151945+0.76711663j, 0.62210877+0.70811536j,
0.43772774+0.79686718j, 0.78535858+0.55776083j,
...987j,
0.53687819+0.604334j , 0.81920207+0.10310444j,
0.05711564+0.80237418j, 0.66942174+0.94555324j]])
atol = np.float64(2.220446049250313e-14)
b = array([[0.97903882+0.28587767j, 0.88123225+0.98674722j,
0.62768192+0.43180085j, 0.93048653+0.57423441j,
...469j,
0.60667522+0.47332988j, 0.82215979+0.90255503j,
0.62796507+0.22599553j, 0.11792306+0.30415374j]])
d1 = np.complex128(2.168913189889664+3.4494187713152753j)
d2 = np.complex128(0.5976472029971129+0.8235353290482963j)
dtype = <class 'numpy.complex128'>
gges = <fortran function zgges>
n = 10
q = array([[-0.20422982-0.3052951j , 0.28638711-0.05027862j,
0.04194937+0.49370971j, 0.11298321+0.1642196j ,
...,
0.17830392+0.06467996j, 0.04408475+0.26148916j,
0.13046269+0.14352477j, 0.04373179+0.09260572j]])
result = (array([[ 7.37817177e-01+1.17341737j, 7.79311299e-02+0.12099252j,
9.11183139e-02-0.05175722j, -5.36635483e-0... 0.17830392+0.06467996j, 0.04408475+0.26148916j,
0.13046269+0.14352477j, 0.04373179+0.09260572j]]), ...)
s = array([[ 7.37817177e-01+1.17341737j, 7.79311299e-02+0.12099252j,
9.11183139e-02-0.05175722j, -5.36635483e-01...00000e+00+0.j , 0.00000000e+00+0.j ,
0.00000000e+00+0.j , 1.87940295e-02-0.19372935j]])
t = array([[ 3.40178289e-01+0.j , -1.68913341e-01-0.03138816j,
-7.75866311e-01+0.31919974j, -5.09529105e-01...00000e+00+0.j , 0.00000000e+00+0.j ,
0.00000000e+00+0.j , 1.11494547e+00+0.j ]])
tgsen = <fortran function ztgsen>
tgsen_lwork = <fortran function ztgsen_lwork>
z = array([[ 0.26573174-0.40060742j, 0.2939696 -0.02186038j,
-0.00885885+0.26538293j, -0.19994713+0.26316492j,
...,
-0.01579972-0.14420005j, 0.00861783-0.13354829j,
0.19927773+0.30616433j, -0.04315833+0.11078325j]])
/Users/andrew/miniforge3/envs/dev312/lib/python3.12/contextlib.py:81: in inner
return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=0, atol=2.22045e-14
E
E Mismatched elements: 100 / 100 (100%)
E Max absolute difference among violations: 3.60618542e-07
E Max relative difference among violations: 1.05922437e-06
E ACTUAL: array([[0.191519+0.767117j, 0.622109+0.708115j, 0.437728+0.796867j,
E 0.785359+0.557761j, 0.779976+0.965837j, 0.272593+0.147157j,
E 0.276464+0.029647j, 0.801872+0.593894j, 0.95814 +0.114066j,...
E DESIRED: array([[0.191519+0.767117j, 0.622109+0.708115j, 0.437728+0.796867j,
E 0.785359+0.557761j, 0.779976+0.965837j, 0.272593+0.147157j,
E 0.276464+0.029647j, 0.801872+0.593893j, 0.958139+0.114066j,...
args = (<function assert_allclose.<locals>.compare at 0x121150040>, array([[0.19151941+0.76711667j, 0.62210895+0.70811546j,
...87j,
0.53687819+0.604334j , 0.81920207+0.10310444j,
0.05711564+0.80237418j, 0.66942174+0.94555324j]]))
func = <function assert_array_compare at 0x104a1b060>
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=0, atol=2.22045e-14', 'strict': False, ...}
self = <contextlib._GeneratorContextManager object at 0x104a525a0>
____________ TestSolveDiscreteAre.test_solve_discrete_are[0-case0] _____________
scipy/linalg/tests/test_solvers.py:555: in test_solve_discrete_are
x = solve_discrete_are(a, b, q, r)
a = array([[ 2.+0.j, 1.-2.j],
[ 0.+0.j, -0.-3.j]])
atol = 1.5e-12
b = array([[0],
[1]])
case = (array([[ 2.+0.j, 1.-2.j],
[ 0.+0.j, -0.-3.j]]), array([[0],
[1]]), array([[1, 0],
[0, 2]]), array([[1]]), None)
j = 0
knownfailure = None
q = array([[1, 0],
[0, 2]])
r = array([[1]])
self = <scipy.linalg.tests.test_solvers.TestSolveDiscreteAre object at 0x116491430>
scipy/linalg/_solvers.py:711: in solve_discrete_are
_, _, _, _, _, u = ordqz(H, J, sort='iuc',
H = array([[-1.78885438+0.j , -0.4472136 +0.29442719j,
0. +0.j , 0. +0.j ],
...,
[-0.89442719+0.j , -0.2236068 +1.6472136j ,
0. +0.j , 0. +0.j ]])
J = array([[-0.89442719+0.j, 0.2 +0.j, 0. +0.j,
0.8 +0.j],
[ 0. +0.j, 0. ... +1.j,
0. +3.j],
[-0.4472136 +0.j, -0.4 +0.j, 0. +0.j,
-1.6 +0.j]])
M = array([[0. , 2.23606798, 0. , 0. , 0. ],
[0. , 0. , 0. , 0. ... 2. , 2.23606798, 0. , 0. ],
[0. , 0. , 0. , 1. , 0. ]])
_ = array([[-2.23606798+0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j]])
a = array([[ 2.+0.j, 1.-2.j],
[ 0.+0.j, -0.-3.j]])
b = array([[0],
[1]])
balanced = True
e = None
elwisescale = array([[1. , 0.5 , 1. , 2. , 1. ],
[2. , 1. , 2. , 4. , 2. ],
[1. , 0.5 , 1. , 2. , 1. ],
[0.5 , 0.25, 0.5 , 1. , 0.5 ],
[1. , 0.5 , 1. , 2. , 1. ]])
gen_are = False
m = 2
n = 1
out_str = 'complex'
q = array([[1, 0],
[0, 2]])
q_of_qr = array([[ 0. +0.j, -0.89442719+0.j, 0. +0.j,
0. +0.j, -0.4472136 +0.j],
[-0.89442...0. +0.j],
[-0.4472136 -0.j, -0.4 +0.j, 0. +0.j,
0. +0.j, 0.8 +0.j]])
r = array([[1]])
r_or_c = <class 'complex'>
s = array([0., 1.])
sca = array([1. , 2. , 1. , 0.5, 1. ])
scipy/linalg/_decomp_qz.py:443: in ordqz
raise ValueError("Reordering of (A, B) failed because the transformed"
E ValueError: Reordering of (A, B) failed because the transformed matrix pair (A, B) would be too far from generalized Schur form; the problem is very ill-conditioned. (A, B) may have been partially reordered.
A = array([[-1.78885438+0.j , -0.4472136 +0.29442719j,
0. +0.j , 0. +0.j ],
...,
[-0.89442719+0.j , -0.2236068 +1.6472136j ,
0. +0.j , 0. +0.j ]])
AA = array([[-7.10397232e-02-1.70850021j, 3.12278871e-01-1.06902687j,
-8.63760044e-02+0.33201528j, 1.71428203e-01...00000e+00+0.j , 0.00000000e+00+0.j ,
0.00000000e+00+0.j , -3.74523616e-02-0.90072693j]])
AAA = array([[-7.10397232e-02-1.70850021j, 3.12278871e-01-1.06902687j,
-8.63760044e-02+0.33201528j, 1.71428203e-01...00000e+00+0.j , 0.00000000e+00+0.j ,
0.00000000e+00+0.j , -3.74523616e-02-0.90072693j]])
B = array([[-0.89442719+0.j, 0.2 +0.j, 0. +0.j,
0.8 +0.j],
[ 0. +0.j, 0. ... +1.j,
0. +3.j],
[-0.4472136 +0.j, -0.4 +0.j, 0. +0.j,
-1.6 +0.j]])
BB = array([[ 0.44354812+0.j , 0.01468746-0.54501991j,
-0.15871956-0.18001502j, -0.28710478-0.20249531j],
...,
[ 0. +0.j , 0. +0.j ,
0. +0.j , 3.47550267+0.j ]])
BBB = array([[ 0.44354812+0.j , 0.01468746-0.54501991j,
-0.15871956-0.18001502j, -0.28710478-0.20249531j],
...,
[ 0. +0.j , 0. +0.j ,
0. +0.j , 3.47550267+0.j ]])
Q = array([[ 0.16411975+0.36420256j, 0.16468311-0.66753067j,
0.0487594 +0.53361076j, 0.27584563-0.06704325j],
...,
[ 0.81111669-0.25237404j, 0.34841715+0.00499782j,
-0.21637274+0.01599881j, -0.32979968+0.03371478j]])
QQ = array([[ 0.16411975+0.36420256j, 0.16468311-0.66753067j,
0.0487594 +0.53361076j, 0.27584563-0.06704325j],
...,
[ 0.81111669-0.25237404j, 0.34841715+0.00499782j,
-0.21637274+0.01599881j, -0.32979968+0.03371478j]])
Z = array([[-0.22600352-0.09442586j, -0.40839853+0.83363425j,
0.02729662-0.27666504j, -0.02855211+0.01291543j],
...,
[ 0.04076888-0.03599349j, 0.01877738+0.09089588j,
0.17864587+0.14299258j, 0.96750419+0.00145825j]])
ZZ = array([[-0.22600352-0.09442586j, -0.40839853+0.83363425j,
0.02729662-0.27666504j, -0.02855211+0.01291543j],
...,
[ 0.04076888-0.03599349j, 0.01877738+0.09089588j,
0.17864587+0.14299258j, 0.96750419+0.00145825j]])
_ = array([0., 0.])
ab = [array([-0.07103972-1.70850021j, 2.08799599+0.08681918j,
0.83220055+0.03460303j, -0.03745236-0.90072693j]), array([0.44354812+0.j, 0.93986706+0.j, 1.85200196+0.j, 3.47550267+0.j])]
alpha = array([-0.07103972-1.70850021j, 2.08799599+0.08681918j,
0.83220055+0.03460303j, -0.03745236-0.90072693j])
beta = array([0.44354812+0.j, 0.93986706+0.j, 1.85200196+0.j, 3.47550267+0.j])
check_finite = False
info = 1
lwork = 1
output = 'complex'
overwrite_a = True
overwrite_b = True
select = array([False, False, True, True])
sfunction = <function _iuc at 0x105f2fe20>
sort = 'iuc'
tgsen = <fortran function ztgsen>
typ = 'z'
____________ TestSolveDiscreteAre.test_solve_discrete_are[1-case1] _____________
scipy/linalg/tests/test_solvers.py:555: in test_solve_discrete_are
x = solve_discrete_are(a, b, q, r)
a = array([[ 2, 1],
[ 0, -1]])
atol = 1.5e-14
b = array([[-0.-2.j],
[ 0.+1.j]])
case = (array([[ 2, 1],
[ 0, -1]]), array([[-0.-2.j],
[ 0.+1.j]]), array([[1, 0],
[0, 2]]), array([[1]]), None)
j = 1
knownfailure = None
q = array([[1, 0],
[0, 2]])
r = array([[1]])
self = <scipy.linalg.tests.test_solvers.TestSolveDiscreteAre object at 0x1164919d0>
scipy/linalg/_solvers.py:711: in solve_discrete_are
_, _, _, _, _, u = ordqz(H, J, sort='iuc',
H = array([[ 8.00000000e-01-1.63299316e-01j, -5.00000000e-01+4.16333634e-17j,
0.00000000e+00+0.00000000e+00j, 0....0000e-01j, 5.55111512e-17-5.00000000e-01j,
0.00000000e+00+0.00000000e+00j, 0.00000000e+00+0.00000000e+00j]])
J = array([[ 0.4 -0.08164966j, 0.9 -0.08164966j,
-0.2 -0.16329932j, 0.1 +0.08164966j],
...,
[-0.08164966-0.4j , -0.08164966+0.1j ,
-0.16329932-1.8j , 0.08164966+0.9j ]])
M = array([[0., 1., 0., 0., 2.],
[0., 0., 0., 0., 1.],
[1., 0., 0., 0., 0.],
[0., 2., 1., 0., 0.],
[0., 0., 2., 1., 0.]])
_ = array([[-2.44948974+0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j],
[ 0. +0.j]])
a = array([[ 2, 1],
[ 0, -1]])
b = array([[-0.-2.j],
[ 0.+1.j]])
balanced = True
e = None
gen_are = False
m = 2
n = 1
out_str = 'complex'
q = array([[1, 0],
[0, 2]])
q_of_qr = array([[ 0. +0.81649658j, 0.4 +0.08164966j,
0. +0.j , 0. +0.j ,
..., 0.08164966+0.1j ,
0. +0.j , 0. +0.j ,
0.9 +0.08164966j]])
r = array([[1]])
r_or_c = <class 'complex'>
s = None
sca = array([1., 1., 1., 1., 1.])
scipy/linalg/_decomp_qz.py:443: in ordqz
raise ValueError("Reordering of (A, B) failed because the transformed"
E ValueError: Reordering of (A, B) failed because the transformed matrix pair (A, B) would be too far from generalized Schur form; the problem is very ill-conditioned. (A, B) may have been partially reordered.
A = array([[ 8.00000000e-01-1.63299316e-01j, -5.00000000e-01+4.16333634e-17j,
0.00000000e+00+0.00000000e+00j, 0....0000e-01j, 5.55111512e-17-5.00000000e-01j,
0.00000000e+00+0.00000000e+00j, 0.00000000e+00+0.00000000e+00j]])
AA = array([[ 1.58676422+7.49468299e-09j, 0.1421515 -1.17082813e-02j,
0.17214164+1.41770428e-02j, -0.51565533+3.3... +0.00000000e+00j, 0. +0.00000000e+00j,
0. +0.00000000e+00j, -0.39211119+6.15881954e-10j]])
AAA = array([[ 1.58676422+7.49468299e-09j, 0.1421515 -1.17082813e-02j,
0.17214164+1.41770428e-02j, -0.51565533+3.3... +0.00000000e+00j, 0. +0.00000000e+00j,
0. +0.00000000e+00j, -0.39211119+6.15881954e-10j]])
B = array([[ 0.4 -0.08164966j, 0.9 -0.08164966j,
-0.2 -0.16329932j, 0.1 +0.08164966j],
...,
[-0.08164966-0.4j , -0.08164966+0.1j ,
-0.16329932-1.8j , 0.08164966+0.9j ]])
BB = array([[ 0.5367807 +0.j , -0.6453627 +0.05315517j,
0.21704002+0.01787474j, -0.47913004+0.00313801j],
...,
[ 0. +0.j , 0. +0.j ,
0. +0.j , 1.37608033+0.j ]])
BBB = array([[ 0.5367807 +0.j , -0.6453627 +0.05315517j,
0.21704002+0.01787474j, -0.47913004+0.00313801j],
...,
[ 0. +0.j , 0. +0.j ,
0. +0.j , 1.37608033+0.j ]])
Q = array([[-0.52009437+9.68339426e-02j, 0.1623042 -1.72543400e-02j,
0.27425365-7.61957212e-02j, 0.7820421 -2.9...96958+4.37351971e-01j, 0.00573617+1.22532925e-01j,
-0.0397754 -7.07790119e-01j, -0.0231188 +5.30273021e-01j]])
QQ = array([[-0.52009437+9.68339426e-02j, 0.1623042 -1.72543400e-02j,
0.27425365-7.61957212e-02j, 0.7820421 -2.9...96958+4.37351971e-01j, 0.00573617+1.22532925e-01j,
-0.0397754 -7.07790119e-01j, -0.0231188 +5.30273021e-01j]])
Z = array([[-0.9492084 -0.00155604j, -0.13500154+0.01089659j,
0.27259685+0.02290018j, 0.07631024-0.00037469j],
...,
[ 0.21076645+0.00034551j, -0.77583215+0.06262098j,
0.18904378+0.0158811j , 0.56012783-0.00275026j]])
ZZ = array([[-0.9492084 -0.00155604j, -0.13500154+0.01089659j,
0.27259685+0.02290018j, 0.07631024-0.00037469j],
...,
[ 0.21076645+0.00034551j, -0.77583215+0.06262098j,
0.18904378+0.0158811j , 0.56012783-0.00275026j]])
_ = array([0., 0.])
ab = [array([ 1.58676422+7.49468299e-09j, -1.97656026-9.85834371e-09j,
0.66393062+5.57216350e-10j, -0.39211119+6.15881954e-10j]), array([0.5367807 +0.j, 0.56321661+0.j, 1.96262889+0.j, 1.37608033+0.j])]
alpha = array([ 1.58676422+7.49468299e-09j, -1.97656026-9.85834371e-09j,
0.66393062+5.57216350e-10j, -0.39211119+6.15881954e-10j])
beta = array([0.5367807 +0.j, 0.56321661+0.j, 1.96262889+0.j, 1.37608033+0.j])
check_finite = False
info = 1
lwork = 1
output = 'complex'
overwrite_a = True
overwrite_b = True
select = array([False, False, True, True])
sfunction = <function _iuc at 0x105f2fe20>
sort = 'iuc'
tgsen = <fortran function ztgsen>
typ = 'z'
____________ TestSolveDiscreteAre.test_solve_discrete_are[2-case2] _____________
scipy/linalg/tests/test_solvers.py:555: in test_solve_discrete_are
x = solve_discrete_are(a, b, q, r)
a = array([[ 3, 1],
[ 0, -1]])
atol = 1.5000000000000002e-13
b = array([[1, 2],
[1, 3]])
case = (array([[ 3, 1],
[ 0, -1]]), array([[1, 2],
[1, 3]]), array([[1.+0.j, 1.+1.j],
[1.-1.j, 2.+0.j]]), array([[ 2.+0.j, -0.-2.j],
[ 0.+2.j, 3.+0.j]]), None)
j = 2
knownfailure = None
q = array([[1.+0.j, 1.+1.j],
[1.-1.j, 2.+0.j]])
r = array([[ 2.+0.j, -0.-2.j],
[ 0.+2.j, 3.+0.j]])
self = <scipy.linalg.tests.test_solvers.TestSolveDiscreteAre object at 0x116491a90>
scipy/linalg/_solvers.py:711: in solve_discrete_are
_, _, _, _, _, u = ordqz(H, J, sort='iuc',
H = array([[-1. +0.j , -1. -1.j ,
1. +0.j , 0. +0.j ],
...,
[ 0.20569929-1.63461765j, 0.3211582 -0.97011368j,
0. +0.j , 0. +0.j ]])
J = array([[ 0. +0.j , 0. +0.j ,
3. +0.j , 0. +0.j ],
...,
[ 0.06856643-0.54487255j, -0.25259177+0.42524113j,
-1.09208177+0.44510124j, -1.5930928 +0.44705419j]])
M = array([[0. , 1. , 0. , 0. , 1. ,
2. ],
[0. , 0. ... ,
2. ],
[0. , 0. , 2. , 3. , 2. ,
0. ]])
_ = array([[-3.16227766+0.j , -1.58113883+3.16227766j],
[ 0. +0.j , -3.67423461+0.j ],
...
[ 0. +0.j , 0. +0.j ],
[ 0. +0.j , 0. +0.j ]])
a = array([[ 3, 1],
[ 0, -1]])
b = array([[1, 2],
[1, 3]])
balanced = True
e = None
gen_are = False
m = 2
n = 2
out_str = 'complex'
q = array([[1.+0.j, 1.+1.j],
[1.-1.j, 2.+0.j]])
q_of_qr = array([[-0.31622777+0.00000000e+00j, -0.40824829-2.72165527e-01j,
0. +0.00000000e+00j, 0. +0.0... +0.00000000e+00j, 0. +0.00000000e+00j,
0.06375643-4.43588890e-01j, 0.50101103+1.95295803e-03j]])
r = array([[ 2.+0.j, -0.-2.j],
[ 0.+2.j, 3.+0.j]])
r_or_c = <class 'complex'>
s = None
sca = array([1., 1., 1., 1., 1., 1.])
scipy/linalg/_decomp_qz.py:443: in ordqz
raise ValueError("Reordering of (A, B) failed because the transformed"
E ValueError: Reordering of (A, B) failed because the transformed matrix pair (A, B) would be too far from generalized Schur form; the problem is very ill-conditioned. (A, B) may have been partially reordered.
A = array([[-1. +0.j , -1. -1.j ,
1. +0.j , 0. +0.j ],
...,
[ 0.20569929-1.63461765j, 0.3211582 -0.97011368j,
0. +0.j , 0. +0.j ]])
AA = array([[-3.24003744e+00+1.86189928j, 7.93552909e-01-0.98794763j,
5.33700456e-01+0.21957625j, 1.10769145e-01...00000e+00+0.j , 0.00000000e+00+0.j ,
0.00000000e+00+0.j , 7.38372643e-01+0.42430842j]])
AAA = array([[-3.24003744e+00+1.86189928j, 7.93552909e-01-0.98794763j,
5.33700456e-01+0.21957625j, 1.10769145e-01...00000e+00+0.j , 0.00000000e+00+0.j ,
0.00000000e+00+0.j , 7.38372643e-01+0.42430842j]])
B = array([[ 0. +0.j , 0. +0.j ,
3. +0.j , 0. +0.j ],
...,
[ 0.06856643-0.54487255j, -0.25259177+0.42524113j,
-1.09208177+0.44510124j, -1.5930928 +0.44705419j]])
BB = array([[ 0.1654115 +0.j , 0.76025409-0.1196224j ,
0.08626651+0.5108741j , 0.71504967+1.55967496j],
...,
[ 0. +0.j , 0. +0.j ,
0. +0.j , 1.64829099+0.j ]])
BBB = array([[ 0.1654115 +0.j , 0.76025409-0.1196224j ,
0.08626651+0.5108741j , 0.71504967+1.55967496j],
...,
[ 0. +0.j , 0. +0.j ,
0. +0.j , 1.64829099+0.j ]])
Q = array([[ 4.04583646e-01+0.13673296j, -2.94495836e-01-0.10758867j,
3.49062840e-01+0.21682687j, 5.34336726e-01...54667e-05+0.45475904j, 1.12393403e-01+0.40937666j,
-6.09977155e-01+0.1984095j , 4.38529899e-01-0.09605064j]])
QQ = array([[ 4.04583646e-01+0.13673296j, -2.94495836e-01-0.10758867j,
3.49062840e-01+0.21682687j, 5.34336726e-01...54667e-05+0.45475904j, 1.12393403e-01+0.40937666j,
-6.09977155e-01+0.1984095j , 4.38529899e-01-0.09605064j]])
Z = array([[ 0.37212613-0.33690954j, -0.80378078+0.31525732j,
-0.01933321-0.00574885j, 0.01805493+0.04278538j],
...,
[-0.07264167+0.05215268j, -0.07322417+0.05237262j,
0.85722292-0.13690501j, -0.45281572-0.15900402j]])
ZZ = array([[ 0.37212613-0.33690954j, -0.80378078+0.31525732j,
-0.01933321-0.00574885j, 0.01805493+0.04278538j],
...,
[-0.07264167+0.05215268j, -0.07322417+0.05237262j,
0.85722292-0.13690501j, -0.45281572-0.15900402j]])
_ = array([0., 0.])
ab = [array([-3.24003744+1.86189928j, 1.0838564 +0.62284186j,
-0.11254744+0.06467578j, 0.73837264+0.42430842j]), array([0.1654115 +0.j, 0.64586103+0.j, 2.93255115+0.j, 1.64829099+0.j])]
alpha = array([-3.24003744+1.86189928j, 1.0838564 +0.62284186j,
-0.11254744+0.06467578j, 0.73837264+0.42430842j])
beta = array([0.1654115 +0.j, 0.64586103+0.j, 2.93255115+0.j, 1.64829099+0.j])
check_finite = False
info = 1
lwork = 1
output = 'complex'
overwrite_a = True
overwrite_b = True
select = array([False, False, True, True])
sfunction = <function _iuc at 0x105f2fe20>
sort = 'iuc'
tgsen = <fortran function ztgsen>
typ = 'z'
=========================== short test summary info ============================
FAILED scipy/linalg/tests/test_decomp.py::TestEig::test_make_eigvals - Assert...
FAILED scipy/linalg/tests/test_decomp.py::TestOrdQZ::test_lhp - AssertionError:
FAILED scipy/linalg/tests/test_decomp.py::TestOrdQZ::test_rhp - AssertionError:
FAILED scipy/linalg/tests/test_decomp.py::TestOrdQZ::test_iuc - AssertionError:
FAILED scipy/linalg/tests/test_decomp.py::TestOrdQZ::test_ouc - AssertionError:
FAILED scipy/linalg/tests/test_decomp.py::TestOrdQZ::test_ref - AssertionError:
FAILED scipy/linalg/tests/test_decomp.py::TestOrdQZ::test_cef - AssertionError:
FAILED scipy/linalg/tests/test_decomp.py::TestOrdQZ::test_sort_explicit - Val...
FAILED scipy/linalg/tests/test_decomp.py::TestOrdQZWorkspaceSize::test_decompose
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_sqr_1_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_sqr_p_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_sqr_1_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_tall_1_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_tall_p_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_tall_1_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_fat_1_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_fat_p_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_fat_1_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_economic_1_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_economic_p_row_economic
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_economic_p_row_sqr
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_economic_p_row_fat
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_economic_1_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_Mx1_1_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_Mx1_p_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_non_unit_strides_1_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_non_unit_strides_p_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_non_unit_strides_1_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_neg_strides_1_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_neg_strides_p_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_neg_strides_1_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_non_itemize_strides_1_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_non_itemize_strides_p_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_non_itemize_strides_1_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_non_native_byte_order_1_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_non_native_byte_order_p_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_non_native_byte_order_1_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_neg_k
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_overwrite_qr_1_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_overwrite_economic_qr_1_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_overwrite_qr_1_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_overwrite_qr_p_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRdelete_D::test_overwrite_economic_qr_p_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_sqr_1_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_sqr_1_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_sqr_p_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_tall_1_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_tall_1_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_tall_p_col_tall
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_tall_p_col_sqr
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_tall_p_col_fat
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_fat_1_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_fat_1_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_fat_p_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_economic_1_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_economic_1_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_economic_p_col_eco
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_economic_p_col_sqr
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_economic_p_col_fat
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_Mx1_1_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_Mx1_1_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_Mx1_p_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_Mx1_economic_1_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_Mx1_economic_1_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_Mx1_economic_p_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_1xN_1_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_1x1_1_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_non_unit_strides_1_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_non_unit_strides_1_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_non_unit_strides_p_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_neg_strides_1_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_neg_strides_1_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_neg_strides_p_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_non_itemsize_strides_1_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_non_itemsize_strides_1_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_non_itemsize_strides_p_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_non_native_byte_order_1_row
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_non_native_byte_order_1_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_non_native_byte_order_p_col
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_overwrite_qu_rank_1
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRinsert_D::test_overwrite_qu_rank_p
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_sqr_rank_1
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_sqr_rank_p
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_tall_rank_1
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_tall_rank_p
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_fat_rank_1
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_fat_rank_p
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_economic_rank_1
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_economic_rank_p
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_Mx1_rank_1
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_Mx1_rank_p
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_Mx1_economic_rank_1
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_Mx1_economic_rank_p
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_non_unit_strides_rank_1
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_non_unit_strides_economic_rank_1
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_non_unit_strides_rank_p
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_non_unit_strides_economic_rank_p
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_neg_strides_rank_1
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_neg_strides_economic_rank_1
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_neg_strides_rank_p
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_neg_strides_economic_rank_p
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_non_itemsize_strides_rank_1
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_non_itemsize_strides_economic_rank_1
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_non_itemsize_strides_rank_p
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_non_itemsize_strides_economic_rank_p
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_non_native_byte_order_rank_1
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_non_native_byte_order_economic_rank_1
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_non_native_byte_order_rank_p
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_non_native_byte_order_economic_rank_p
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_overwrite_qruv_rank_1
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_overwrite_qruv_rank_1_economic
FAILED scipy/linalg/tests/test_decomp_update.py::TestQRupdate_D::test_overwrite_qruv_rank_p
FAILED scipy/linalg/tests/test_lapack.py::test_gees_trexc[complex128] - Asser...
FAILED scipy/linalg/tests/test_lapack.py::test_gges_tgexc[complex128] - Asser...
FAILED scipy/linalg/tests/test_lapack.py::test_gees_trsen[complex128] - Asser...
FAILED scipy/linalg/tests/test_lapack.py::test_gges_tgsen[complex128] - Asser...
FAILED scipy/linalg/tests/test_solvers.py::TestSolveDiscreteAre::test_solve_discrete_are[0-case0]
FAILED scipy/linalg/tests/test_solvers.py::TestSolveDiscreteAre::test_solve_discrete_are[1-case1]
FAILED scipy/linalg/tests/test_solvers.py::TestSolveDiscreteAre::test_solve_discrete_are[2-case2]
= 119 failed, 5722 passed, 273 skipped, 7 deselected, 13 xfailed, 2 xpassed in 42.39s =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment