Verified Commit aad265bb authored by Justin Carpentier's avatar Justin Carpentier
Browse files

test: change A matrix

parent 7de35b3d
Pipeline #15559 passed with stage
in 10 minutes and 44 seconds
......@@ -4,13 +4,11 @@ import numpy as np
import numpy.linalg as la
dim = 100
A = np.random.rand(dim,dim)
A = (A + A.T)*0.5 + np.diag(10. + np.random.rand(dim))
A = np.eye(dim)
minres = eigenpy.MINRES(A)
X = np.random.rand(dim,20)
B = A.dot(X)
X_est = minres.solve(B)
assert eigenpy.is_approx(A.dot(X_est),B)
assert eigenpy.is_approx(A.dot(X_est),B,1e-6)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment