SRC/zhesv_rook.f(3)
π NAME π
Okay so this is the Library Functions Manual page for SRC/zhesv_rook.f(3), and bestie, the actual NAME is literally SRC/zhesv_rook.f β the Fortran home of zhesv_rook. Slay. π
β¨ SYNOPSIS β¨
π«Ά Functions/Subroutines π«Ά
subroutine zhesv_rook (uplo, n, nrhs, a, lda, ipiv, b, ldb, work, lwork, info)β ZHESV_ROOK computes the solution to a system of linear equationsA * X = Bfor HE matrices using the bounded Bunch-Kaufman ("rook") diagonal pivoting method. Iconic.
πΈ Function/Subroutine Documentation πΈ
π subroutine zhesv_rook π
The full typed-out signature, no cap:
subroutine zhesv_rook (character uplo, integer n, integer nrhs, complex*16,
dimension( lda, * ) a, integer lda, integer, dimension( * ) ipiv,
complex*16, dimension( ldb, * ) b, integer ldb, complex*16, dimension( *
) work, integer lwork, integer info)
The tagline is exactly: ZHESV_ROOK computes the solution to a system of linear equations A * X = B for HE matrices using the bounded Bunch-Kaufman ("rook") diagonal pivoting method. Obsessed with her. π
π¦ Purpose π¦
- Computes a complex system of linear equations
A * X = B, whereAis anN-by-NHermitian matrix andXandBareN-by-NRHSmatrices. - The bounded Bunch-Kaufman ("rook") diagonal pivoting method is used to factor
Aas
A = U * D * U**T, if UPLO = 'U', or
A = L * D * L**T, if UPLO = 'L',
where U (or L) is a product of permutation and unit upper (lower) triangular matrices, and D is Hermitian and block diagonal with 1-by-1 and 2-by-2 diagonal blocks.
ZHETRF_ROOKis called to compute the factorization of a complex Hermitian matrixAusing the bounded Bunch-Kaufman ("rook") diagonal pivoting method.- The factored form of
Ais then used to solve the system of equationsA * X = Bby callingZHETRS_ROOK(uses BLAS 2).
π Parameters π
UPLO
UPLOisCHARACTER*1= 'U': Upper triangle ofAis stored;= 'L': Lower triangle ofAis stored.
N
NisINTEGERβ the number of linear equations, i.e., the order of the matrixA.N >= 0.
NRHS
NRHSisINTEGERβ the number of right hand sides, i.e., the number of columns of the matrixB.NRHS >= 0.
A
AisCOMPLEX*16 array, dimension (LDA,N).- On entry, the Hermitian matrix
A. IfUPLO = 'U', the leadingN-by-Nupper triangular part ofAcontains the upper triangular part of the matrixA, and the strictly lower triangular part ofAis not referenced. IfUPLO = 'L', the leadingN-by-Nlower triangular part ofAcontains the lower triangular part of the matrixA, and the strictly upper triangular part ofAis not referenced. - On exit, if
INFO = 0, the block diagonal matrixDand the multipliers used to obtain the factorUorLfrom the factorizationA = U*D*U**HorA = L*D*L**Has computed byZHETRF_ROOK.
LDA
LDAisINTEGERβ the leading dimension of the arrayA.LDA >= max(1,N).
IPIV
IPIVisINTEGER array, dimension (N)β details of the interchanges and the block structure ofD.- If
UPLO = 'U':- Only the last
KBelements ofIPIVare set. - If
IPIV(k) > 0, then rows and columnskandIPIV(k)were interchanged andD(k,k)is a 1-by-1 diagonal block. - If
IPIV(k) < 0andIPIV(k-1) < 0, then rows and columnskand-IPIV(k)were interchanged and rows and columnsk-1and-IPIV(k-1)were interchanged, andD(k-1:k,k-1:k)is a 2-by-2 diagonal block.
- Only the last
- If
UPLO = 'L':- Only the first
KBelements ofIPIVare set. - If
IPIV(k) > 0, then rows and columnskandIPIV(k)were interchanged andD(k,k)is a 1-by-1 diagonal block. - If
IPIV(k) < 0andIPIV(k+1) < 0, then rows and columnskand-IPIV(k)were interchanged and rows and columnsk+1and-IPIV(k+1)were interchanged, andD(k:k+1,k:k+1)is a 2-by-2 diagonal block.
- Only the first
B
BisCOMPLEX*16 array, dimension (LDB,NRHS).- On entry, the
N-by-NRHSright hand side matrixB. - On exit, if
INFO = 0, theN-by-NRHSsolution matrixX.
LDB
LDBisINTEGERβ the leading dimension of the arrayB.LDB >= max(1,N).
WORK
WORKisCOMPLEX*16 array, dimension (MAX(1,LWORK)).- On exit, if
INFO = 0,WORK(1)returns the optimalLWORK.
LWORK
LWORKisINTEGERβ the length ofWORK.LWORK >= 1, and for best performanceLWORK >= max(1,N*NB), whereNBis the optimal blocksize forZHETRF_ROOK.- for
LWORK < N, TRS will be done with Level BLAS 2 - for
LWORK >= N, TRS will be done with Level BLAS 3 - If
LWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of theWORKarray, returns this value as the first entry of theWORKarray, and no error message related toLWORKis issued byXERBLA.
INFO
INFOisINTEGER= 0: successful exit< 0: ifINFO = -i, thei-th argument had an illegal value> 0: ifINFO = i,D(i,i)is exactly zero. The factorization has been completed, but the block diagonal matrixDis exactly singular, so the solution could not be computed.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
November 2013, Igor Kozachenko, Computer Science Division, University of California, BerkeleySeptember 2007, Sven Hammarling, Nicholas J. Higham, Craig Lucas, School of Mathematics, University of Manchester
The source block also has the Doxygen marker !> in front of those notes, and it ends with .fi. Cute.
Definition at line 203 of file zhesv_rook.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
π That's the whole page, bestie: LAPACK Version 3.12.0, source SRC/zhesv_rook.f(3) β and the dates living on this page are the November 2013 and September 2007 author notes up above. Mwah! π
π¦ 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