Returns a least squares minimum residual method with specified options.
- iOS 11+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 11+
- watchOS 4+
The LSMR options to use when creating the LSMR method.
Sparse structure representing a default LSMR Method.
LSMR is MINRES specialized for solving least squares. Use LSMR to solve equations of the form Ax = b where an exact solution does not exist. The returned solution minimizes ‖ b-Ax ‖₂.
Although LSMR is equivalent to MINRES applied to the normal equations AᵀAx = Aᵀb in exact arithmetic, it has superior numerical behavior and is preferred. Due to the implicit squaring of the condition of A in the normal equations, LSMR may struggle to converge in single precision, and double precision arithmetic is recommended.