Commit f0835dd9 authored by Joseph Weston's avatar Joseph Weston

use shift-invert in other instances of 'sla.eigsh' in tutorial

parent a334de16
......@@ -105,7 +105,7 @@
+
# Calculate the wave functions in the system.
ham_mat = syst.hamiltonian_submatrix(sparse=True, args=[B])
evals, evecs = sorted_eigs(sla.eigsh(ham_mat, k=20, which='SM'))
evals, evecs = sorted_eigs(sla.eigsh(ham_mat, k=20, sigma=0))
# Plot the probability density of the 10th eigenmode.
- kwant.plotter.map(syst, np.abs(evecs[:, 9])**2,
......@@ -124,7 +124,7 @@
+
# Calculate the wave functions in the system.
ham_mat = syst.hamiltonian_submatrix(sparse=True, args=[B])
evals, evecs = sorted_eigs(sla.eigsh(ham_mat, k=20, which='SM'))
evals, evecs = sorted_eigs(sla.eigsh(ham_mat, k=20, sigma=0))
# Calculate and plot the local current of the 10th eigenmode.
J = kwant.operator.Current(syst)
......
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