SRC/DEPRECATED/cgeqrs.f(3)
π SRC/DEPRECATED/cgeqrs.f β from the Library Functions Manual π
okay so bestie, welcome to cgeqrs β¨ this little icon lives in the LAPACK library functions manual, and yes the path literally says DEPRECATED β the filename is telling on itself, iykyk π but she still eats, so let's get into it.
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine cgeqrs (m, n, nrhs, a, lda, tau, b, ldb, work, lwork, info)β the one and only CGEQRS π
πΈ Function/Subroutine Documentation πΈ
subroutine cgeqrs (integer m, integer n, integer nrhs, complex, dimension( lda, * ) a, integer lda, complex, dimension( * ) tau, complex, dimension( ldb, * ) b, integer ldb, complex, dimension( lwork ) work, integer lwork, integer info)
CGEQRS π
π¦ Purpose π¦
So what does she actually do? She solves the least squares problem
min || A*X - B ||
using the QR factorization
A = Q*R
computed by CGEQRF. That's it, that's the whole vibe π
(no cap, CGEQRF did the heavy lifting first β she's just here to finish the job).
π Parameters π
M
M is INTEGER. The number of rows of the matrix A. M >= 0. β
N
N is INTEGER. The number of columns of the matrix A. M >= N >= 0. πΈ (yes, both bounds, she's picky and she's right)
NRHS
NRHS is INTEGER. The number of columns of B. NRHS >= 0. π
A
A is COMPLEX array, dimension (LDA,N). Details of the QR factorization of the original matrix A as returned by CGEQRF. π§ (so do NOT roll up in here with a fresh matrix, she wants the factorization output)
LDA
LDA is INTEGER. The leading dimension of the array A. LDA >= M. π₯
TAU
TAU is COMPLEX array, dimension (N). Details of the orthogonal matrix Q. β¨
B
B is COMPLEX array, dimension (LDB,NRHS). On entry, the m-by-nrhs right hand side matrix B. On exit, the n-by-nrhs solution matrix X. π (she goes in as B and comes out as X, main character transformation fr fr)
LDB
LDB is INTEGER. The leading dimension of the array B. LDB >= M. π«Ά
WORK
WORK is COMPLEX array, dimension (LWORK). π
LWORK
LWORK is INTEGER. The length of the array WORK. LWORK must be at least NRHS, and should be at least NRHS*NB, where NB is the block size for this environment. π (don't skimp on the workspace bestie, she said should be NRHS*NB for a reason)
INFO
INFO is INTEGER.
= 0: successful exit π< 0: ifINFO = -i, thei-th argument had an illegal value π
β Author β
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 119 of file cgeqrs.f. π
π Author π
Generated automatically by Doxygen for LAPACK from the source code. π€ (not a human, just the doc goblin doing its thing)
ok that's the whole page!! every flag accounted for, every bound preserved, nothing skipped π«Ά
LAPACK β Version 3.12.0 β and the file is SRC/DEPRECATED/cgeqrs.f(3), mwah π slay, bye bestie π¦β¨
π¦ 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