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

Avoid unnecessary matrix inversions #73

Closed
ilopezgp opened this issue Aug 5, 2020 · 0 comments
Closed

Avoid unnecessary matrix inversions #73

ilopezgp opened this issue Aug 5, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ilopezgp
Copy link
Contributor

ilopezgp commented Aug 5, 2020

There are several instances of matrix inversion in the source code where it is only necessary to perform a linear solve.

Matrix inversion is more expensive and less accurate than linear solvers, so all these instances should be deleted.

@ilopezgp ilopezgp added the enhancement New feature or request label Aug 5, 2020
@ilopezgp ilopezgp self-assigned this Aug 5, 2020
bors bot added a commit that referenced this issue Aug 11, 2020
74: Substitute unnecessary matrix inversion, use linear solve instead. r=ilopezgp a=ilopezgp

This PR solves issue #73 . Inverting the observational covariance matrix is not necessary, a linear solve can be used instead. The linear solve is faster and more accurate, which can be important when the observational covariance matrix is large or ill-conditioned. 

Co-authored-by: ilopezgp <ilopezgp@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant