SRC/chesv.f(3)
π NAME π
Okay so bestie, this page is for SRC/chesv.f(3) from the Library Functions Manual, and our main character is chesv β a Fortran subroutine that computes solutions to systems of linear equations for Hermitian (HE) matrices. Itβs giving math girlie with main character energy. π
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine chesv (uplo, n, nrhs, a, lda, ipiv, b, ldb, work, lwork, info)β CHESV computes the solution to system of linear equationsA * X = Bfor HE matrices. π«Ά
subroutine chesv (uplo, n, nrhs, a, lda, ipiv, b, ldb, work, lwork,
info)
πΈ Function/Subroutine Documentation πΈ
π subroutine chesv π
subroutine chesv (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 computes the solution to system of linear equations A * X = B for HE matrices. β¨
π Purpose
CHESV 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.
The diagonal pivoting method is used to factor A as
A = U * D * U**H, if UPLO = 'U', or
A = L * D * L**H, 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. The factored form of A is then used to solve the system of equations A * X = B. π¦
π§ Parameters
UPLOβUPLO is CHARACTER*1;= 'U': Upper triangle of A is stored;= 'L': Lower triangle of A is stored.πNβN is INTEGER; the number of linear equations, i.e., the order of the matrixA.N >= 0.NRHSβNRHS is INTEGER; the number of right hand sides, i.e., the number of columns of the matrixB.NRHS >= 0.AβA is COMPLEX array, 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 block diagonal matrixDand the multipliers used to obtain the factorUorLfrom the factorizationA = U*D*U**HorA = L*D*L**Has computed byCHETRF. πLDAβLDA is INTEGER; the leading dimension of the arrayA.LDA >= max(1,N).IPIVβIPIV is INTEGER array, dimension (N). Details of the interchanges and the block structure ofD, as determined byCHETRF. IfIPIV(k) > 0, then rows and columnskandIPIV(k)were interchanged, andD(k,k)is a 1-by-1 diagonal block. IfUPLO = 'U'andIPIV(k) = IPIV(k-1) < 0, then rows and columnsk-1and-IPIV(k)were interchanged andD(k-1:k,k-1:k)is a 2-by-2 diagonal block. IfUPLO = 'L'andIPIV(k) = IPIV(k+1) < 0, then rows and columnsk+1and-IPIV(k)were interchanged andD(k:k+1,k:k+1)is a 2-by-2 diagonal block. πBβB is COMPLEX array, dimension (LDB,NRHS). On entry, the N-by-NRHS right hand side matrixB. On exit, ifINFO = 0, the N-by-NRHS solution matrixX.LDBβLDB is INTEGER; the leading dimension of the arrayB.LDB >= max(1,N).WORKβWORK is COMPLEX array, dimension (MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβLWORK is INTEGER; the length ofWORK.LWORK >= 1, and for best performanceLWORK >= max(1,N*NB), whereNBis the optimal blocksize forCHETRF.for LWORK < N, TRS will be done with Level BLAS 2;for LWORK >= N, TRS will be done with Level BLAS 3. 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βINFO is INTEGER;= 0: successful exit;< 0: if INFO = -i, the i-th argument had an illegal value;> 0: if INFO = i, D(i,i) is exactly zero. The factorization has been completed, but the block diagonal matrix D is exactly singular, so the solution could not be computed.π
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 169 of file chesv.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
And thatβs the whole vibe, bestie: this page is serving LAPACK Version 3.12.0, source SRC/chesv.f(3) β iconic, mathy, and fully documented. Periodt. π
β¨πΈ
π¦ 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