Created
October 6, 2011 13:57
-
-
Save suminb/1267455 to your computer and use it in GitHub Desktop.
Pseudoinverse of a matrix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from numpy import inv, transpose | |
def pseudoinverse(U): | |
return inv(transpose(U) * U) * transpose(U) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment