First time here? Check out the FAQ!
answered 2016-10-26 00:22:41 +0100
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))