SciPy - Sparse Linear Algebra
Identify the issue in this code snippet:
from scipy.sparse.linalg import cg import numpy as np A = np.array([[4,1],[1,3]]) b = np.array([1,2]) x, info = cg(A, b) print(x)
