/home/abui...hetf2_rk.f(3)
π NAME
okay bestie, welcome to the Library Functions Manual page /home/abui...hetf2_rk.f(3). The NAME section is literally this source-file path, no cap:
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/chetf2_rk.f
πΈ SYNOPSIS
β¨ Functions/Subroutines
We got one iconic subroutine, bestie:
subroutine CHETF2_RK (uplo, n, a, lda, e, ipiv, info)
CHETF2_RK computes the factorization of a complex Hermitian indefinite matrix using the bounded Bunch-Kaufman (rook) diagonal pivoting method (BLAS2 unblocked algorithm). slay.
π Function/Subroutine Documentation
Here's the full signature with all the type details, exactly as written:
subroutine CHETF2_RK (character uplo, integer n, complex, dimension( lda, * ) a, integer lda, complex, dimension( * ) e, integer, dimension( * ) ipiv, integer info)
CHETF2_RK computes the factorization of a complex Hermitian indefinite matrix using the bounded Bunch-Kaufman (rook) diagonal pivoting method (BLAS2 unblocked algorithm). we been knew. π
π― Purpose:
okay so the purpose is giving main-character factorization energy:
A = P*U*D*(U**H)*(P**T) or A = P*L*D*(L**H)*(P**T),
where U (or L) is unit upper (or lower) triangular matrix, U**H (or L**H) is the conjugate of U (or L), P is a permutation matrix, P**T is the transpose of P, and D is Hermitian and block diagonal with 1-by-1 and 2-by-2 diagonal blocks.
This is the unblocked version of the algorithm, calling Level 2 BLAS. For more information see Further Details section. π«Ά
π§ Parameters
UPLOβUPLO is CHARACTER*1. It says whether the upper or lower triangular part of the Hermitian matrixAis stored:= 'U': Upper triangular= 'L': Lower triangular
NβN is INTEGER. It's the order of the matrixA, andN >= 0. periodt.AβA is COMPLEX array, dimension (LDA,N).- On entry, it's the Hermitian matrix
A. - If
UPLO = 'U': the leadingN-by-Nupper triangular part ofAcontains the upper triangular part of the matrixA, and the strictly lower triangular part ofAis not referenced. - If
UPLO = '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,
Acontains:- a) ONLY diagonal elements of the Hermitian block diagonal matrix
Don the diagonal ofA, i.e.D(k,k) = A(k,k);(superdiagonal (or subdiagonal) elements ofDare stored on exit in arrayE), and - b) If
UPLO = 'U': factorUin the superdiagonal part ofA. IfUPLO = 'L': factorLin the subdiagonal part ofA.
- a) ONLY diagonal elements of the Hermitian block diagonal matrix
- On entry, it's the Hermitian matrix
LDAβLDA is INTEGER. It's the leading dimension of the arrayA, andLDA >= max(1,N). no skipping this one bestie.EβE is COMPLEX array, dimension (N).- On exit, it contains the superdiagonal (or subdiagonal) elements of the Hermitian block diagonal matrix
Dwith 1-by-1 or 2-by-2 diagonal blocks, where:- If
UPLO = 'U':E(i) = D(i-1,i), i=2:N, E(1) is set to 0; - If
UPLO = 'L':E(i) = D(i+1,i), i=1:N-1, E(N) is set to 0.
- If
- NOTE: For 1-by-1 diagonal block
D(k), where1 <= k <= N, the elementE(k)is set to 0 in bothUPLO = 'U'orUPLO = 'L'cases.
- On exit, it contains the superdiagonal (or subdiagonal) elements of the Hermitian block diagonal matrix
IPIVβIPIV is INTEGER array, dimension (N).IPIVdescribes the permutation matrixPin the factorization of matrixAas follows. The absolute value ofIPIV(k)represents the index of row and column that were interchanged with thek-th row and column. The value ofUPLOdescribes the order in which the interchanges were applied. Also, the sign ofIPIVrepresents the block structure of the Hermitian block diagonal matrixDwith 1-by-1 or 2-by-2 diagonal blocks which correspond to 1 or 2 interchanges at each factorization step. For more info see Further Details section.- If
UPLO = 'U', ( in factorization order,kdecreases fromNto1):- a) A single positive entry
IPIV(k) > 0means:D(k,k)is a 1-by-1 diagonal block.- If
IPIV(k) != k, rows and columnskandIPIV(k)were interchanged in the matrixA(1:N,1:N); - If
IPIV(k) = k, no interchange occurred.
- b) A pair of consecutive negative entries
IPIV(k) < 0andIPIV(k-1) < 0means:D(k-1:k,k-1:k)is a 2-by-2 diagonal block.- (NOTE: negative entries in
IPIVappear ONLY in pairs). - 1) If
-IPIV(k) != k, rows and columnskand-IPIV(k)were interchanged in the matrixA(1:N,1:N). If-IPIV(k) = k, no interchange occurred. - 2) If
-IPIV(k-1) != k-1, rows and columnsk-1and-IPIV(k-1)were interchanged in the matrixA(1:N,1:N). If-IPIV(k-1) = k-1, no interchange occurred.
- c) In both cases a) and b), always
ABS( IPIV(k) ) <= k. - d) NOTE: Any entry
IPIV(k)is always NONZERO on output.
- a) A single positive entry
- If
UPLO = 'L', ( in factorization order,kincreases from1toN):- a) A single positive entry
IPIV(k) > 0means:D(k,k)is a 1-by-1 diagonal block.- If
IPIV(k) != k, rows and columnskandIPIV(k)were interchanged in the matrixA(1:N,1:N). - If
IPIV(k) = k, no interchange occurred.
- b) A pair of consecutive negative entries
IPIV(k) < 0andIPIV(k+1) < 0means:D(k:k+1,k:k+1)is a 2-by-2 diagonal block.- (NOTE: negative entries in
IPIVappear ONLY in pairs). - 1) If
-IPIV(k) != k, rows and columnskand-IPIV(k)were interchanged in the matrixA(1:N,1:N). If-IPIV(k) = k, no interchange occurred. - 2) If
-IPIV(k+1) != k+1, rows and columnsk-1and-IPIV(k-1)were interchanged in the matrixA(1:N,1:N). If-IPIV(k+1) = k+1, no interchange occurred.
- c) In both cases a) and b), always
ABS( IPIV(k) ) >= k. - d) NOTE: Any entry
IPIV(k)is always NONZERO on output.
- a) A single positive entry
INFOβINFO is INTEGER.= 0: successful exit. we love a clean exit. β¨< 0: IfINFO = -k, thek-th argument had an illegal value.> 0: IfINFO = k, the matrixAis singular, because:- If
UPLO = 'U': columnkin the upper triangular part ofAcontains all zeros. - If
UPLO = 'L': columnkin the lower triangular part ofAcontains all zeros.
- If
- Therefore
D(k,k)is exactly zero, and superdiagonal elements of columnkofU(or subdiagonal elements of columnkofL )are all zeros. The factorization has been completed, but the block diagonal matrixDis exactly singular, and division by zero will occur if it is used to solve a system of equations. - NOTE:
INFOonly stores the first occurrence of a singularity, any subsequent occurrence of singularity is not stored inINFOeven though the factorization always completes.
bestie, thatINFO > 0part is the serious one:Dis exactly singular and division by zero will occur if it's used to solve a system of equations. not a cute vibe, fr fr.
π«Ά Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Further Details:
The Further Details section is literally giving placeholder energy:
!> TODO: put further details
π Contributors:
- December 2016, Igor Kozachenko, Computer Science Division, University of California, Berkeley
- September 2007, Sven Hammarling, Nicholas J. Higham, Craig Lucas, School of Mathematics, University of Manchester
- 01-01-96 - Based on modifications by J. Lewis, Boeing Computer Services Company A. Petitet, Computer Science Dept., Univ. of Tenn., Knoxville abd , USA
Definition at line 240 of file chetf2_rk.f.
π«Ά Author
Generated automatically by Doxygen for LAPACK from the source code.
π okay that's the whole page, bestie! cute little sign-off from the footer: LAPACK Version 3.12.0, page /home/abui...hetf2_rk.f(3). The footer doesn't print a date, so no fake date from me β just the version and the page. bye 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