SRC/zhetrs2.f(3)
π SRC/zhetrs2.f(3) β Library Functions Manual π
okay bestie, welcome to the <pink>Library Functions Manual</pink> β¨ this page is literally all about SRC/zhetrs2.f and honestly? she's iconic. let's get into it π«Ά
β¨ SYNOPSIS β¨
πΈ Functions/Subroutines
subroutine zhetrs2 (uplo, n, nrhs, a, lda, ipiv, b, ldb, work, info)β that's her!ZHETRS2π
π¦ Function/Subroutine Documentation π¦
π« the signature (verbatim, no cap)
subroutine zhetrs2 (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 info)
ZHETRS2 π₯
π― Purpose:
!>
!> ZHETRS2 solves a system of linear equations A*X = B with a complex
!> Hermitian matrix A using the factorization A = U*D*U**H or
!> A = L*D*L**H computed by ZHETRF and converted by ZSYCONV.
!>
so basically: give her a system of linear equations A*X = B, where A is a complex Hermitian matrix, and she will solve it. the factorization she expects is A = U*D*U**H or A = L*D*L**H β the one ZHETRF computed and ZSYCONV converted. periodt π
π§ Parameters (all of them, every single one, no cutting corners)
UPLO
!> UPLO is CHARACTER*1
!> Specifies whether the details of the factorization are stored
!> as an upper or lower triangular matrix.
!> = 'U': Upper triangular, form is A = U*D*U**H;
!> = 'L': Lower triangular, form is A = L*D*L**H.
!>
<cyan>CHARACTER*1</cyan> energy π she decides whether the factorization details are stored as an upper or lower triangular matrix:
'U'β upper triangular, form isA = U*D*U**Hβ'L'β lower triangular, form isA = L*D*L**Hπ
N
!> N is INTEGER
!> The order of the matrix A. N >= 0.
!>
<cyan>INTEGER</cyan>, the order of the matrix A. constraint: N >= 0 π
NRHS
!> NRHS is INTEGER
!> The number of right hand sides, i.e., the number of columns
!> of the matrix B. NRHS >= 0.
!>
<cyan>INTEGER</cyan>, the number of right hand sides β aka how many columns the matrix B has. constraint: NRHS >= 0 β¨
A
!> A is COMPLEX*16 array, dimension (LDA,N)
!> The block diagonal matrix D and the multipliers used to
!> obtain the factor U or L as computed by ZHETRF.
!>
<cyan>COMPLEX*16</cyan> array, dimension (LDA,N) β she holds the block diagonal matrix D plus the multipliers used to obtain the factor U or L, exactly as computed by ZHETRF π
LDA
!> LDA is INTEGER
!> The leading dimension of the array A. LDA >= max(1,N).
!>
<cyan>INTEGER</cyan>, the leading dimension of the array A. constraint: LDA >= max(1,N) π
IPIV
!> IPIV is INTEGER array, dimension (N)
!> Details of the interchanges and the block structure of D
!> as determined by ZHETRF.
!>
<cyan>INTEGER</cyan> array, dimension (N) β the deets on the interchanges and the block structure of D, as determined by ZHETRF πΈ
B
!> B is COMPLEX*16 array, dimension (LDB,NRHS)
!> On entry, the right hand side matrix B.
!> On exit, the solution matrix X.
!>
<cyan>COMPLEX*16</cyan> array, dimension (LDB,NRHS). on entry it's the right hand side matrix B; on exit it's the solution matrix X. glow-up fr fr β¨
LDB
!> LDB is INTEGER
!> The leading dimension of the array B. LDB >= max(1,N).
!>
<cyan>INTEGER</cyan>, the leading dimension of the array B. constraint: LDB >= max(1,N) π¦
WORK
!> WORK is COMPLEX*16 array, dimension (N)
!>
<cyan>COMPLEX*16</cyan> array, dimension (N). she works hard so you don't have to π
INFO
!> INFO is INTEGER
!> = 0: successful exit
!> < 0: if INFO = -i, the i-th argument had an illegal value
!>
<cyan>INTEGER</cyan>, the vibe check report:
= 0β successful exit, we ate π< 0β ifINFO = -i, the i-th argument had an illegal value π
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
the whole squad behind this, we stan π«Ά
Definition at line 125 of file zhetrs2.f. β
π Author (again, yes really)
Generated automatically by Doxygen for LAPACK from the source code. π€β¨
ngl bestie, if yourINFOcomes back negative it's giving "one of your arguments is illegal" β go check the exact one at indexiand fix it before you come for her π
LAPACK Β· Version 3.12.0 Β· SRC/zhetrs2.f(3) β mwah, that's the whole page, ily, go solve those Hermitian 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