Docs/LAPACK/BLAS/la.leastSquares.lstsqSVD
Back to LAPACK/BLAS

la.leastSquares.lstsqSVD

Solve a least squares problem using SVD.

Syntax

la.leastSquares.lstsqSVD(A, b, options?)

Description

Solve a least squares problem using SVD. Computes the minimum-norm solution to: minimize ||Ax - b||_2 This method is safe for rank-deficient matrices. Singular values below rcond * max(s) are treated as zero.

Parameters

NameDescription
A- Coefficient matrix (m × n)
b- Right-hand side vector/matrix (m × nrhs)
options(optional)- Computation options

Returns

LstSqSVDResult