SciPy - Sparse Linear Algebra
Identify the error in the following code snippet:
from scipy.sparse.linalg import spsolve from scipy.sparse import csr_matrix A = [[1, 0], [0, 1]] b = [1, 2] x = spsolve(A, b) print(x)
