Skip to content

Commit aad265b

Browse files
committed
test: change A matrix
1 parent 7de35b3 commit aad265b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

unittest/python/test_MINRES.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44
import numpy.linalg as la
55

66
dim = 100
7-
A = np.random.rand(dim,dim)
8-
9-
A = (A + A.T)*0.5 + np.diag(10. + np.random.rand(dim))
7+
A = np.eye(dim)
108

119
minres = eigenpy.MINRES(A)
1210

1311
X = np.random.rand(dim,20)
1412
B = A.dot(X)
1513
X_est = minres.solve(B)
16-
assert eigenpy.is_approx(A.dot(X_est),B)
14+
assert eigenpy.is_approx(A.dot(X_est),B,1e-6)

0 commit comments

Comments
 (0)