sgeqrf.f(3)
okay bestie, you're looking at the LAPACK manual page for sgeqrf.f(3) β section 3, real subroutine energy, QR factorization vibes. let's go π
π NAME π
sgeqrf.f
β¨ SYNOPSIS β¨
π§ Functions/Subroutines π§
subroutine sgeqrf (M, N, A, LDA, TAU, WORK, LWORK, INFO)
SGEQRF VARIANT: left-looking Level 3 BLAS version of the algorithm.
πΈ Function/Subroutine Documentation πΈ
subroutine sgeqrf (integer M, integer N, real, dimension( lda, * ) A,
integer LDA, real, dimension( * ) TAU, real, dimension( * ) WORK,
integer LWORK, integer INFO)
SGEQRF VARIANT: left-looking Level 3 BLAS version of the algorithm.
π Purpose π
okay so SGEQRF computes a QR factorization of a real M-by-N matrix A, and the whole equation is literally:
A = Q * R
this is the left-looking Level 3 BLAS version of the algorithm. periodt.
π¦ Parameters π¦
Mβ anINTEGER, bestie. it's the number of rows of the matrixA, and the rule isM >= 0.Nβ also anINTEGER. it's the number of columns of the matrixA, withN >= 0.Aβ aREALarray, dimension(LDA,N). on entry, it's theM-by-NmatrixA. on exit, the elements on and above the diagonal of the array contain themin(M,N)-by-Nupper trapezoidal matrixR(Ris upper triangular ifm >= n); the elements below the diagonal, with the arrayTAU, represent the orthogonal matrixQas a product ofmin(m,n)elementary reflectors (see Further Details).LDAβ anINTEGER, lowkey the leading dimension of the arrayA. the rule isLDA >= max(1,M).TAUβ aREALarray, dimension(min(M,N)). highkey these are the scalar factors of the elementary reflectors (see Further Details).WORKβ aREALarray, dimension(MAX(1,LWORK)). on exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβ anINTEGER. the dimension of the arrayWORK. the dimension can be divided into three parts:- the part for the triangular factor
T. if the very lastTis not bigger than any of the rest, then this part isNB x ceiling(K/NB), otherwise,NB x (K-NT), whereK = min(M,N)andNTis the dimension of the very lastT. - the part for the very last
TwhenTis bigger than any of the restT. the size of this part isNT x NT, whereNT = K - ceiling ((K-NX)/NB) x NB, whereK = min(M,N),NXis calculated byNX = MAX( 0, ILAENV( 3, 'SGEQRF', ' ', M, N, -1, -1 ) ). - the part for
dlarfbis of sizemax((N-M)*K, (N-M)*NB, K*NB, NB*NB).
- the part for the triangular factor
so LWORK = part1 + part2 + part3.
if LWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of the WORK array, returns this value as the first entry of the WORK array, and no error message related to LWORK is issued by XERBLA.
INFOβ anINTEGER. no cap:= 0: successful exit.< 0: ifINFO = -i, thei-th argument had an illegal value.
π Author π
Univ. of TennesseeUniv. of California BerkeleyUniv. of Colorado DenverNAG Ltd.
ποΈ Date ποΈ
December 2016, 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'
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). iykyk, the math is the moment.
π Definition at line 151 of file VARIANTS/qr/LL/sgeqrf.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
π and that's the whole manual, bestie β sgeqrf.f(3) from LAPACK, Version 3.8.0, dated Tue Nov 14 2017. now go factor that QR like the main character you are. slay β¨π
π¦ where this page comes from
- centos-stream 9: lapack 3.9.0-10.el9 Β· BSD
- centos-stream 9: lapack 3.9.0-10.el9 Β· BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms