Skip to content

Conversation

@f0uriest
Copy link
Contributor

@f0uriest f0uriest commented Feb 8, 2026

As discussed in #193, LSMR currently has a bug where it will fail if the initial residual is exactly zero (such as because vector is exactly zero or lies in the null space of A). This adds a check to shortcut the loop in that case to avoid division by zero.

@patrick-kidger
Copy link
Owner

Thank you very much for finding this! This is awesome.

I've also just pushed to main fixes for a collection of unrelated test failures. (Which are the reason the checks here are red at the moment.) Can you rebase this PR on main?

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