Developer Reference

  • 2022.1
  • 12/20/2021
  • Public Content
Contents

?gels function

Uses
QR
or
LQ
factorization to solve an overdetermined or underdetermined linear system with full rank matrix.

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);

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.