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

refactor inv to also work for lu #1267

Merged
merged 4 commits into from
Jul 2, 2024
Merged

refactor inv to also work for lu #1267

merged 4 commits into from
Jul 2, 2024

Conversation

lxvm
Copy link
Contributor

@lxvm lxvm commented Jun 26, 2024

This pr refactors the inv code so that inv(::StaticArrays.LU) behaves like inv(::LinearAlgebra.LU), allowing the construction of the inverse from the LU factorization. I'm not sure if I handled inlining correctly and I would be happy to implement any feedback.

Copy link
Collaborator

@mateuszbaran mateuszbaran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Could you just bump patch version?

@lxvm
Copy link
Contributor Author

lxvm commented Jul 2, 2024

Thank you. I bumped the version, rebased onto master, and made sure to throw an error like LinearAlgebra.jl does when trying to take the inverse of a non-square factorization

@mateuszbaran mateuszbaran merged commit 778a563 into JuliaArrays:master Jul 2, 2024
20 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants