SRC/zgelq.f(3)
π NAME π
SRC/zgelq.f β thatβs the whole name, bestie. This page is from the Library Functions Manual, and itβs serving serious main-character LAPACK energy. π
β¨ SYNOPSIS β¨
Under Functions/Subroutines, the short version is:
subroutine zgelq (m, n, a, lda, t, tsize, work, lwork, info)
ZGELQ
π Function/Subroutine Documentation π
π¦ The full signature, no cap π¦
subroutine zgelq (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)
ZGELQ
πΈ Purpose πΈ
Okay so hereβs the vibe: ZGELQ computes an LQ factorization of a complex M-by-N matrix A:
A = ( L 0 ) * Q
where:
Qis a N-by-N orthogonal matrix;Lis a lower-triangular M-by-M matrix;0is a M-by-(N-M) zero matrix, ifM < N.
π«Ά Parameters π«Ά
MβINTEGER. The number of rows of the matrixA.M >= 0.NβINTEGER. The number of columns of the matrixA.N >= 0.AβCOMPLEX*16 array, dimension (LDA,N). On entry, the M-by-N matrixA. On exit, the elements on and below the diagonal of the array contain the M-by-min(M,N) lower trapezoidal matrixL(Lis lower triangular ifM <= N); the elements above the diagonal are used to store part of the data structure to representQ.LDAβINTEGER. The leading dimension of the arrayA.LDA >= max(1,M).TβCOMPLEX*16 array, 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β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*16 array, 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β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βINTEGER.= 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 goal of the interface is to give maximum freedom to the developers for creating any LQ factorization algorithm they wish. The triangular (trapezoidal) L has to be stored in the lower 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, bestie: 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
ZLASWLQ or ZGELQT
Depending on the matrix dimensions M and N, and row and column block sizes MB and NB returned by ILAENV, ZGELQ will use either ZLASWLQ (if the matrix is short-and-wide) or ZGELQT to compute the LQ factorization.
Definition at line 172 of file zgelq.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
Okay thatβs the whole page, bestie β no details skipped, no flags invented, just pure LAPACK fairy dust. π§ββοΈβ¨ This absolute icon of a page is from LAPACK, Version 3.12.0, and the file is SRC/zgelq.f(3). Go slay your factorization. ππ
π¦ 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