ToolPythonIntermediate Poisson's equation with scipy.sparse: two plates in a grounded box D = sp.diags_array([1.0, -2.0, 1.0], offsets=[-1, 0, 1], shape=(N, N)) / h**2
ToolPythonIntermediate Sparse eigenvalues with scipy.sparse.linalg.eigsh: the tones of a drum return sp.diags_array([1.0, -2.0, 1.0], offsets=[-1, 0, 1], shape=(n, n)) / h**2