SORG2R(3)
π SORG2R(3) β like, the manual page, bestie
okay so first things first: this page lives in the Library Functions Manual (yes, that's the manual name, keep up π) and the file we're talking about is, like, sorg2r.f β full path /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/sorg2r.f, or as the header shows it, /home/abui...RC/sorg2r.f(3). Cute. Truncated. Iconic. π
β¨ NAME β¨
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/sorg2r.f β that's the whole name section, no cap, it's literally just the file path. LAPACK said "the name IS the address" and honestly? slay. π¦
πΈ SYNOPSIS πΈ
Functions/Subroutines
subroutine SORG2R (m, n, k, a, lda, tau, work, info)
SORG2R generates all or part of the orthogonal matrix Q from a QR factorization determined by sgeqrf (unblocked algorithm). that's the whole vibe π«
π Function/Subroutine Documentation π
subroutine SORG2R (integer m, integer n, integer k, real, dimension( lda, * ) a, integer lda, real, dimension( * ) tau, real, dimension( * ) work, integer info)
SORG2R generates all or part of the orthogonal matrix Q from a QR factorization determined by sgeqrf (unblocked algorithm). (yes I said it twice, it's that important, periodt π
)
π§ Purpose:
!>
!> SORG2R generates an m by n real matrix Q with orthonormal columns,
!> which is defined as the first n columns of a product of k elementary
!> reflectors of order m
!>
!> Q = H(1) H(2) . . . H(k)
!>
!> as returned by SGEQRF.
!>
so like, you hand it the reflector data and it hands you back Q, the first n columns of that big product of k elementary reflectors of order m, exactly as SGEQRF gave them to you. math but make it fashion β¨
π Parameters
MβM is INTEGER, the number of rows of the matrix Q. constraint:M >= 0. no negative rows bestie, we don't do that here πNβN is INTEGER, the number of columns of the matrix Q. constraint:M >= N >= 0. (yep, it's sandwiched between M and zero π)KβK is INTEGER, the number of elementary reflectors whose product defines the matrix Q. constraint:N >= K >= 0.AβA is REAL array, dimension (LDA,N).- On entry: the i-th column must contain the vector which defines the elementary reflector
H(i), fori = 1,2,...,k, as returned bySGEQRFin the first k columns of its array argumentA. π«Ά - On exit: the
m-by-nmatrix Q. glow-up complete π
- On entry: the i-th column must contain the vector which defines the elementary reflector
LDAβLDA is INTEGER, the first dimension of the arrayA. constraint:LDA >= max(1,M). respect the leading dimension or perish π₯TAUβTAU is REAL array, dimension (K).TAU(i)must contain the scalar factor of the elementary reflectorH(i), as returned bySGEQRF. the little scalar that could βWORKβWORK is REAL array, dimension (N). scratch space, doing the most behind the scenes, main character energy fr fr πWORK... no wait,INFOβINFO is INTEGER:= 0: successful exit π< 0: ifINFO = -i, the i-th argument has an illegal value. π somebody passed a bad arg, it happens
π¦ Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
(the whole squad, we love a collab π)
β Definition at line 113 of file sorg2r.f.
like, go look at line 113 if you want the receipts, iykyk.
π Author (yeah there's a second one, don't @ me)
Generated automatically by Doxygen for LAPACK from the source code. a robot wrote this and honestly it ate π€β¨
lowkey reminder bestie:M >= N >= 0,N >= K >= 0, andLDA >= max(1,M)β break those andINFOwill come for you with a negative number π
and that's the page! πΈ brought to you by LAPACK, Version 3.12.0, dated /home/abui...RC/sorg2r.f(3) β mwah, drink water, and go generate some orthonormal columns ππ«Ά
π¦ 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