SRC/dgeqr2.f(3)
SRC/dgeqr2.f(3) π
okay so bestie, welcome to the Library Functions Manual section for SRC/dgeqr2.f β yes that's the manual name, we're folding it in right here at the top, you're welcome π«Ά. This is a LAPACK page and it's honestly kind of iconic, so let's get into it.
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine dgeqr2 (m, n, a, lda, tau, work, info)β DGEQR2 computes the QR factorization of a general rectangular matrix using an unblocked algorithm. that's the whole vibe, that's the whole function π
π¦ 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 what it does β
πΈ Purpose
!>
!> 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, it's giving decomposition. main character energy for real π
π Parameters π
MβMisINTEGER. the number of rows of the matrixA. and listen,M >= 0. always. π
!> M is INTEGER
!> The number of rows of the matrix A. M >= 0.
!>
NβNisINTEGER. the number of columns of the matrixA. andN >= 0too. same energy π
!> N is INTEGER
!> The number of columns of the matrix A. N >= 0.
!>
AβAisDOUBLE PRECISIONarray, dimension(LDA,N). on entry, it's the m by n matrixA. on exit, the elements on and above the diagonal contain themin(m,n)by n upper trapezoidal matrixR(which, and this is important bestie, is upper triangular ifm >= n). the elements below the diagonal, together with the arrayTAU, represent the orthogonal matrixQas a product of elementary reflectors (go look at Further Details for that tea π).
!> A is DOUBLE PRECISION array, dimension (LDA,N)
!> On entry, the m by n matrix A.
!> On exit, the elements on and above the diagonal of the array
!> contain the min(m,n) by n upper trapezoidal matrix R (R is
!> upper triangular if m >= n); the elements below the diagonal,
!> with the array TAU, represent the orthogonal matrix Q as a
!> product of elementary reflectors (see Further Details).
!>
LDAβLDAisINTEGER. the leading dimension of the arrayA. and it has to beLDA >= max(1,M). not negotiable π€
!> LDA is INTEGER
!> The leading dimension of the array A. LDA >= max(1,M).
!>
TAUβTAUisDOUBLE PRECISIONarray, dimension(min(M,N)). the scalar factors of the elementary reflectors (again, Further Details has the lore β¨).
!> TAU is DOUBLE PRECISION array, dimension (min(M,N))
!> The scalar factors of the elementary reflectors (see Further
!> Details).
!>
WORKβWORKisDOUBLE PRECISIONarray, dimension(N). that's it, that's the whole description, it's a work array, she's just here to help π
!> WORK is DOUBLE PRECISION array, dimension (N)
!>
INFOβINFOisINTEGER. the vibe report:= 0: successful exit π slay< 0: ifINFO = -i, the i-th argument had an illegal value π somebody messed up
!> 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.
a whole squad fr fr π«Ά
π₯ 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).
!>
so Q is like a whole chain of elementary reflectors multiplied together, k = min(m,n) of them, and each H(i) is I - tau * v * v**T. tau is a real scalar, v is a real vector where v(1:i-1) = 0 and v(i) = 1, and β key detail β v(i+1:m) gets stored on exit in A(i+1:m,i), with tau chilling in TAU(i). iykyk π§
Definition at line 129 of file dgeqr2.f. π that's where she lives.
β Author β
Generated automatically by Doxygen for LAPACK from the source code. not a human, a robot, and honestly it ate π€π
and that's the page bestie!! written for LAPACK, Version 3.12.0, dated, and filed under SRC/dgeqr2.f(3) β go forth and factorize your QR, you've got this πβ¨π
π¦ 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