SciPy - Sparse Linear Algebra
What will be the output of
print(np.round(vals, 3)) in the following code?import numpy as np from scipy.sparse.linalg import eigsh M = np.array([[4, 1], [1, 3]]) vals, vecs = eigsh(M, k=2, which='LA') print(np.round(vals, 3))
