Least Squares Pseudo Inverse. I have been struggling with the SVD and Moore-Penrose pseudoinvers