SRC/zgeqr.f(3)
πΈ NAME πΈ
SRC/zgeqr.f β bestie, this is the page from the Library Functions Manual, and the star is zgeqr. π
β¨ SYNOPSIS β¨
π οΈ Functions/Subroutines π οΈ
subroutine zgeqr (m, n, a, lda, t, tsize, work, lwork, info)β ZGEQR
π«Ά Function/Subroutine Documentation π«Ά
subroutine zgeqr (integer m, integer n, complex*16, dimension( lda, * ) a,
integer lda, complex*16, dimension( * ) t, integer tsize, complex*16,
dimension( * ) work, integer lwork, integer info)
ZGEQR β iconic, no cap. π
π¦ Purpose π¦
Okay so ZGEQR computes a QR factorization of a complex M-by-N matrix A, literally:
A = Q * ( R ),
( 0 )
where:
Qis a M-by-M orthogonal matrix;Ris an upper-triangular N-by-N matrix;0is a (M-N)-by-N zero matrix, ifM > N.
π Parameters π
MβMis INTEGER. The number of rows of the matrixA.M >= 0.NβNis INTEGER. The number of columns of the matrixA.N >= 0.AβAisCOMPLEX*16array, dimension(LDA,N). On entry, the M-by-N matrixA. On exit, the elements on and above the diagonal of the array contain themin(M,N)-by-N upper trapezoidal matrixR(Ris upper triangular ifM >= N); the elements below the diagonal are used to store part of the data structure to representQ.LDAβLDAis INTEGER. The leading dimension of the arrayA.LDA >= max(1,M).TβTisCOMPLEX*16array, dimension(MAX(5,TSIZE)). On exit, ifINFO = 0,T(1)returns optimal (or either minimal or optimal, if query is assumed)TSIZE. SeeTSIZEfor details. RemainingTcontains part of the data structure used to representQ. If one wants to apply or constructQ, then one needs to keepT(in addition toA) and pass it to further subroutines.TSIZEβTSIZEis INTEGER. IfTSIZE >= 5, the dimension of the arrayT. IfTSIZE = -1or-2, then a workspace query is assumed. The routine only calculates the sizes of theTandWORKarrays, returns these values as the first entries of theTandWORKarrays, and no error message related toTorWORKis issued byXERBLA. IfTSIZE = -1, the routine calculates optimal size ofTfor the optimum performance and returns this value inT(1). IfTSIZE = -2, the routine calculates minimal size ofTand returns this value inT(1).WORKβ(workspace)COMPLEX*16array, dimension(MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)contains optimal (or either minimal or optimal, if query was assumed)LWORK. SeeLWORKfor details.LWORKβLWORKis INTEGER. The dimension of the arrayWORK.LWORK >= 1. IfLWORK = -1or-2, then a workspace query is assumed. The routine only calculates the sizes of theTandWORKarrays, returns these values as the first entries of theTandWORKarrays, and no error message related toTorWORKis issued byXERBLA. IfLWORK = -1, the routine calculates optimal size ofWORKfor the optimal performance and returns this value inWORK(1). IfLWORK = -2, the routine calculates minimal size ofWORKand returns this value inWORK(1).INFOβINFOis INTEGER.= 0: successful exit.< 0: ifINFO = -i, thei-th argument had an illegal value.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Further Details π
The goal of the interface is to give maximum freedom to the developers for creating any QR factorization algorithm they wish. The triangular (trapezoidal) R has to be stored in the upper part of A. The lower part of A and the array T can be used to store any relevant information for applying or constructing the Q factor. The WORK array can safely be discarded after exit.
Caution: One should not expect the sizes ofTandWORKto be the same from one LAPACK implementation to the other, or even from one execution to the other. A workspace query (forTandWORK) is needed at each execution. However, for a given execution, the size ofTandWORKare fixed and will not change from one query to the next.
π§ Further Details particular to this LAPACK implementation π§
These details are particular for this LAPACK implementation. Users should not take them for granted. These details may change in the future, and are not likely true for another LAPACK implementation. These details are relevant if one wants to try to understand the code. They are not part of the interface.
In this version,
T(2): row block size (MB)
T(3): column block size (NB)
T(6:TSIZE): data structure needed for Q, computed by
ZLATSQR or ZGEQRT
Depending on the matrix dimensions M and N, and row and column block sizes MB and NB returned by ILAENV, ZGEQR will use either ZLATSQR (if the matrix is tall-and-skinny) or ZGEQRT to compute the QR factorization.
π Definition at line 174 of file zgeqr.f.
Definition at line 174 of file zgeqr.f.
π« Author π«
Generated automatically by Doxygen for LAPACK from the source code.
okay thatβs the whole page, bestie β mwah π. Sign-off vibe: LAPACK Version 3.12.0, source SRC/zgeqr.f(3); the footer has no date, so Iβm not inventing one, 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