Repository navigation
fix(lsmr): normalize each vector by its own norm, never through 1/x - #403
Merged
Merged
Conversation
schroedk
added this pull request to stack #402
September 23, 2026 17:07
schroedk
force-pushed
the
fix/lsmr-normalize
branch
2 times, most recently
from
September 24, 2026 09:47
fee7be6 to
3532b03
Compare
schroedk
removed this pull request from stack #402
September 24, 2026 09:48
schroedk
added this pull request to stack #407
September 24, 2026 09:48
schroedk
force-pushed
the
fix/lsmr-normalize
branch
from
September 24, 2026 11:31
3532b03 to
f627853
Compare
A subnormal α, β or ‖b‖ has no normal reciprocal, and ‖A‖ = f64::MAX leaves 1/α₁ subnormal, so `v *= 1/α` failed or zeroed the basis vector. `normalize` divides when the reciprocal leaves the range (`drscl`), at every stream site: init/restart, both steps, the MGK ring and its p̃ update, which divides p̃ by α first when β/α itself leaves the range (`dlascl`).
schroedk
force-pushed
the
fix/lsmr-normalize
branch
from
September 24, 2026 12:16
f627853 to
82bb448
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack 3/5 (extreme scales), based on #395.
1/xleaves the range (drscl): a subnormalα,βor‖b‖, or‖A‖ = f64::MAX(subnormal1/α₁), no longer fails withInvalidInputor zeroes the vector.p̃update dividesp̃byαfirst whenβ/αleaves the range (dlascl); the reorthogonalization ring storesp̃ / αthe same way.Tests:
tests/range.rs(subnormal gradient, subnormal rhs, top-of-range operator); all fail on main.