SRC/zheev.f(3)
π SRC/zheev.f(3) β bestie's guide to ZHEEV π
ok so this page lives in the Library Functions Manual (yes it's giving "library functions" energy) and it's literally all about one subroutine. buckle up π
β¨ NAME β¨
SRC/zheev.f β that's the file, that's the vibe, no notes π
β¨ SYNOPSIS β¨
πΈ Functions/Subroutines
subroutine zheev (jobz, uplo, n, a, lda, w, work, lwork, rwork, info)β ZHEEV computes the eigenvalues and, optionally, the left and/or right eigenvectors for HE matrices π₯
β¨ Function/Subroutine Documentation β¨
subroutine zheev (character jobz, character uplo, integer n, complex*16,
dimension( lda, * ) a, integer lda, double precision, dimension( * ) w,
complex*16, dimension( * ) work, integer lwork, double precision,
dimension( * ) rwork, integer info)
ZHEEV computes the eigenvalues and, optionally, the left and/or right eigenvectors for HE matrices π¦
π Purpose:
!>
!> ZHEEV computes all eigenvalues and, optionally, eigenvectors of a
!> complex Hermitian matrix A.
!>
so yeah, ALL the eigenvalues, and if you ask nicely (aka JOBZ='V') you also get the eigenvectors of a complex Hermitian matrix A. main character energy fr fr π
π Parameters
JOBZβJOBZ is CHARACTER*1= 'N': Compute eigenvalues only;= 'V': Compute eigenvalues and eigenvectors.
UPLOβUPLO is CHARACTER*1= 'U': Upper triangle of A is stored;= 'L': Lower triangle of A is stored.
NβN is INTEGERThe order of the matrixA. Constraint:N >= 0.β¨AβA is COMPLEX*16 array, dimension (LDA, N)On entry, the Hermitian matrixA. IfUPLO = 'U', the leadingN-by-Nupper triangular part ofAcontains the upper triangular part of the matrixA. IfUPLO = 'L', the leadingN-by-Nlower triangular part ofAcontains the lower triangular part of the matrixA. On exit, ifJOBZ = 'V', then ifINFO = 0,Acontains the orthonormal eigenvectors of the matrixA. IfJOBZ = 'N', then on exit the lower triangle (ifUPLO='L') or the upper triangle (ifUPLO='U') ofA, including the diagonal, is destroyed. π yeah she gets wrecked, that's just how it isLDAβLDA is INTEGERThe leading dimension of the arrayA. Constraint:LDA >= max(1,N).WβW is DOUBLE PRECISION array, dimension (N)IfINFO = 0, the eigenvalues in ascending order. π (sorted, as a treat)WORKβWORK is COMPLEX*16 array, dimension (MAX(1,LWORK))On exit, ifINFO = 0,WORK(1)returns the optimalLWORK. πLWORKβLWORK is INTEGERThe length of the arrayWORK. Constraint:LWORK >= max(1,2*N-1). For optimal efficiency,LWORK >= (NB+1)*N, whereNBis the blocksize forZHETRDreturned byILAENV. slay β¨
If LWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of the WORK array, returns this value as the first entry of the WORK array, and no error message related to LWORK is issued by XERBLA. (that last bit is the important part, ngl β no XERBLA yelling at you π)
RWORKβRWORK is DOUBLE PRECISION array, dimension (max(1, 3*N-2))INFOβINFO is INTEGER= 0:successful exit π< 0:ifINFO = -i, the i-th argument had an illegal value> 0:ifINFO = i, the algorithm failed to converge;ioff-diagonal elements of an intermediate tridiagonal form did not converge to zero. π it literally didn't converge, sobbing
π§ Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 138 of file zheev.f. π
β Author
Generated automatically by Doxygen for LAPACK from the source code. (the robots wrote this one, not me π )
LAPACK β Version 3.12.0 β SRC/zheev.f(3) π«Ά
k that's the whole page, every single flag and constraint intact, go forth and diagonalize your Hermitian bestie πβ¨π¦
π¦ 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