From a334de1633568423e105543e2486511293ae51ae Mon Sep 17 00:00:00 2001 From: Bas Nijholt <basnijholt@gmail.com> Date: Fri, 14 Dec 2018 12:19:09 +0000 Subject: [PATCH] use the shift-inverse method for finding sparse eigenvalues in tutorial --- doc/source/code/figure/closed_system.py.diff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/code/figure/closed_system.py.diff b/doc/source/code/figure/closed_system.py.diff index d70b1cc7..1eb0080c 100644 --- a/doc/source/code/figure/closed_system.py.diff +++ b/doc/source/code/figure/closed_system.py.diff @@ -71,7 +71,7 @@ ham_mat = syst.hamiltonian_submatrix(args=[B], sparse=True) # we only calculate the 15 lowest eigenvalues - ev = sla.eigsh(ham_mat, k=15, which='SM', return_eigenvectors=False) + ev = sla.eigsh(ham_mat, k=15, sigma=0, return_eigenvectors=False) energies.append(ev) -- GitLab