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