I need to do a pseudo-inverse(np.linalg.pinv) for each (6,4) in (5,4,6,4). However, I didn't find the designed module to solve this problem and I don't want to use the inefficient for loop. What should I do with it?
I think this would be a common problem when we are handling some huge size data... But I have no such experience.
Update: My numpy version is 1.13, python 2.7.13. It doesn't support stacks of matrix.