SRC/sspevd.f(3)
π SRC/sspevd.f(3) π
okay bestie, this is a page from the Library Functions Manual, and it's literally all about SRC/sspevd.f. Itβs giving iconic LAPACK subroutine energy, and weβre gonna get into every single detail. π
πΈ NAME πΈ
SRC/sspevd.f
π¦ SYNOPSIS π¦
π« Functions/Subroutines π«
subroutine sspevd (jobz, uplo, n, ap, w, z, ldz, work, lwork, iwork,
liwork, info)
SSPEVD computes the eigenvalues and, optionally, the left and/or
right eigenvectors for OTHER matrices
π Function/Subroutine Documentation π
subroutine sspevd (character jobz, character uplo, integer n, real,
dimension( * ) ap, real, dimension( * ) w, real, dimension( ldz, * ) z,
integer ldz, real, dimension( * ) work, integer lwork, integer,
dimension( * ) iwork, integer liwork, integer info)
SSPEVD computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices. β¨
π¦ Purpose π¦
SSPEVD computes all the eigenvalues and, optionally, eigenvectors of a real symmetric matrix A in packed storage. If eigenvectors are desired, it uses a divide and conquer algorithm. π§
β¨ Parameters β¨
JOBZβJOBZisCHARACTER*1.= 'N': Compute eigenvalues only;= 'V': Compute eigenvalues and eigenvectors. πUPLOβUPLOisCHARACTER*1.= 'U': Upper triangle ofAis stored;= 'L': Lower triangle ofAis stored.NβNisINTEGER. The order of the matrixA.N >= 0.APβAPisREAL array, dimension (N*(N+1)/2). On entry, the upper or lower triangle of the symmetric matrixA, packed columnwise in a linear array. The j-th column ofAis stored in the arrayAPas follows: ifUPLO = 'U',AP(i + (j-1)*j/2) = A(i,j)for1<=i<=j; ifUPLO = 'L',AP(i + (j-1)*(2*n-j)/2) = A(i,j)forj<=i<=n. On exit,APis overwritten by values generated during the reduction to tridiagonal form. IfUPLO = 'U', the diagonal and first superdiagonal of the tridiagonal matrixToverwrite the corresponding elements ofA, and ifUPLO = 'L', the diagonal and first subdiagonal ofToverwrite the corresponding elements ofA. π«ΆWβWisREAL array, dimension (N). IfINFO = 0, the eigenvalues in ascending order.ZβZisREAL array, dimension (LDZ, N). IfJOBZ = 'V', then ifINFO = 0,Zcontains the orthonormal eigenvectors of the matrixA, with the i-th column ofZholding the eigenvector associated withW(i). IfJOBZ = 'N', thenZis not referenced.LDZβLDZisINTEGER. The leading dimension of the arrayZ.LDZ >= 1, and ifJOBZ = 'V',LDZ >= max(1,N).WORKβWORKisREAL array, dimension (MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the requiredLWORK.LWORKβLWORKisINTEGER. The dimension of the arrayWORK. IfN <= 1,LWORKmust be at least1. IfJOBZ = 'N'andN > 1,LWORKmust be at least2*N. IfJOBZ = 'V'andN > 1,LWORKmust be at least1 + 6*N + N**2. IfLWORK = -1, then a workspace query is assumed; the routine only calculates the required sizes of theWORKandIWORKarrays, returns these values as the first entries of theWORKandIWORKarrays, and no error message related toLWORKorLIWORKis issued byXERBLA. π₯IWORKβIWORKisINTEGER array, dimension (MAX(1,LIWORK)). On exit, ifINFO = 0,IWORK(1)returns the requiredLIWORK.LIWORKβLIWORKisINTEGER. The dimension of the arrayIWORK. IfJOBZ = 'N'orN <= 1,LIWORKmust be at least1. IfJOBZ = 'V'andN > 1,LIWORKmust be at least3 + 5*N. IfLIWORK = -1, then a workspace query is assumed; the routine only calculates the required sizes of theWORKandIWORKarrays, returns these values as the first entries of theWORKandIWORKarrays, and no error message related toLWORKorLIWORKis issued byXERBLA. πINFOβINFOisINTEGER.= 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. π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 170 of file sspevd.f.
π§ Author π§
Generated automatically by Doxygen for LAPACK from the source code.
xoxo bestie, thatβs the whole page π
β footer vibes: LAPACK Version 3.12.0, and it lives at SRC/sspevd.f(3). π
π¦ 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