SRC/sgeqr2.f(3)
π SRC/sgeqr2.f(3) π
okay so this is the Library Functions Manual page for SRC/sgeqr2.f, and it's literally all about the sgeqr2 subroutine. LAPACK bestie, unblocked QR energy, we are so here for it. π
β¨
π NAME π
SRC/sgeqr2.f β that's the name on the cover, bestie. π«Ά
β¨ SYNOPSIS β¨
π§ Functions/Subroutines π§
subroutine sgeqr2 (m, n, a, lda, tau, work, info)
sgeqr2β SGEQR2 computes the QR factorization of a general rectangular matrix using an unblocked algorithm.
π Function/Subroutine Documentation π
π¦ subroutine sgeqr2 π¦
subroutine sgeqr2 (integer m, integer n, real, dimension( lda, * ) a, integer lda, real, dimension( * ) tau, real, dimension( * ) work, integer info)
SGEQR2 computes the QR factorization of a general rectangular matrix using an unblocked algorithm.
π Purpose: π
SGEQR2 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.M >= 0.NβN is INTEGER. The number of columns of the matrixA.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, with the arrayTAU, represent the orthogonal matrixQas a product of elementary reflectors (see Further Details).LDAβLDA is INTEGER. The leading dimension of the arrayA.LDA >= max(1,M).TAUβTAU is REAL array, dimension (min(M,N)). The scalar factors of the elementary reflectors (see Further Details).WORKβWORK is REAL array, dimension (N).INFOβINFO is INTEGER= 0: successful exit< 0: ifINFO = -i, the i-th argument had an illegal value
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π§ Further Details: π§
The matrix Q is represented as a product of elementary reflectors
Q = H(1) H(2) . . . H(k), where k = min(m,n).
Each H(i) has the form
H(i) = I - tau * v * v**T
where tau is a real scalar, and v is a real vector with v(1:i-1) = 0 and v(i) = 1; v(i+1:m) is stored on exit in A(i+1:m,i), and tau in TAU(i).
π Definition at line 129 of file sgeqr2.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
and that's a wrap, bestie π«Ά β the footer's source/version/date stamp is LAPACK, Version 3.12.0, SRC/sgeqr2.f(3) (no extra date line printed, that's the whole footer vibe). π
β¨
π¦ 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