CTPQRT(3)
π CTPQRT(3) π
okay so bestie, welcome to the Library Functions Manual β¨ this one is CTPQRT, and she lives at /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/ctpqrt.f β yes that's the whole path, she's thorough π
πΈ NAME πΈ
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/ctpqrt.f
like... that's it. that's the name. the file path IS the name, and honestly? iconic. no further notes π
π¦ SYNOPSIS π¦
β¨ Functions/Subroutines β¨
subroutine CTPQRT (m, n, l, nb, a, lda, b, ldb, t, ldt, work, info)
CTPQRT (yes she's named after herself, main character energy π)
π Function/Subroutine Documentation π
subroutine CTPQRT (integer m, integer n, integer l, integer nb, complex,
dimension( lda, * ) a, integer lda, complex, dimension( ldb, * ) b,
integer ldb, complex, dimension( ldt, * ) t, integer ldt, complex,
dimension( * ) work, integer info)
CTPQRT π«Ά
π Purpose π
okay so here's the vibe: CTPQRT computes a blocked QR factorization of a complex matrix C, and C is built out of two besties β a triangular block A and a pentagonal block B β using the compact WY representation for Q. slay π
π Parameters π
Mβ INTEGER. the number of rows of the matrixB. and like,M >= 0, periodt.Nβ INTEGER. the number of columns of the matrixB, and also the order of the triangular matrixA.N >= 0ngl.Lβ INTEGER. the number of rows of the upper trapezoidal part ofB. constraint check bestie:MIN(M,N) >= L >= 0. see Further Details below for the whole story π¦NBβ INTEGER. the block size used in the blocked QR.N >= NB >= 1β no zero blocks allowed, we don't do that here β¨Aβ COMPLEX array, dimension(LDA,N). on entry: the upper triangularN-by-NmatrixA. on exit: the elements on and above the diagonal of the array contain the upper triangular matrixR. she transforms π«LDAβ INTEGER. the leading dimension of the arrayA.LDA >= max(1,N), non-negotiable.Bβ COMPLEX array, dimension(LDB,N). on entry: the pentagonalM-by-NmatrixB. the firstM-Lrows are rectangular, and the lastLrows are upper trapezoidal. on exit:Bcontains the pentagonal matrixVβ see Further Details πLDBβ INTEGER. the leading dimension of the arrayB.LDB >= max(1,M), keep up bestie.Tβ COMPLEX array, dimension(LDT,N). the upper triangular block reflectors, stored in compact form as a sequence of upper triangular blocks. Further Details has the receipts πLDTβ INTEGER. the leading dimension of the arrayT.LDT >= NB. that's the rule.WORKβ COMPLEX array, dimension(NB*N). she works πINFOβ INTEGER. the vibe check:= 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.
(academia said "we made this" and honestly, respect π«Ά)
π₯ Further Details: π₯
okay this is the part where it gets good, bestie. the input matrix C is a (N+M)-by-N matrix:
C = [ A ]
[ B ]
where A is an upper triangular N-by-N matrix, and B is an M-by-N pentagonal matrix consisting of a (M-L)-by-N rectangular matrix B1 on top of an L-by-N upper trapezoidal matrix B2:
B = [ B1 ] <- (M-L)-by-N rectangular
[ B2 ] <- L-by-N upper trapezoidal.
so the upper trapezoidal matrix B2 consists of the first L rows of an N-by-N upper triangular matrix, where 0 <= L <= MIN(M,N). if L=0, B is rectangular M-by-N; if M=L=N, B is upper triangular. cute how that works πΈ
the matrix W stores the elementary reflectors H(i) in the i-th column below the diagonal (of A) in the (N+M)-by-N input matrix C:
C = [ A ] <- upper triangular N-by-N
[ B ] <- M-by-N pentagonal
so that W can be represented as
W = [ I ] <- identity, N-by-N
[ V ] <- M-by-N, same form as B.
so like, all of the information needed for W is contained on exit in B, which we call V above (yes we renamed her mid-paragraph, keep up π). note that V has the same form as B; that is,
V = [ V1 ] <- (M-L)-by-N rectangular
[ V2 ] <- L-by-N upper trapezoidal.
the columns of V represent the vectors which define the H(i)'s β¨
and the number of blocks is B = ceiling(N/NB), where each block is of order NB except for the last block, which is of order IB = N - (B-1)*NB. for each of the B blocks, an upper triangular block reflector factor is computed: T1, T2, ..., TB. the NB-by-NB (and IB-by-IB for the last block) T's are stored in the NB-by-N matrix T as
T = [T1 T2 ... TB].
ngl if you got lost in the block math, that's valid β but fr fr every T is accounted for, no cap π
β Definition at line 187 of file ctpqrt.f. β
π Author π
Generated automatically by Doxygen for LAPACK from the source code. (yes the docs wrote themselves, we love an autonomous queen π§)
and that's the whole page bestie!! π this was LAPACK Version 3.12.0, and you can find her at /home/abui...RC/ctpqrt.f(3) β go forth and factorize your blocked QR, slay, periodt β¨π¦π
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms