cultmath: BoundedLeastSquares drops the refinement step it cannot observe
Stryker left the refinement step (removed, negated, or subtracted) unobserved, and it is unobservable for a reason: refinement with a same-precision residual does not improve forward error, and Cholesky is backward stable, so the residual the KKT test reads is already at rounding level. Measured on n=24 problems at cond(A) 1e3..1e6, the solver with and without the step gives the same iteration counts and the same x error against a Gram-Schmidt QR reference (both limited by cond(A^T A) * eps). The refinement pass, its dp buffer and the scratch vector are deleted; WorkspaceLength returns to 4n^2 + 15n. The doc states where the normal equations stop being optimal (cost gap below 1e-6 |b|^2 through cond(A) 3e5, about 2e-5 at 1e6, independent of the scale of A) and that a ridge row beyond that is the caller's policy. status is now initialised: the unassigned local made Stryker discard every mutant inside Solve as a compile error, so 255 mutants were never measured. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
6982adfaaf
commit
4072fce0e7
2 changed files with 22 additions and 34 deletions
|
|
@ -856,8 +856,8 @@ public sealed class BoundedLeastSquaresTests
|
|||
}
|
||||
}
|
||||
|
||||
// A duplicate column that is free and interior is stepped by neither the factor nor the refinement: the columns
|
||||
// share one gradient, and moving both along it would overshoot.
|
||||
// A duplicate column that is free and interior gets no step: the columns share one gradient, and moving both
|
||||
// along it would overshoot.
|
||||
[Fact]
|
||||
public void FreeDuplicateColumnGetsNoStep()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue