/home/abui...RC/sgeqr.f(3)
πΈ NAME πΈ
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/sgeqr.f β that's the file this whole page is about, bestie. We're in the Library Functions Manual, and the header title is /home/abui...RC/sgeqr.f(3), so you know exactly where we are. π
β¨ SYNOPSIS β¨
π«Ά Functions/Subroutines π«Ά
subroutine SGEQR (m, n, a, lda, t, tsize, work, lwork, info)β SGEQR. That's the whole synopsis, short and iconic.
π Function/Subroutine Documentation π
π SGEQR π
subroutine SGEQR (integer m, integer n, real, dimension( lda, * ) a, integer
lda, real, dimension( * ) t, integer tsize, real, dimension( * ) work,
integer lwork, integer info)
SGEQR. Yep, same name again β main character energy, no cap.
π Purpose: π
okay so SGEQR computes a QR factorization of a real M-by-N matrix A:
A = Q * ( R ),
( 0 )
where:
Qis a M-by-M orthogonal matrix;Ris an upper-triangular N-by-N matrix;0is a (M-N)-by-N zero matrix, ifM > N.
π Parameters π
MβM is INTEGER. The number of rows of the matrixA. Constraint:M >= 0.NβN is INTEGER. The number of columns of the matrixA. Constraint:N >= 0.AβA is REAL array, dimension (LDA,N). On entry, the M-by-N matrixA. On exit, the elements on and above the diagonal of the array contain themin(M,N)-by-N upper trapezoidal matrixR(Ris upper triangular ifM >= N); the elements below the diagonal are used to store part of the data structure to representQ. β¨LDAβLDA is INTEGER. The leading dimension of the arrayA. Constraint:LDA >= max(1,M).TβT is REAL array, dimension (MAX(5,TSIZE)). On exit, ifINFO = 0,T(1)returns optimal (or either minimal or optimal, if query is assumed)TSIZE. SeeTSIZEfor details. RemainingTcontains part of the data structure used to representQ. If one wants to apply or constructQ, then one needs to keepT(in addition toA) and pass it to further subroutines.TSIZEβTSIZE is INTEGER. IfTSIZE >= 5, the dimension of the arrayT. IfTSIZE = -1or-2, then a workspace query is assumed. The routine only calculates the sizes of theTandWORKarrays, returns these values as the first entries of theTandWORKarrays, and no error message related toTorWORKis issued byXERBLA. IfTSIZE = -1, the routine calculates optimal size ofTfor the optimum performance and returns this value inT(1). IfTSIZE = -2, the routine calculates minimal size ofTand returns this value inT(1).WORKβ(workspace) REAL array, dimension (MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)contains optimal (or either minimal or optimal, if query was assumed)LWORK. SeeLWORKfor details.LWORKβLWORK is INTEGER. The dimension of the arrayWORK. IfLWORK = -1or-2, then a workspace query is assumed. The routine only calculates the sizes of theTandWORKarrays, returns these values as the first entries of theTandWORKarrays, and no error message related toTorWORKis issued byXERBLA. IfLWORK = -1, the routine calculates optimal size ofWORKfor the optimal performance and returns this value inWORK(1). IfLWORK = -2, the routine calculates minimal size ofWORKand returns this value inWORK(1).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.
π¦ Further Details π¦
The goal of the interface is to give maximum freedom to the developers for creating any QR factorization algorithm they wish. The triangular (trapezoidal) R has to be stored in the upper part of A. The lower part of A and the array T can be used to store any relevant information for applying or constructing the Q factor. The WORK array can safely be discarded after exit. β¨
Caution: One should not expect the sizes ofTandWORKto be the same from one LAPACK implementation to the other, or even from one execution to the other. A workspace query (forTandWORK) is needed at each execution. However, for a given execution, the size ofTandWORKare fixed and will not change from one query to the next.
π§ Further Details particular to this LAPACK implementation: π§
These details are particular for this LAPACK implementation. Users should not take them for granted. These details may change in the future, and are not likely true for another LAPACK implementation. These details are relevant if one wants to try to understand the code. They are not part of the interface. π
In this version,
T(2): row block size (MB)T(3): column block size (NB)T(6:TSIZE): data structure needed forQ, computed bySLATSQRorSGEQRT
Depending on the matrix dimensions M and N, and row and column block sizes MB and NB returned by ILAENV, SGEQR will use either SLATSQR (if the matrix is tall-and-skinny) or SGEQRT to compute the QR factorization.
π Definition π
Definition at line 174 of file sgeqr.f.
ποΈ Author ποΈ
Generated automatically by Doxygen for LAPACK from the source code.
okay bye bestie π Final sign-off: LAPACK Version 3.12.0, page source /home/abui...RC/sgeqr.f(3). No date printed on this footer, so accept this sparkly goodbye as the timestamp πβ¨π
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms