SciPy - Sparse Matrices (scipy.sparse)
What will be the output of the following code?
import numpy as np from scipy.sparse import csc_matrix from scipy.sparse.linalg import spsolve A = csc_matrix([[5, 0], [0, 10]]) b = np.array([10, 20]) x = spsolve(A, b) print(x)
