SRC/zgerq2.f(3)
β¨ NAME β¨
SRC/zgerq2.f β from the Library Functions Manual, bestie. This is the source page for zgerq2, the unblocked RQ factorization icon. π
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine zgerq2 (m, n, a, lda, tau, work, info)β ZGERQ2 computes the RQ factorization of a general rectangular matrix using an unblocked algorithm.
β¨ Function/Subroutine Documentation β¨
Here's the whole signature, no cap:
subroutine zgerq2 (integer m, integer n, complex*16, dimension( lda, * ) a,
integer lda, complex*16, dimension( * ) tau, complex*16, dimension( * )
work, integer info)
ZGERQ2 computes the RQ factorization of a general rectangular matrix using an unblocked algorithm.
Purpose:
okay so the main character moment: ZGERQ2 computes an RQ factorization of a complex m by n matrix A, and it's literally:
A = R * Q.
Parameters
MβM is INTEGER; the number of rows of the matrixA.M >= 0. π¦NβN is INTEGER; the number of columns of the matrixA.N >= 0. π¦AβA is COMPLEX*16 array, 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 matrixR; ifm >= n, the elements on and above the(m-n)-th subdiagonal contain the m by n upper trapezoidal matrixR; the remaining elements, with the arrayTAU, represent the unitary matrixQas a product of elementary reflectors (see Further Details). π₯LDAβLDA is INTEGER; the leading dimension of the arrayA.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 (M). π§INFOβINFO is INTEGER;= 0: successful exit;< 0: ifINFO = -i, thei-th argument had an illegal value. π
Author
Shoutout to the legends who brought you this routine:
- 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 122 of file zgerq2.f.
β¨ Author β¨
This page was generated automatically by Doxygen for LAPACK from the source code. (iykyk π)
And finally, the vibe check footer: LAPACK, Version 3.12.0, from SRC/zgerq2.f(3). 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