SciPy - Sparse Linear Algebra
Given the code below, what will be the output of
print(vals)?
import numpy as np from scipy.sparse.linalg import eigsh A = np.array([[2, 1], [1, 2]]) vals, vecs = eigsh(A, k=1, which='LM') print(np.round(vals, 2))
