CTZRZF(3)
π CTZRZF(3) β like, the LAPACK one, bestie
okay so real talk: this page lives in the Library Functions Manual section of your man pages, and it's about a Fortran subroutine that is honestly kind of iconic once you get what it's doing. the file it came from is literally:
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/ctzrzf.f
no cap, that's the NAME section. it's giving "the path is the name" energy and we respect it. π
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine CTZRZF (m, n, a, lda, tau, work, lwork, info)
CTZRZF
π¦ Function/Subroutine Documentation π¦
subroutine CTZRZF (integer m, integer n, complex, dimension( lda, * ) a,
integer lda, complex, dimension( * ) tau, complex, dimension( * ) work,
integer lwork, integer info)
CTZRZF
π Purpose π
okay so here's the whole vibe, bestie:
CTZRZF reduces the M-by-N ( M<=N ) complex upper trapezoidal matrix A to upper triangular form by means of unitary transformations. slay. β¨
the upper trapezoidal matrix A is factored as
A = ( R 0 ) * Z,
where Z is an N-by-N unitary matrix and R is an M-by-M upper triangular matrix. literally that's it, that's the whole plot. π
πΈ Parameters πΈ
MβM is INTEGER. the number of rows of the matrix A.M >= 0. no negativity allowed, we're manifesting positivity only. π«ΆNβN is INTEGER. the number of columns of the matrix A.N >= M. yeah, it's gotta be at least as wide as it is tall. iykyk.AβA is COMPLEX array, dimension (LDA,N). on entry, the leading M-by-N upper trapezoidal part of the array A must contain the matrix to be factorized. on exit, the leading M-by-M upper triangular part of A contains the upper triangular matrix R, and elements M+1 to N of the first M rows of A, with the array TAU, represent the unitary matrix Z as a product of M elementary reflectors. so A is doing double duty, main character energy tbh. πLDAβLDA is INTEGER. the leading dimension of the array A.LDA >= max(1,M). don't skimp on this one, the vibe check is strict.TAUβTAU is COMPLEX array, dimension (M). the scalar factors of the elementary reflectors. little guys, huge responsibility. πWORKβWORK is COMPLEX array, dimension (MAX(1,LWORK)). on exit, ifINFO = 0,WORK(1)returns the optimal LWORK. it's a workspace, it works. πLWORKβLWORK is INTEGER. the dimension of the array WORK.LWORK >= max(1,M). for optimum performanceLWORK >= M*NB, where NB is the optimal blocksize.
bestie listen: ifLWORK = -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. so like,-1isn't "bad", it's "asking politely". π§
INFOβINFO is 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.
π Contributors: π
A. Petitet, Computer Science Dept., Univ. of Tenn., Knoxville, USA
π₯ Further Details: π₯
okay this is the part where it gets cute, so pay attention bestie:
the N-by-N matrix Z can be computed by
Z = Z(1)*Z(2)* ... *Z(M)
where each N-by-N Z(k) is given by
Z(k) = I - tau(k)*v(k)*v(k)**H
with v(k) is the kth row vector of the M-by-N matrix
V = ( I A(:,M+1:N) )
I is the M-by-M identity matrix, A(:,M+1:N) is the output stored in A on exit from CTZRZF, and tau(k) is the kth element of the array TAU.
see? it all connects. obsessed. π¦
Definition at line 150 of file ctzrzf.f.
πΈ Author πΈ
Generated automatically by Doxygen for LAPACK from the source code.
and that's the whole page, bestie β no notes, ate and left no crumbs π
β¨ so like, this was LAPACK, Version 3.12.0, straight out of /home/abui...RC/ctzrzf.f(3) β catch you in the next man page, mwah πππ«Ά
π¦ 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