SRC/cungrq.f(3)
π SRC/cungrq.f(3) π
okay bestie, this one's from the Library Functions Manual, and it's giving βcomplex matrix glow-upβ energy. It's all about SRC/cungrq.f and the subroutine CUNGRQ. π¦
β¨ NAME β¨
SRC/cungrq.f β home of CUNGRQ, the routine that builds an M-by-N complex matrix Q with orthonormal rows from the reflectors returned by CGERQF. π
πΈ SYNOPSIS πΈ
Functions/Subroutines
subroutine cungrq (m, n, k, a, lda, tau, work, lwork, info)βCUNGRQ
π¦ Function/Subroutine Documentation π¦
π subroutine cungrq π
subroutine cungrq (integer m, integer n, integer k, complex, dimension( lda,
* ) a, integer lda, complex, dimension( * ) tau, complex, dimension( * )
work, integer lwork, integer info)
CUNGRQ
π― Purpose
Bestie, CUNGRQ generates an M-by-N complex matrix Q with orthonormal rows. It's defined as the last M rows of a product of K elementary reflectors of order N, like this:
Q = H(1)**H H(2)**H . . . H(k)**H
...and it's exactly what CGERQF hands back. β¨
π Parameters
MβINTEGER. The number of rows of the matrixQ.M >= 0.NβINTEGER. The number of columns of the matrixQ.N >= M.KβINTEGER. The number of elementary reflectors whose product defines the matrixQ.M >= K >= 0.AβCOMPLEX 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 byCGERQFin the lastkrows of its array argumentA. On exit, theM-by-NmatrixQ.LDAβINTEGER. The first dimension of the arrayA.LDA >= max(1,M).TAUβCOMPLEX array, dimension (K).TAU(i)must contain the scalar factor of the elementary reflectorH(i), as returned byCGERQF.WORKβCOMPLEX array, dimension (MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβINTEGER. The dimension of the arrayWORK.LWORK >= max(1,M). For optimum performanceLWORK >= M*NB, whereNBis 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βINTEGER.= 0: successful exit< 0: ifINFO = -i, thei-th argument has an illegal value
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π§ Definition
Definition at line 127 of file cungrq.f.
π Author
Generated automatically by Doxygen for LAPACK from the source code.
That's the whole page, bestie! LAPACK Version 3.12.0, source SRC/cungrq.f(3), and yes, she ate. πβ¨
π¦ 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