Back to LAPACK/BLAS
la.leastSquares.lstsqGelsy
Solve a least squares problem using QR with column pivoting.
Syntax
la.leastSquares.lstsqGelsy(A, b, options?)
Description
Solve a least squares problem using QR with column pivoting. Computes the minimum-norm solution to: minimize ||Ax - b||_2 using a complete orthogonal factorization of A. This method is generally faster than SVD-based methods for rank-deficient problems.
Parameters
| Name | Description |
|---|---|
| A | - Coefficient matrix (m × n) |
| b | - Right-hand side vector/matrix (m × nrhs) |
| options(optional) | - Computation options |
Returns
LstSqGelsyResult