DGEQR2(3)
π NAME
ok so this is the manual page for dgeqr2.f β like, the actual file lives at /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/dgeqr2.f and it's part of the Library Functions Manual (LAPACK, bestie, we're in LAPACK territory π«Ά).
β¨ SYNOPSIS β¨
π§ Functions/Subroutines
subroutine DGEQR2 (m, n, a, lda, tau, work, info)β honestly? she just computes the QR factorization of a general rectangular matrix using an unblocked algorithm. that's the whole vibe. β¨
π Function/Subroutine Documentation π
subroutine DGEQR2 (integer m, integer n, double precision, dimension( lda, * ) a, integer lda, double precision, dimension( * ) tau, double precision, dimension( * ) work, integer info)
DGEQR2 computes the QR factorization of a general rectangular matrix using an unblocked algorithm. no cap, that's literally her job description. π
πΈ Purpose:
ok so picture this, the tea is:
!>
!> DGEQR2 computes a QR factorization of a real m-by-n matrix A:
!>
!> A = Q * ( R ),
!> ( 0 )
!>
!> where:
!>
!> Q is a m-by-m orthogonal matrix;
!> R is an upper-triangular n-by-n matrix;
!> 0 is a (m-n)-by-n zero matrix, if m > n.
!>
!>
like she's out here decomposing A into Q times that stacked ( R ) / ( 0 ) situation, and honestly? iconic. π₯
π Parameters π
MβMisINTEGER. it's the number of rows of the matrixA. and the rule isM >= 0. (yes bestie, zero is allowed, we don't discriminate π«Ά)NβNisINTEGER. the number of columns of the matrixA, withN >= 0. same energy. πAβAisDOUBLE PRECISION array, dimension (LDA,N).- on entry: it's the m by n matrix
A. that's her. that's the input. - on exit: the elements on and above the diagonal of the array contain the
min(m,n)by n upper trapezoidal matrixR(andRis upper triangular ifm >= n); the elements below the diagonal, together with the arrayTAU, represent the orthogonal matrixQas a product of elementary reflectors (see Further Details bestie, it's down there π).
- on entry: it's the m by n matrix
LDAβLDAisINTEGER. the leading dimension of the arrayA, and you needLDA >= max(1,M). not optional, she's strict about this one. π€TAUβTAUisDOUBLE PRECISION array, dimension (min(M,N)). the scalar factors of the elementary reflectors (again β Further Details, go look π).WORKβWORKisDOUBLE PRECISION array, dimension (N). that's it. that's the whole description. she's a simple girl. πINFOβINFOisINTEGER:= 0: successful exit β¨ slay, we love a clean finish.< 0: ifINFO = -i, the i-th argument had an illegal value π so like, check your args bestie.
π Author π
shoutout to the whole squad who made this happen:
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π¦ Further Details: π¦
ok this is the part where it gets a little spicy, pay attention:
!>
!> 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).
!>
so yeah, Q is a whole product of elementary reflectors, k = min(m,n) of them, each H(i) is I - tau * v * v**T, the v vector is zeroed out up to i-1, has a 1 sitting at position i, and the rest of v from i+1 to m lives in A(i+1:m,i) on exit β with tau chillin' in TAU(i). iykyk. π
β¨
Definition at line 129 of file dgeqr2.f.
β Author (the meta one) β
Generated automatically by Doxygen for LAPACK from the source code. so like, a robot wrote this one, not a girlie. π
and that's the whole page bestie!! this masterpiece was brought to you by LAPACK, Version 3.12.0, straight out of /home/abui...RC/dgeqr2.f(3) β go forth and factorize responsibly ππβ¨
π¦ 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