gerqf(3)
π¦ gerqf(3) β RQ factor, but make it a vibe β¨
okay so this is gerqf, straight out of the Library Functions Manual (section 3, the library-functions girlies π
). Four subroutines, one job, and honestly? It's giving "let me factor your matrix in a very specific direction" energy. Buckle up bestie, we're going in π
πΈ NAME πΈ
gerqf β gerqf: RQ factor
β¨ SYNOPSIS β¨
Functions π«
subroutine cgerqf (m, n, a, lda, tau, work, lwork, info)β CGERQFsubroutine dgerqf (m, n, a, lda, tau, work, lwork, info)β DGERQFsubroutine sgerqf (m, n, a, lda, tau, work, lwork, info)β SGERQFsubroutine zgerqf (m, n, a, lda, tau, work, lwork, info)β ZGERQF
π«Ά Detailed Description π«Ά
this is literally just the landing page for the four function docs below β scroll down, the real content is right there π
π Function Documentation π
cgerqf β the complex one π
subroutine cgerqf (integer m, integer n, complex, dimension( lda, * ) a,
integer lda, complex, dimension( * ) tau, complex, dimension( * ) work,
integer lwork, integer info)
CGERQF π¦
Purpose β¨
okay so CGERQF computes an RQ factorization of a complex M-by-N matrix A, and it's literally this:
A = R * Q.
Parameters π
MβMisINTEGER. It's the number of rows of the matrixA, bestie. Constraint:M >= 0.NβNisINTEGER. The number of columns of the matrixA. Constraint:N >= 0.AβAisCOMPLEXarray, dimension(LDA,N). On entry, it's the M-by-N matrixA. On exit, here's the tea: ifm <= n, the upper triangle of the subarrayA(1:m,n-m+1:n)contains the M-by-M upper triangular matrix R; ifm >= n, the elements on and above the(m-n)-th subdiagonal contain the M-by-N upper trapezoidal matrix R; and the remaining elements, with the array TAU, represent the unitary matrix Q as a product ofmin(m,n)elementary reflectors (peep Further Details for the receipts).LDAβLDAisINTEGER. The leading dimension of the arrayA. Constraint:LDA >= max(1,M).TAUβTAUisCOMPLEXarray, dimension(min(M,N)). The scalar factors of the elementary reflectors (again β Further Details, iykyk).WORKβWORKisCOMPLEXarray, dimension(MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK. πLWORKβLWORKisINTEGER, the dimension of the arrayWORK. Constraints:LWORK >= 1, ifMIN(M,N) = 0, andLWORK >= M, otherwise. For optimum performanceLWORK >= M*NB, where NB is 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. (yes,XERBLAstays quiet β that's the whole point, no cap)
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 H(2)**H . . . H(k)**H, where k = min(m,n).
Each H(i) has the form
H(i) = I - tau * v * v**H
where tau is a complex scalar, and v is a complex vector with v(n-k+i+1:n) = 0 and v(n-k+i) = 1; conjg(v(1:n-k+i-1)) is stored on exit in A(m-k+i,1:n-k+i-1), and tau in TAU(i).
Definition at line 138 of file cgerqf.f.
dgerqf β the double precision one π
subroutine dgerqf (integer m, integer n, double precision, dimension( lda, * ) a,
integer lda, double precision, dimension( * ) tau, double precision, dimension( * ) work,
integer lwork, integer info)
DGERQF π
Purpose β¨
DGERQF computes an RQ factorization of a real M-by-N matrix A:
A = R * Q.
Parameters π
MβMisINTEGER. Number of rows of the matrixA. Constraint:M >= 0.NβNisINTEGER. Number of columns of the matrixA. Constraint:N >= 0.AβAisDOUBLE PRECISIONarray, dimension(LDA,N). On entry, the M-by-N matrixA. On exit: ifm <= n, the upper triangle of the subarrayA(1:m,n-m+1:n)contains the M-by-M upper triangular matrix R; ifm >= n, the elements on and above the(m-n)-th subdiagonal contain the M-by-N upper trapezoidal matrix R; the remaining elements, with the array TAU, represent the orthogonal matrix Q as a product ofmin(m,n)elementary reflectors (see Further Details).LDAβLDAisINTEGER. The leading dimension of the arrayA. Constraint:LDA >= max(1,M).TAUβTAUisDOUBLE PRECISIONarray, dimension(min(M,N)). The scalar factors of the elementary reflectors (see Further Details).WORKβWORKisDOUBLE PRECISIONarray, dimension(MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβLWORKisINTEGER, the dimension of the arrayWORK. Constraints:LWORK >= 1, ifMIN(M,N) = 0, andLWORK >= M, otherwise. For optimum performanceLWORK >= M*NB, where NB is 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(n-k+i+1:n) = 0 and v(n-k+i) = 1; v(1:n-k+i-1) is stored on exit in A(m-k+i,1:n-k+i-1), and tau in TAU(i).
Definition at line 138 of file dgerqf.f.
sgerqf β the real single precision one π
subroutine sgerqf (integer m, integer n, real, dimension( lda, * ) a,
integer lda, real, dimension( * ) tau, real, dimension( * ) work,
integer lwork, integer info)
SGERQF π
Purpose β¨
SGERQF computes an RQ factorization of a real M-by-N matrix A:
A = R * Q.
Parameters π
MβMisINTEGER. Number of rows of the matrixA. Constraint:M >= 0.NβNisINTEGER. Number of columns of the matrixA. Constraint:N >= 0.AβAisREALarray, dimension(LDA,N). On entry, the M-by-N matrixA. On exit: ifm <= n, the upper triangle of the subarrayA(1:m,n-m+1:n)contains the M-by-M upper triangular matrix R; ifm >= n, the elements on and above the(m-n)-th subdiagonal contain the M-by-N upper trapezoidal matrix R; the remaining elements, with the array TAU, represent the orthogonal matrix Q as a product ofmin(m,n)elementary reflectors (see Further Details).LDAβLDAisINTEGER. The leading dimension of the arrayA. Constraint:LDA >= max(1,M).TAUβTAUisREALarray, dimension(min(M,N)). The scalar factors of the elementary reflectors (see Further Details).WORKβWORKisREALarray, dimension(MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβLWORKisINTEGER, the dimension of the arrayWORK. Constraints:LWORK >= 1, ifMIN(M,N) = 0, andLWORK >= M, otherwise. For optimum performanceLWORK >= M*NB, where NB is 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(n-k+i+1:n) = 0 and v(n-k+i) = 1; v(1:n-k+i-1) is stored on exit in A(m-k+i,1:n-k+i-1), and tau in TAU(i).
Definition at line 138 of file sgerqf.f.
zgerqf β the complex*16 one π§
subroutine zgerqf (integer m, integer n, complex*16, dimension( lda, * ) a,
integer lda, complex*16, dimension( * ) tau, complex*16, dimension( * )
work, integer lwork, integer info)
ZGERQF π
Purpose β¨
ZGERQF computes an RQ factorization of a complex M-by-N matrix A:
A = R * Q.
Parameters π
MβMisINTEGER. Number of rows of the matrixA. Constraint:M >= 0.NβNisINTEGER. Number of columns of the matrixA. Constraint:N >= 0.A
okay bestie the A deets for zgerqf keep going β that's part 2's whole moment, we're not done here yet π
okay so the args keep rolling in and this is where A gets its moment π
A π«Ά
the exact tea:
A is COMPLEX*16 array, dimension (LDA,N)
On entry, the M-by-N matrix A.
On exit,
if m <= n, the upper triangle of the subarray
A(1:m,n-m+1:n) contains the M-by-M upper triangular matrix R;
if m >= n, the elements on and above the (m-n)-th subdiagonal
contain the M-by-N upper trapezoidal matrix R;
the remaining elements, with the array TAU, represent the
unitary matrix Q as a product of min(m,n) elementary
reflectors (see Further Details).
LDA β¨
LDA is INTEGER
The leading dimension of the array A. LDA >= max(1,M).
TAU π
TAU is COMPLEX*16 array, dimension (min(M,N))
The scalar factors of the elementary reflectors (see Further
Details).
WORK π¦
WORK is COMPLEX*16 array, dimension (MAX(1,LWORK))
On exit, if INFO = 0, WORK(1) returns the optimal LWORK.
LWORK πΈ
LWORK is INTEGER
The dimension of the array WORK.
LWORK >= 1, if MIN(M,N) = 0, and LWORK >= M, otherwise.
For optimum performance LWORK >= M*NB, where NB is
the optimal blocksize.
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 π
INFO is INTEGER
= 0: successful exit
< 0: if INFO = -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 H(2)**H . . . H(k)**H, where k = min(m,n).
Each H(i) has the form
H(i) = I - tau * v * v**H
where tau is a complex scalar, and v is a complex vector with
v(n-k+i+1:n) = 0 and v(n-k+i) = 1; conjg(v(1:n-k+i-1)) is stored on
exit in A(m-k+i,1:n-k+i-1), and tau in TAU(i).
Definition at line 138 of file zgerqf.f.
Author π€ β auto-generated credit
Generated automatically by Doxygen for LAPACK from the source code.
okay that's the whole page, bestie π the footer says source/version LAPACK Version 3.12.0 and the page is gerqf(3) β no date is sitting on that footer line, so I'm not inventing one β¨ππ«Ά
π¦ 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