SORGRQ(3)
π¦ sorgrq.f(3) β or like, the glow-up guide to SORGRQ π¦
okay bestie, welcome to the Library Functions Manual entry for
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/sorgrq.f
yes that's the whole path, no I'm not abbreviating it, it's literally the NAME section and we respect the source file's full government name β¨
πΈ SYNOPSIS πΈ
Functions/Subroutines
subroutine SORGRQ (m, n, k, a, lda, tau, work, lwork, info)
SORGRQ
that's it. that's the icon. the main character of this manpage, no cap π
π Function/Subroutine Documentation π
subroutine SORGRQ (integer m, integer n, integer k, real, dimension( lda, * ) a, integer lda, real, dimension( * ) tau, real, dimension( * ) work, integer lwork, integer info)
SORGRQ
β Purpose β
ok so this is the whole point of the routine, pay attention π«Ά
!>
!> SORGRQ generates an M-by-N real matrix Q with orthonormal rows,
!> which is defined as the last M rows of a product of K elementary
!> reflectors of order N
!>
!> Q = H(1) H(2) . . . H(k)
!>
!> as returned by SGERQF.
!>
short version: it builds you the matrix Q, M-by-N, real, with orthonormal rows β and Q is literally the last M rows of the product of K elementary reflectors of order N, i.e.
Q = H(1) H(2) . . . H(k)
all that coming at you fresh from SGERQF. slay. it's giving "handed down by the oracle" π§
π Parameters π
MβMisINTEGER. it's the number of rows of the matrixQ. the rule isM >= 0. that's it, that's the whole vibe check.NβNisINTEGER. the number of columns of the matrixQ. constraint:N >= M. so like, no squishing it the other way, periodt.KβKisINTEGER. the number of elementary reflectors whose product defines the matrixQ. constraint:M >= K >= 0. keep it in range bestie π₯AβAisREAL array, dimension (LDA,N).- on entry: the
(m-k+i)-th row must contain the vector which defines the elementary reflectorH(i), fori = 1,2,...,k, as returned bySGERQFin the lastkrows of its array argumentA. - on exit: the
M-by-NmatrixQ. boom, glow-up complete π
- on entry: the
LDAβLDAisINTEGER. the first dimension of the arrayA. constraint:LDA >= max(1,M). don't skip this one, it WILL notice πTAUβTAUisREAL array, dimension (K).TAU(i)must contain the scalar factor of the elementary reflectorH(i), as returned bySGERQF. it's the little sparkle that makes the reflector work β¨WORKβWORKisREAL array, dimension (MAX(1,LWORK)). on exit, ifINFO = 0, thenWORK(1)returns the optimalLWORK. it's like a receipt for the ideal workspace size π§ΎLWORKβLWORKisINTEGER. the dimension of the arrayWORK, withLWORK >= max(1,M).- for optimum performance,
LWORK >= M*NB, whereNBis the optimal blocksize. go bigger, live your best life π - if
LWORK = -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. it's a lil peek, not a full send π
- for optimum performance,
INFOβINFOisINTEGER.= 0: successful exit π< 0: ifINFO = -i, thei-th argument has an illegal value π (yes, negative INFO means someone passed a bad argument, go find out which one)
fr fr, the LWORK = -1 query mode is not an error. don't panic-text me about it. it's literally documented behaviour. π«Ά
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 127 of file sorgrq.f. iconic. line 127 specifically. we love a precise citation π
π Author π
Generated automatically by Doxygen for LAPACK from the source code. the robots made this one, be nice to them π€π
and that's the whole page bestie β every parameter, every constraint, every default, nothing skipped, nothing invented. iykyk π
LAPACK β Version 3.12.0 β /home/abui...RC/sorgrq.f(3) ... mwah, that's the sign-off, go forth and orthogonalise your rows π¦β¨π
π¦ 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