fn
lapack_lstsq_f32
void lapack_lstsq_f32(const float * A, float * B, int m, int n, int nrhs, int * info)Single-precision least-squares solver via QR.
Computes the minimum-2-norm solution of an overdetermined system:
For tall (m ≥ n) uses QR; for wide (m < n) uses LQ. B is
overwritten with in its leading rows.
References
LAPACK sgels_.
Parameters
Aconst float*Row-major input.
Bfloat*Row-major right-hand side; overwritten by .
m, n, nrhsintSystem dimensions.
infoint*LAPACK status word.