SciPy - Sparse Matrices (scipy.sparse)
What will the following code print?
import numpy as np from scipy.sparse import csc_matrix from scipy.sparse.linalg import spsolve A = csc_matrix([[1, 2], [3, 4]]) b = np.array([5, 11]) x = spsolve(A, b) print(np.round(x, 2))
