SRC/chesv_aa.f(3)
π NAME π
SRC/chesv_aa.f β thatβs the page, bestie, and itβs from the Library Functions Manual. Iconic.
πΈ SYNOPSIS πΈ
π§ Functions/Subroutines π§
subroutine chesv_aa (uplo, n, nrhs, a, lda, ipiv, b, ldb, work, lwork,
info)
CHESV_AA computes the solution to system of linear equations A * X = B for HE matrices. No cap, thatβs the whole vibe.
π¦ Function/Subroutine Documentation π¦
subroutine chesv_aa (character uplo, integer n, integer nrhs, complex,
dimension( lda, * ) a, integer lda, integer, dimension( * ) ipiv,
complex, dimension( ldb, * ) b, integer ldb, complex, dimension( * )
work, integer lwork, integer info)
CHESV_AA computes the solution to system of linear equations A * X = B for HE matrices. Main character subroutine energy fr fr.
π Purpose π
Okay so CHESV_AA computes the solution to a complex system of linear equations
A * X = B,
where A is an N-by-N Hermitian matrix and X and B are N-by-NRHS matrices. <sparkle>Literally the setup.</sparkle>
Aasenβs algorithm is used to factor A as
A = U**H * T * U, if UPLO = 'U', or
A = L * T * L**H, if UPLO = 'L',
where U (or L) is a product of permutation and unit upper (lower) triangular matrices, and T is Hermitian and tridiagonal. The factored form of A is then used to solve the system of equations A * X = B. Thatβs the whole arc.
π 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βAisCOMPLEXarray, dimension(LDA,N). On entry, the Hermitian matrixA. IfUPLO = 'U', the leading N-by-N upper triangular part ofAcontains the upper triangular part of the matrixA, and the strictly lower triangular part ofAis not referenced. IfUPLO = 'L', the leading N-by-N lower triangular part ofAcontains the lower triangular part of the matrixA, and the strictly upper triangular part ofAis not referenced. On exit, ifINFO = 0, the tridiagonal matrixTand the multipliers used to obtain the factorUorLfrom the factorizationA = U**H*T*UorA = L*T*L**Has computed byCHETRF_AA.LDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(1,N).IPIVβIPIVisINTEGERarray, dimension(N). On exit, it contains the details of the interchanges, i.e., the row and columnkofAwere interchanged with the row and columnIPIV(k).BβBisCOMPLEXarray, dimension(LDB,NRHS). On entry, the N-by-NRHS right hand side matrixB. On exit, ifINFO = 0, the N-by-NRHS solution matrixX.LDBβLDBisINTEGER. The leading dimension of the arrayB.LDB >= max(1,N).WORKβWORKisCOMPLEXarray, dimension(MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβLWORKisINTEGER. The length ofWORK.LWORK >= MAX(1,2*N,3*N-2), and for best performanceLWORK >= MAX(1,N*NB), whereNBis the optimal blocksize forCHETRF. IfLWORK = -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.
Heads up bestie: theINFO > 0case means the factorization finished butD(i,i)is exactly zero, so the block diagonal matrixDis exactly singular and the solution could not be computed. Not a slay, just a fact.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 160 of file chesv_aa.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
LAPACK Version 3.12.0 β SRC/chesv_aa.f(3) β and thatβs the cute little sign-off, mwah π bye bestie, go solve those systems.
π¦ 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