Skip to content
Snippets Groups Projects
Commit a334de16 authored by Bas Nijholt's avatar Bas Nijholt Committed by Joseph Weston
Browse files

use the shift-inverse method for finding sparse eigenvalues in tutorial

parent 4076779d
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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