## "Fossies" - the Fresh Open Source Software Archive

### Source code changes of the file "mpmath/tests/test_eigen.py" betweenmpmath-0.19.tar.gz and mpmath-1.0.0.tar.gz

About: mpmath is a Python library for arbitrary-precision floating-point arithmetic.

test_eigen.py  (mpmath-0.19):test_eigen.py  (mpmath-1.0.0)
skipping to change at line 148 skipping to change at line 148
A *= 10 A *= 10
for x in xrange(n): for x in xrange(n):
for y in xrange(n): for y in xrange(n):
A[x,y] = int(mp.re(A[x,y])) + 1j * int(mp.im(A[x,y])) A[x,y] = int(mp.re(A[x,y])) + 1j * int(mp.im(A[x,y]))
run_hessenberg(A, verbose = v) run_hessenberg(A, verbose = v)
run_schur(A, verbose = v) run_schur(A, verbose = v)
run_eig(A, verbose = v) run_eig(A, verbose = v)
def test_eig(): def test_eig():
v = 0 v = 0
AS = [] AS = []
A = mp.matrix([[2, 1, 0], # jordan block of size 3 A = mp.matrix([[2, 1, 0], # jordan block of size 3
[0, 2, 1], [0, 2, 1],
[0, 0, 2]]) [0, 0, 2]])
AS.append(A) AS.append(A)
AS.append(A.transpose()) AS.append(A.transpose())
A = mp.matrix([[2, 0, 0], # jordan block of size 2 A = mp.matrix([[2, 0, 0], # jordan block of size 2
[0, 2, 1], [0, 2, 1],
[0, 0, 2]]) [0, 0, 2]])
AS.append(A) AS.append(A)
AS.append(A.transpose()) AS.append(A.transpose())
A = mp.matrix([[2, 0, 1], # jordan block of size 2 A = mp.matrix([[2, 0, 1], # jordan block of size 2
[0, 2, 0], [0, 2, 0],
[0, 0, 2]]) [0, 0, 2]])
AS.append(A) AS.append(A)
AS.append(A.transpose()) AS.append(A.transpose())
A= mp.matrix([[0, 0, 1], # cyclic A= mp.matrix([[0, 0, 1], # cyclic
[1, 0, 0], [1, 0, 0],
[0, 1, 0]]) [0, 1, 0]])
AS.append(A) AS.append(A)
AS.append(A.transpose()) AS.append(A.transpose())
for A in AS: for A in AS:
run_hessenberg(A, verbose = v) run_hessenberg(A, verbose = v)
run_schur(A, verbose = v) run_schur(A, verbose = v)
run_eig(A, verbose = v) run_eig(A, verbose = v)
End of changes. 2 change blocks.
2 lines changed or deleted 2 lines changed or added