TESTING/LIN/sgeqls.f(3)
πΈ NAME πΈ
TESTING/LIN/sgeqls.f β bestie, this is straight out of the Library Functions Manual, and itβs giving iconic LAPACK testing-file energy. No cap.
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine sgeqls (m, n, nrhs, a, lda, tau, b, ldb, work, lwork, info)βSGEQLS
π Function/Subroutine Documentation π
subroutine sgeqls (integer m, integer n, integer nrhs, real, dimension( lda,
* ) a, integer lda, real, dimension( * ) tau, real, dimension( ldb, * )
b, integer ldb, real, dimension( lwork ) work, integer lwork, integer
info)
SGEQLS
π¦ Purpose π¦
Okay so the whole point, bestie: solve the least squares problem
min || A*X - B ||
using the QL factorization
A = Q*L
computed by SGEQLF. Periodt. π
π Parameters π
MβM is INTEGER. Itβs the number of rows of the matrixA. Constraint:M >= 0. Respect the boundary, queen. β¨NβN is INTEGER. Itβs the number of columns of the matrixA. Constraint:M >= N >= 0. Yes, thatβs the chain, fr fr.NRHSβNRHS is INTEGER. Itβs the number of columns ofB. Constraint:NRHS >= 0. Keep it non-negative, bestie. πAβA is REAL array, dimension (LDA,N). It holds details of the QL factorization of the original matrixAas returned bySGEQLF. Lowkey important. πLDAβLDA is INTEGER. Itβs the leading dimension of the arrayA. Constraint:LDA >= M. Do not play with this. π«ΆTAUβTAU is REAL array, dimension (N). It holds details of the orthogonal matrixQ. Iconic auxiliary energy. πBβB is REAL array, dimension (LDB,NRHS). On entry, itβs them-by-nrhsright hand side matrixB. On exit, itβs then-by-nrhssolution matrixX, stored in rowsm-n+1:m. The way it transformsβ¦ character development. π«LDBβLDB is INTEGER. Itβs the leading dimension of the arrayB. Constraint:LDB >= M. Respect the leading dimension, pls. πWORKβWORK is REAL array, dimension (LWORK). Workspace vibes only. π§LWORKβLWORK is INTEGER. Itβs the length of the arrayWORK.LWORKmust be at leastNRHS, and should be at leastNRHS*NB, whereNBis the block size for this environment. So likeβ¦ donβt under-feed the workspace. πINFOβINFO is INTEGER. Exit-status tea:= 0: successful exit. Slay. β< 0: ifINFO = -i, thei-th argument had an illegal value. Read the number, bestie. π
π«Ά Author π«Ά
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Definition at line 120 of file sgeqls.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
π Thatβs the whole page, bestie: LAPACK Version 3.12.0, page TESTING/LIN/sgeqls.f(3), and the footer energy is right there. Mwah! πβ¨
π¦ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms