/home/abui...t01_rook.f(3)
π
/home/abui...t01_rook.f(3) β Library Functions Manual, bestie edition β¨
okay so picture this: it's a Library Functions Manual page, and it's about one singular little icon in the LAPACK lineup. no cap, this is the whole vibe. π«Ά
πΈ NAME πΈ
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/LIN/zhet01_rook.f
like... yes that's the whole name, she's got a long government name and she's owning it π long path energy, iykyk.
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine ZHET01_ROOK (uplo, n, a, lda, afac, ldafac, ipiv, c, ldc,
rwork, resid)
ZHET01_ROOK
one subroutine, eleven arguments, zero chill. she ate. π₯
β Function/Subroutine Documentation β
subroutine ZHET01_ROOK (character uplo, integer n, complex*16, dimension(
lda, * ) a, integer lda, complex*16, dimension( ldafac, * ) afac,
integer ldafac, integer, dimension( * ) ipiv, complex*16, dimension(
ldc, * ) c, integer ldc, double precision, dimension( * ) rwork, double
precision resid)
ZHET01_ROOK β say it with me, main character energy π
π Purpose π
so the whole entire point of her, fr fr:
ZHET01_ROOKreconstructs a complex Hermitian indefinite matrix A from its blockL*D*L'orU*D*U'factorization and computes the residualnorm( C - A ) / ( N * norm(A) * EPS ),where C is the reconstructed matrix, EPS is the machine epsilon,L'is the transpose of L, andU'is the transpose of U.
like she literally rebuilds A from the factorization and then checks how close she got. that's the gig. that's the whole gig. π
β¨ Parameters β¨
π UPLO
UPLOisCHARACTER*1Specifies whether the upper or lower triangular part of the complex Hermitian matrix A is stored: ='U': Upper triangular ='L': Lower triangular
bestie it's an either/or situation, pick a lane π upper or lower, no in-between, she does not do ambiguity.
π N
NisINTEGERThe number of rows and columns of the matrix A.N >= 0.
rows and columns, same number, square queen that she is. and N >= 0 β she does not do negative, that's giving undefined behavior and we don't go there π«Ά
πΈ A
AisCOMPLEX*16array, dimension(LDA,N)The original complex Hermitian matrix A.
the original. the blueprint. the before picture. the source material β¨
π LDA
LDAisINTEGERThe leading dimension of the array A.LDA >= max(1,N)
the leading dimension, aka how much room A gets to stretch out. and LDA >= max(1,N) β respect the boundary, it's a vibe check π
π AFAC
AFACisCOMPLEX*16array, dimension(LDAFAC,N)The factored form of the matrix A.AFACcontains the block diagonal matrix D and the multipliers used to obtain the factor L or U from the blockL*D*L'orU*D*U'factorization as computed byCSYTRF_ROOK.
ok so this is the after picture β D plus the multipliers, all up in there, exactly as CSYTRF_ROOK handed them over. keep the name CSYTRF_ROOK exactly as-is, don't come for me, that's what the page says π
π§ LDAFAC
LDAFACisINTEGERThe leading dimension of the array AFAC.LDAFAC >= max(1,N).
AFAC's personal space allocation. LDAFAC >= max(1,N), no exceptions, periodt π
π₯ IPIV
IPIVisINTEGERarray, dimension(N)The pivot indices fromCSYTRF_ROOK.
the pivot indices, straight from CSYTRF_ROOK, no middleman π«Ά
π¦ C
CisCOMPLEX*16array, dimension(LDC,N)
that's the reconstructed matrix from up in the Purpose section, showing up again like the main character she is π
β LDC
LDCisINTEGERThe leading dimension of the array C.LDC >= max(1,N).
same rules as her sisters, LDC >= max(1,N) β the whole family is consistent, we love that for them πΈ
π RWORK
RWORKisDOUBLE PRECISIONarray, dimension(N)
double precision workspace, dimension (N), just doing her little job in the background π§
π RESID
RESIDisDOUBLE PRECISIONIfUPLO = 'L',norm(L*D*L' - A) / ( N * norm(A) * EPS )IfUPLO = 'U',norm(U*D*U' - A) / ( N * norm(A) * EPS )
THE RESIDUAL. the moment of truth. the report card π and look at her being all conditional about it β lower triangular gets L*D*L', upper triangular gets U*D*U', both divided by N * norm(A) * EPS. iconic behavior, truly π
π«Ά Author π«Ά
shoutout to the legends, no cap:
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 123 of file zhet01_rook.f. line one hundred twenty-three, she's got lore π
π Author π
Generated automatically by Doxygen for LAPACK from the source code. so nobody hand-wrote this beauty, the robot did it and honestly? she understood the assignment π€β¨
lowkey reminder bestie:AFAC,IPIVand the pivots all have to line up with whatCSYTRF_ROOKproduced, andLDA,LDAFAC,LDCall want>= max(1,N). go off-script and that's on you π
mwah π that's the whole page! LAPACK, Version 3.12.0, and this little masterpiece lives at /home/abui...t01_rook.f(3) β see you in the group chat, bestie ππβ¨
π¦ 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