SRC/sgemlq.f(3)
π SRC/sgemlq.f π
ok so this is a page straight out of the LAPACK Library Functions Manual and honestly? it's a whole vibe. it's the docs for SGEMLQ, one single subroutine, and we're gonna go through it together like it's a group project and i actually did the reading π
β¨ SYNOPSIS β¨
Functions/Subroutines
here's the lineup, one icon and one icon only:
subroutine sgemlq (side, trans, m, n, k, a, lda, t, tsize, c, ldc, work,
lwork, info)
SGEMLQ β that's her, that's the main character π
π Function/Subroutine Documentation π
the signature, exactly as written, no cap:
subroutine sgemlq (character side, character trans, integer m, integer n,
integer k, real, dimension( lda, * ) a, integer lda, real, dimension( *
) t, integer tsize, real, dimension( ldc, * ) c, integer ldc, real,
dimension( * ) work, integer lwork, integer info)
SGEMLQ
π Purpose
ok so bestie, here's the whole point of this function. SGEMLQ overwrites the general real M-by-N matrix C with:
SIDE = 'L' SIDE = 'R'
TRANS = 'N': Q * C C * Q
TRANS = 'T': Q**T * C C * Q**T
where Q is a real orthogonal matrix defined as the product of blocked elementary reflectors computed by short wide LQ factorization (SGELQ). like, that's it, that's the tea ββ¨
πΈ Parameters πΈ
every single one, in order, because we do not skip:
SIDEβ it's aCHARACTER*1, and it decides which sideQorQ**Tgets applied from:= 'L': applyQorQ**Tfrom the Left;= 'R': applyQorQ**Tfrom the Right.
TRANSβ alsoCHARACTER*1, the transpose vibe check:= 'N': No transpose, applyQ;= 'T': Transpose, applyQ**T.
MβINTEGER, the number of rows of the matrixA.M >=0.NβINTEGER, the number of columns of the matrixC.N >= 0.KβINTEGER, the number of elementary reflectors whose product defines the matrixQ.- If
SIDE = 'L',M >= K >= 0; - if
SIDE = 'R',N >= K >= 0.
- If
AβREALarray, dimension(LDA,M)ifSIDE = 'L',(LDA,N)ifSIDE = 'R'.
Part of the data structure to represent Q as returned by SGELQ.
LDAβINTEGER, the leading dimension of the arrayA.LDA >= max(1,K).TβREALarray, dimension(MAX(5,TSIZE)). Part of the data structure to representQas returned bySGELQ.TSIZEβINTEGER, the dimension of the arrayT.TSIZE >= 5.CβREALarray, dimension(LDC,N).- On entry, the
M-by-NmatrixC. - On exit,
Cis overwritten byQ*CorQ**T*CorC*Q**TorC*Q.
- On entry, the
LDCβINTEGER, the leading dimension of the arrayC.LDC >= max(1,M).WORKβ (workspace)DOUBLE PRECISIONarray, dimension(MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the minimalLWORK.LWORKβINTEGER, the dimension of the arrayWORK.LWORK >= 1.
IfLWORK = -1, then a workspace query is assumed. The routine only calculates the size of theWORKarray, returns this value asWORK(1), and no error message related toWORKis issued byXERBLA. π«Ά
INFOβINTEGER, the receipts:= 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 π¦
β οΈ okay listen up, this part is implementation tea, not interface tea. these details are particular for this LAPACK implementation. users should not take them for granted. these details may change in the future, and are not likely true for another LAPACK implementation. these details are relevant if one wants to try to understand the code. they are not part of the interface. π
In this version,
T(2): row block size (MB)
T(3): column block size (NB)
T(6:TSIZE): data structure needed for Q, computed by
SLASWLQ or SGELQT
Depending on the matrix dimensions M and N, and row and column block sizes MB and NB returned by ILAENV, SGELQ will use either SLASWLQ (if the matrix is wide-and-short) or SGELQT to compute the LQ factorization.
This version of SGEMLQ will use either SLAMSWLQ or SGEMLQT to multiply matrix Q by another matrix.
Further Details in SLAMSWLQ or SGEMLQT.
definition at line 171 of file sgemlq.f. π
π Author (the meta one) π
Generated automatically by Doxygen for LAPACK from the source code. (she's literally auto-generated and still ate β¨)
ππ sign-off time, bestie ππ
this lil masterpiece is from LAPACK, Version 3.12.0, and yeah, it's page SRC/sgemlq.f(3) β keep her safe, cite her right, and remember: orthogonal matrices are iconic, LWORK = -1 means just tell me the size, and INFO < 0 means somebody fumbled an argument π periodt π
π
π¦ 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