SRC/dgeqrf.f(3)
β¨ Bestie, you've landed on SRC/dgeqrf.f(3) from the Library Functions Manual β yes, manual name folded in near the top, we're doing this right π
β¨
π NAME π
SRC/dgeqrf.f β that's the page, that's the name, no extra lore. π
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine dgeqrf (m, n, a, lda, tau, work, lwork, info)β DGEQRF (short intro; the full signature is right below, bestie).
πΈ Function/Subroutine Documentation πΈ
subroutine dgeqrf (integer m, integer n, double precision, dimension( lda, * ) a, integer lda, double precision, dimension( * ) tau, double precision, dimension( * ) work, integer lwork, integer info)
DGEQRF β okay so this is the whole routine. Let's get into it. π
π― Purpose π―
DGEQRF 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.
Periodt. That's the factorization vibe. β¨
π Parameters π
MβMisINTEGER. The number of rows of the matrix A.M >= 0.NβNisINTEGER. The number of columns of the matrix A.N >= 0.AβAisDOUBLE 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 min(m,n) elementary reflectors (see Further Details).LDAβLDAisINTEGER. The leading dimension of the array A.LDA >= max(1,M).TAUβTAUisDOUBLE PRECISION array, dimension (min(M,N)). The scalar factors of the elementary reflectors (see Further Details).WORKβWORKisDOUBLE PRECISION array, dimension (MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβLWORKisINTEGER. The dimension of the arrayWORK.LWORK >= 1, ifMIN(M,N) = 0, andLWORK >= N, otherwise. For optimum performanceLWORK >= N*NB, whereNBis the optimal blocksize. IfLWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of theWORKarray, returns this value as the first entry of theWORKarray, and no error message related toLWORKis issued byXERBLA.INFOβINFOisINTEGER.= 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 145 of file dgeqrf.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
Signed off with LAPACK Version 3.12.0, from SRC/dgeqrf.f(3) β mwah, bestie ππβ¨
π¦ 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