Skip to content

Conversation

@polvalente
Copy link
Contributor

This PR refactors Nx.LinAlg.lu for correctness.

closes #1618

@polvalente polvalente self-assigned this Jul 18, 2025
@polvalente polvalente marked this pull request as ready for review July 18, 2025 04:12
@polvalente polvalente merged commit 1b439bc into main Jul 18, 2025
6 of 8 checks passed
@polvalente polvalente deleted the pv-fix/linalg-lu-impl branch July 18, 2025 04:25
@ja-b
Copy link

ja-b commented Jul 18, 2025

@polvalente thanks again for the help here! 🙏

@polvalente
Copy link
Contributor Author

@polvalente thanks again for the help here! 🙏

Sure! Thanks for reporting the bug.
I added this matrix as a regression test for both determinants and LU.

To be honest I'm not exactly sure what was causing this problem. I ended up rewriting the whole thing.

@ja-b
Copy link

ja-b commented Jul 18, 2025

I'll be on the lookout for any other weirdness should it arise, and noticed the regression test beforehand. 😄

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.

Unexpected determinant for 4X4 matrix

3 participants