Skip to content
Snippets Groups Projects
Verified Commit aad265bb authored by Justin Carpentier's avatar Justin Carpentier
Browse files

test: change A matrix

parent 7de35b3d
No related branches found
No related tags found
No related merge requests found
Pipeline #15559 passed with warnings
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment