Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Scipy provides methods to calculate a generalized inverse (linalg.pinv , linalg.pinv2, linalg.pinvh)

from scipy import linalg
M = matrix(4,1,(1,2,2,1))
matrix(linalg.pinv2(M))