arvoelke/nengolib

Use pinv for Moore-Penrose inverse

Opened this issue · 0 comments

https://docs.scipy.org/doc/numpy/reference/generated/numpy.linalg.pinv.html

def inverse_basis(self, t=t_default):
"""Moore-Penrose pseudoinverse of the basis functions."""
B = self.basis(t)
return inv(B.T.dot(B)).dot(B.T)