SciPy - Sparse Linear Algebra
What will be the output of the following code snippet?
import numpy as np from scipy.sparse.linalg import cg A = np.array([[4,1],[1,3]]) b = np.array([1,2]) x, info = cg(A, b) print(np.round(x, 2))
