scipy.linalg.cg is DEPRECATED!! – use scipy.sparse.linalg.cg instead
Use Conjugate Gradient iteration to solve A x = b
A : {sparse matrix, dense matrix, LinearOperator}
The N-by-N matrix of the linear system.
b : {array, matrix}
Right hand side of the linear system. Has shape (N,) or (N,1).
scipy.linalg.funm
scipy.linalg.cgs