Visible to Intel only — GUID: GUID-799B51CE-C878-44F3-83F8-E8710495292B
?gels function
Uses QR or LQ factorization to solve an overdetermined or underdetermined linear system with full rank matrix.
NOTE:
For a detailed description and reference information on this function, see the Intel® oneAPI Math Kernel Library Developer Reference.
Fortran-77 Interface
Calling from Fortran:
call sgels(trans, m, n, nrhs, a, lda, b, ldb, work, lwork, info) call dgels(trans, m, n, nrhs, a, lda, b, ldb, work, lwork, info) call cgels(trans, m, n, nrhs, a, lda, b, ldb, work, lwork, info) call zgels(trans, m, n, nrhs, a, lda, b, ldb, work, lwork, info)
Calling from C:
sgels(trans, m, n, nrhs, a, lda, b, ldb, work, lwork, info); dgels(trans, m, n, nrhs, a, lda, b, ldb, work, lwork, info); cgels(trans, m, n, nrhs, a, lda, b, ldb, work, lwork, info); zgels(trans, m, n, nrhs, a, lda, b, ldb, work, lwork, info);
C Interface
lapack_int LAPACKE_sgels(int matrix_layout, char trans, lapack_int m, lapack_int n, lapack_int nrhs, float* a, lapack_int lda, float* b, lapack_int ldb); lapack_int LAPACKE_dgels(int matrix_layout, char trans, lapack_int m, lapack_int n, lapack_int nrhs, double* a, lapack_int lda, double* b, lapack_int ldb); lapack_int LAPACKE_cgels(int matrix_layout, char trans, lapack_int m, lapack_int n, lapack_int nrhs, lapack_complex_float* a, lapack_int lda, lapack_complex_float* b, lapack_int ldb); lapack_int LAPACKE_zgels(int matrix_layout, char trans, lapack_int m, lapack_int n, lapack_int nrhs, lapack_complex_double* a, lapack_int lda, lapack_complex_double* b, lapack_int ldb);
Parent topic: Linear Least Squares (LLS) Problems