SRC/sgelq2.f(3)
πΈ NAME πΈ
SRC/sgelq2.f β okay bestie, this is the page for SRC/sgelq2.f(3) from the Library Functions Manual, and it's all about one very specific LAPACK subroutine. π
β¨ SYNOPSIS β¨
π§ Functions/Subroutines π§
subroutine sgelq2 (m, n, a, lda, tau, work, info)
SGELQ2 computes the LQ factorization of a general rectangular matrix using an unblocked algorithm. π₯
π οΈ Function/Subroutine Documentation π οΈ
subroutine sgelq2 (integer m, integer n, real, dimension( lda, * ) a, integer lda, real, dimension( * ) tau, real, dimension( * ) work, integer info)
SGELQ2 computes the LQ factorization of a general rectangular matrix using an unblocked algorithm. π
π« Purpose: π«
Okay so SGELQ2 computes an LQ factorization of a real m-by-n matrix A:
A = ( L 0 ) * Q
where:
Qis a n-by-n orthogonal matrix;Lis a lower-triangular m-by-m matrix;0is a m-by-(n-m) 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 below the diagonal of the array contain the m by min(m,n) lower trapezoidal matrixL(Lis lower triangular ifm <= n); the elements above 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 (M).INFOβINFO is INTEGER;= 0: successful exit;< 0: if INFO = -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 π
Here's the tea: the matrix Q is represented as a product of elementary reflectors
Q = H(k) . . . H(2) H(1), 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:n) is stored on exit in A(i,i+1:n), and tau in TAU(i). π¦
Definition at line 128 of file sgelq2.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code. π«Ά
Bye bestie π β that's the whole page. The footer vibe is LAPACK Version 3.12.0 and SRC/sgelq2.f(3); no separate date is shown, so I'm not inventing one. π«Άβ¨
π¦ 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