Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pinv for Moore-Penrose inverse #179

Open
arvoelke opened this issue May 7, 2019 · 0 comments
Open

Use pinv for Moore-Penrose inverse #179

arvoelke opened this issue May 7, 2019 · 0 comments

Comments

@arvoelke
Copy link
Owner

arvoelke commented May 7, 2019

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant