Skip to content

Commit 1e6fc64

Browse files
committed
Calculate smallest eigenvalues
1 parent f91703c commit 1e6fc64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

advanced/scipy_sparse/examples/lobpcg_sakurai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def sakurai(n):
4545
data = []
4646
tt = time.time()
4747
eigs, vecs, resnh = sp.sparse.linalg.lobpcg(
48-
A, X, B, tol=1e-6, maxiter=500, retResidualNormsHistory=1
48+
A, X, B, tol=1e-6, largest=False, maxiter=500, retResidualNormsHistory=1,
4949
)
5050
data.append(time.time() - tt)
5151
print("Results by LOBPCG for n=" + str(n))

0 commit comments

Comments
 (0)