tplqt(3)
π tplqt(3) β Library Functions Manual π
okay bestie so this is tplqt from the Library Functions Manual (that's section 3, the "library functions" girlies) β and before you ask, yes, the NAME section literally says:
β¨ NAME β¨
tplqt β and the one-line description is "tplqt: QR factor". That's it. That's the whole summary. She's mysterious, she's concise, she contains multitudes. π¦
πΈ SYNOPSIS πΈ
Functions
subroutine ctplqt (m, n, l, mb, a, lda, b, ldb, t, ldt, work, info)β CTPLQT πsubroutine dtplqt (m, n, l, mb, a, lda, b, ldb, t, ldt, work, info)β DTPLQT πsubroutine stplqt (m, n, l, mb, a, lda, b, ldb, t, ldt, work, info)β STPLQT πsubroutine ztplqt (m, n, l, mb, a, lda, b, ldb, t, ldt, work, info)β ZTPLQT π
so yeah, four of them β one per precision/flavour β and they all take the exact same argument list. iconic consistency, no notes. π
π Detailed Description π
okay so the page has a whole Detailed Description heading and then... genuinely nothing under it. she's a blank canvas. a vibe. we move on to the good part. π
π₯ Function Documentation π₯
β subroutine ctplqt β
subroutine ctplqt (integer m, integer n, integer l, integer mb, complex,
dimension( lda, * ) a, integer lda, complex, dimension( ldb, * ) b,
integer ldb, complex, dimension( ldt, * ) t, integer ldt, complex,
dimension( * ) work, integer info)
CTPLQT β this is the complex one, bestie. π«Ά
π Purpose:
CTPLQT computes a blocked LQ factorization of a complex matrix C, and C is made of two pieces: a triangular block A and a pentagonal block B, all using the compact WY representation for Q. that's the whole assignment. periodt.
π Parameters
MβMis INTEGER. it's the number of rows of the matrixB, and also the order of the triangular matrixA.M >= 0.NβNis INTEGER. the number of columns of the matrixB.N >= 0.LβLis INTEGER. the number of rows of the lower trapezoidal part ofB.MIN(M,N) >= L >= 0. peep Further Details if you want the tea. πMBβMBis INTEGER. the block size to be used in the blocked QR.M >= MB >= 1.AβAis COMPLEX array, dimension(LDA,M). on entry, it's the lower triangular M-by-M matrixA. on exit, the elements on and below the diagonal of the array contain the lower triangular matrixL. glow-up fr fr β¨LDAβLDAis INTEGER. the leading dimension of the arrayA.LDA >= max(1,M).BβBis COMPLEX array, dimension(LDB,N). on entry, it's the pentagonal M-by-N matrixBβ the firstN-Lcolumns are rectangular, and the lastLcolumns are lower trapezoidal. on exit,Bcontains the pentagonal matrixV(see Further Details). she changed outfits mid-scene πLDBβLDBis INTEGER. the leading dimension of the arrayB.LDB >= max(1,M).TβTis COMPLEX array, dimension(LDT,N). the lower triangular block reflectors stored in compact form as a sequence of upper triangular blocks. see Further Details.LDTβLDTis INTEGER. the leading dimension of the arrayT.LDT >= MB.WORKβWORKis COMPLEX array, dimension(MB*M).INFOβINFOis 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:
okay this is the part where she gets detailed. stay with me.
the input matrix C is a M-by-(M+N) matrix:
C = [ A ] [ B ]
where A is a lower triangular M-by-M matrix, and B is a M-by-N pentagonal matrix consisting of a M-by-(N-L) rectangular matrix B1 on the left of a M-by-L upper trapezoidal matrix B2:
[B ] = [ B1 ] [ B2 ]
[ B1 ] <- M-by-(N-L) rectangular
[ B2 ] <- M-by-L lower trapezoidal.
the lower trapezoidal matrix B2 consists of the first L columns of a M-by-M lower triangular matrix, where 0 <= L <= MIN(M,N). if L=0, B is rectangular M-by-N; if M=L=N, B is lower triangular. cute lil special cases, love that for her. π
the matrix W stores the elementary reflectors H(i) in the i-th row above the diagonal (of A) in the M-by-(M+N) input matrix C:
[ C ] = [ A ] [ B ]
[ A ] <- lower triangular M-by-M
[ B ] <- M-by-N pentagonal
so that W can be represented as:
[ W ] = [ I ] [ V ]
[ I ] <- identity, M-by-M
[ V ] <- M-by-N, same form as B.
thus, all of the information needed for W is contained on exit in B, which we call V above. note that V has the same form as B, that is:
[ V ] = [ V1 ] [ V2 ]
[ V1 ] <- M-by-(N-L) rectangular
[ V2 ] <- M-by-L lower trapezoidal.
the rows of V represent the vectors which define the H(i)'s. π«Ά
the number of blocks is B = ceiling(M/MB), where each block is of order MB except for the last block, which is of order IB = M - (M-1)*MB. for each of the B blocks, an upper triangular block reflector factor is computed: T1, T2, ..., TB. the MB-by-MB (and IB-by-IB for the last block) T's are stored in the MB-by-N matrix T as:
T = [T1 T2 ... TB].
Definition at line 172 of file ctplqt.f.
β subroutine dtplqt β
subroutine dtplqt (integer m, integer n, integer l, integer mb, double
precision, dimension( lda, * ) a, integer lda, double precision,
dimension( ldb, * ) b, integer ldb, double precision, dimension( ldt, *
) t, integer ldt, double precision, dimension( * ) work, integer info)
DTPLQT β same energy, but make it DOUBLE PRECISION. π―
π Purpose:
DTPLQT computes a blocked LQ factorization of a real matrix C, which is composed of a triangular block A and a pentagonal block B, using the compact WY representation for Q. no cap.
π Parameters
MβMis INTEGER. the number of rows of the matrixB, and the order of the triangular matrixA.M >= 0.NβNis INTEGER. the number of columns of the matrixB.N >= 0.LβLis INTEGER. the number of rows of the lower trapezoidal part ofB.MIN(M,N) >= L >= 0. see Further Details.MBβMBis INTEGER. the block size to be used in the blocked QR.M >= MB >= 1.AβAis DOUBLE PRECISION array, dimension(LDA,M). on entry, the lower triangular M-by-M matrixA. on exit, the elements on and below the diagonal of the array contain the lower triangular matrixL.LDAβLDAis INTEGER. the leading dimension of the arrayA.LDA >= max(1,M).BβBis DOUBLE PRECISION array, dimension(LDB,N). on entry, the pentagonal M-by-N matrixBβ the firstN-Lcolumns are rectangular, and the lastLcolumns are lower trapezoidal. on exit,Bcontains the pentagonal matrixV. see Further Details.LDBβLDBis INTEGER. the leading dimension of the arrayB.LDB >= max(1,M).TβTis DOUBLE PRECISION array, dimension(LDT,N). the lower triangular block reflectors stored in compact form as a sequence of upper triangular blocks. see Further Details.LDTβLDTis INTEGER. the leading dimension of the arrayT.LDT >= MB.WORKβWORKis DOUBLE PRECISION array, dimension(MB*M).INFOβINFOis 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 input matrix C is a M-by-(M+N) matrix:
C = [ A ] [ B ]
where A is a lower triangular M-by-M matrix, and B is a M-by-N pentagonal matrix consisting of a M-by-(N-L) rectangular matrix B1 on the left of a M-by-L upper trapezoidal matrix B2:
[B ] = [ B1 ] [ B2 ]
[ B1 ] <- M-by-(N-L) rectangular
[ B2 ] <- M-by-L lower trapezoidal.
the lower trapezoidal matrix B2 consists of the first L columns of a M-by-M lower triangular matrix, where 0 <= L <= MIN(M,N). if L=0, B is rectangular M-by-N; if M=L=N, B is lower triangular. β
the matrix W stores the elementary reflectors H(i) in the i-th row above the diagonal (of A) in the M-by-(M+N) input matrix C:
[ C ] = [ A ] [ B ]
[ A ] <- lower triangular M-by-M
[ B ] <- M-by-N pentagonal
so that W can be represented as:
[ W ] = [ I ] [ V ]
[ I ] <- identity, M-by-M
[ V ] <- M-by-N, same form as B.
thus, all of the information needed for W is contained on exit in B, which we call V above. note that V has the same form as B, that is:
[ V ] = [ V1 ] [ V2 ]
[ V1 ] <- M-by-(N-L) rectangular
[ V2 ] <- M-by-L lower trapezoidal.
the rows of V represent the vectors which define the H(i)'s.
the number of blocks is B = ceiling(M/MB), where each block is of order MB except for the last block, which is of order IB = M - (M-1)*MB. for each of the B blocks, an upper triangular block reflector factor is computed: T1, T2, ..., TB. the MB-by-MB (and IB-by-IB for the last block) T's are stored in the MB-by-N matrix T as:
T = [T1 T2 ... TB].
Definition at line 187 of file dtplqt.f.
β subroutine stplqt β
subroutine stplqt (integer m, integer n, integer l, integer mb, real,
dimension( lda, * ) a, integer lda, real, dimension( ldb, * ) b, integer
ldb, real, dimension( ldt, * ) t, integer ldt, real, dimension( * )
work, integer info)
STPLQT β the single-precision one, and she's next up on the scroll, bestie...
π Purpose:
(...and that's literally where this part of the page runs out β STPLQT's purpose and everything after it is coming in part 2, so don't go anywhere πΈ)
okay so we're back and we're literally right in the STPLQT parameter zone β no cap, no recap spam. Quick vibe check first: STPLQT computes a blocked LQ factorization of a real matrix C, which is composed of a triangular block A and pentagonal block B, using the compact WY representation for Q. That's the whole main-character plot. π
β¨ Parameters β¨
MβINTEGER. The number of rows of the matrixB, and the order of the triangular matrixA.M >= 0.NβINTEGER. The number of columns of the matrixB.N >= 0.LβINTEGER. The number of rows of the lower trapezoidal part ofB.MIN(M,N) >= L >= 0.See Further Details.MBβINTEGER. The block size to be used in the blocked QR.M >= MB >= 1.AβREALarray, dimension(LDA,M). On entry, the lower triangular M-by-M matrixA. On exit, the elements on and below the diagonal of the array contain the lower triangular matrixL.LDAβINTEGER. The leading dimension of the arrayA.LDA >= max(1,M).BβREALarray, dimension(LDB,N). On entry, the pentagonal M-by-N matrixB. The firstN-Lcolumns are rectangular, and the lastLcolumns are lower trapezoidal. On exit,Bcontains the pentagonal matrixV. See Further Details.LDBβINTEGER. The leading dimension of the arrayB.LDB >= max(1,M).TβREALarray, dimension(LDT,N). The lower triangular block reflectors stored in compact form as a sequence of upper triangular blocks. See Further Details.LDTβINTEGER. The leading dimension of the arrayT.LDT >= MB.WORKβREALarray, dimension(MB*M)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 input matrix C is a M-by-(M+N) matrix
The input matrix C is a M-by-(M+N) matrix
C = [ A ] [ B ]
where A is an lower triangular M-by-M matrix, and B is M-by-N pentagonal
matrix consisting of a M-by-(N-L) rectangular matrix B1 on left of a M-by-L
upper trapezoidal matrix B2:
[ B ] = [ B1 ] [ B2 ]
[ B1 ] <- M-by-(N-L) rectangular
[ B2 ] <- M-by-L lower trapezoidal.
The lower trapezoidal matrix B2 consists of the first L columns of a
M-by-M lower triangular matrix, where 0 <= L <= MIN(M,N). If L=0,
B is rectangular M-by-N; if M=L=N, B is lower triangular.
The matrix W stores the elementary reflectors H(i) in the i-th row
above the diagonal (of A) in the M-by-(M+N) input matrix C
[ C ] = [ A ] [ B ]
[ A ] <- lower triangular M-by-M
[ B ] <- M-by-N pentagonal
so that W can be represented as
[ W ] = [ I ] [ V ]
[ I ] <- identity, M-by-M
[ V ] <- M-by-N, same form as B.
Thus, all of information needed for W is contained on exit in B, which
we call V above. Note that V has the same form as B; that is,
[ V ] = [ V1 ] [ V2 ]
[ V1 ] <- M-by-(N-L) rectangular
[ V2 ] <- M-by-L lower trapezoidal.
The rows of V represent the vectors which define the H(i)'s.
The number of blocks is B = ceiling(M/MB), where each
block is of order MB except for the last block, which is of order
IB = M - (M-1)*MB. For each of the B blocks, a upper triangular block
reflector factor is computed: T1, T2, ..., TB. The MB-by-MB (and IB-by-IB
for the last block) T's are stored in the MB-by-N matrix T as
T = [T1 T2 ... TB].
Definition at line 187 of file stplqt.f.
π ztplqt β the complex*16 twin π
subroutine ztplqt (integer m, integer n, integer l, integer mb, complex*16,
dimension( lda, * ) a, integer lda, complex*16, dimension( ldb, * ) b,
integer ldb, complex*16, dimension( ldt, * ) t, integer ldt, complex*16,
dimension( * ) work, integer info)
ZTPLQT
β¨ Purpose β¨
ZTPLQT computes a blocked LQ factorization of a complex matrix C, which is composed of a triangular block A and pentagonal block B, using the compact WY representation for Q.
β¨ Parameters β¨
MβINTEGER. The number of rows of the matrixB, and the order of the triangular matrixA.M >= 0.NβINTEGER. The number of columns of the matrixB.N >= 0.LβINTEGER. The number of rows of the lower trapezoidal part ofB.MIN(M,N) >= L >= 0.See Further Details.MBβINTEGER. The block size to be used in the blocked QR.M >= MB >= 1.AβCOMPLEX*16array, dimension(LDA,M). On entry, the lower triangular M-by-M matrixA. On exit, the elements on and below the diagonal of the array contain the lower triangular matrixL.LDAβINTEGER. The leading dimension of the arrayA.LDA >= max(1,M).BβCOMPLEX*16array, dimension(LDB,N). On entry, the pentagonal M-by-N matrixB. The firstN-Lcolumns are rectangular, and the lastLcolumns are lower trapezoidal. On exit,Bcontains the pentagonal matrixV. See Further Details.LDBβINTEGER. The leading dimension of the arrayB.LDB >= max(1,M).TβCOMPLEX*16array, dimension(LDT,N). The lower triangular block reflectors stored in compact form as a sequence of upper triangular blocks. See Further Details.LDTβINTEGER. The leading dimension of the arrayT.LDT >= MB.WORKβCOMPLEX*16array, dimension(MB*M)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 input matrix C is a M-by-(M+N) matrix
The input matrix C is a M-by-(M+N) matrix
C = [ A ] [ B ]
where A is an lower triangular M-by-M matrix, and B is M-by-N pentagonal
matrix consisting of a M-by-(N-L) rectangular matrix B1 on left of a M-by-L
upper trapezoidal matrix B2:
[ B ] = [ B1 ] [ B2 ]
[ B1 ] <- M-by-(N-L) rectangular
[ B2 ] <- M-by-L lower trapezoidal.
The lower trapezoidal matrix B2 consists of the first L columns of a
M-by-M lower triangular matrix, where 0 <= L <= MIN(M,N). If L=0,
B is rectangular M-by-N; if M=L=N, B is lower triangular.
The matrix W stores the elementary reflectors H(i) in the i-th row
above the diagonal (of A) in the M-by-(M+N) input matrix C
[ C ] = [ A ] [ B ]
[ A ] <- lower triangular M-by-M
[ B ] <- M-by-N pentagonal
so that W can be represented as
[ W ] = [ I ] [ V ]
[ I ] <- identity, M-by-M
[ V ] <- M-by-N, same form as B.
Thus, all of information needed for W is contained on exit in B, which
we call V above. Note that V has the same form as B; that is,
[ V ] = [ V1 ] [ V2 ]
[ V1 ] <- M-by-(N-L) rectangular
[ V2 ] <- M-by-L lower trapezoidal.
The rows of V represent the vectors which define the H(i)'s.
The number of blocks is B = ceiling(M/MB), where each
block is of order MB except for the last block, which is of order
IB = M - (M-1)*MB. For each of the B blocks, a upper triangular block
reflector factor is computed: T1, T2, ..., TB. The MB-by-MB (and IB-by-IB
for the last block) T's are stored in the MB-by-N matrix T as
T = [T1 T2 ... TB].
Definition at line 187 of file ztplqt.f.
β¨ Author β¨
Generated automatically by Doxygen for LAPACK from the source code.
and that's the whole tplqt(3) page, bestie β the footer's whole flex is LAPACK Version 3.12.0 with the page name tplqt(3), and it ate. 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