SciPy - Sparse Linear Algebra
What is the error in the following code snippet?
import numpy as np from scipy.sparse.linalg import eigs D = np.array([[1, 2], [3, 4]]) vals, vecs = eigs(D, k=3) print(vals)
