steqr(3)
π« steqr(3) β Library Functions Manual π«
okay bestie, welcome to the steqr page from the Library Functions Manual β it's giving eigenvalue realness, QR iteration energy, and a whole lot of Fortran names π₯ no cap, this one is long, so part 1 is right here and part 2 is coming. let's get into it π
β¨ NAME β¨
steqr β steqr: eig, QR iteration
πΈ SYNOPSIS πΈ
π«Ά Functions π«Ά
subroutine csteqr (compz, n, d, e, z, ldz, work, info)β CSTEQRsubroutine dsteqr (compz, n, d, e, z, ldz, work, info)β DSTEQRsubroutine ssteqr (compz, n, d, e, z, ldz, work, info)β SSTEQRsubroutine zsteqr (compz, n, d, e, z, ldz, work, info)β ZSTEQR
π Detailed Description π
bestie this section is literally empty in the original β like, there is nothing under "Detailed Description" at all. we're keeping it because we do not skip sections in this house. periodt. π
π Function Documentation π
π csteqr β the complex one π
subroutine csteqr (character compz, integer n, real, dimension( * ) d, real,
dimension( * ) e, complex, dimension( ldz, * ) z, integer ldz, real,
dimension( * ) work, integer info)
CSTEQR
π Purpose π
CSTEQR computes all eigenvalues and, optionally, eigenvectors of a symmetric tridiagonal matrix using the implicit QL or QR method. The eigenvectors of a full or band complex Hermitian matrix can also be found if CHETRD or CHPTRD or CHBTRD has been used to reduce this matrix to tridiagonal form. slay π
π Parameters π
COMPZβ isCHARACTER*1= 'N': Compute eigenvalues only.= 'V': Compute eigenvalues and eigenvectors of the original Hermitian matrix. On entry,Zmust contain the unitary matrix used to reduce the original matrix to tridiagonal form.= 'I': Compute eigenvalues and eigenvectors of the tridiagonal matrix.Zis initialized to the identity matrix.
Nβ isINTEGER. The order of the matrix.N >= 0.Dβ isREALarray, dimension(N). On entry, the diagonal elements of the tridiagonal matrix. On exit, ifINFO = 0, the eigenvalues in ascending order.Eβ isREALarray, dimension(N-1). On entry, the(n-1)subdiagonal elements of the tridiagonal matrix. On exit,Ehas been destroyed. rip bestie πZβ isCOMPLEXarray, dimension(LDZ, N). On entry, ifCOMPZ = 'V', thenZcontains the unitary matrix used in the reduction to tridiagonal form. On exit, ifINFO = 0, then ifCOMPZ = 'V',Zcontains the orthonormal eigenvectors of the original Hermitian matrix, and ifCOMPZ = 'I',Zcontains the orthonormal eigenvectors of the symmetric tridiagonal matrix. IfCOMPZ = 'N', thenZis not referenced.LDZβ isINTEGER. The leading dimension of the arrayZ.LDZ >= 1, and if eigenvectors are desired, thenLDZ >= max(1,N).WORKβ isREALarray, dimension(max(1,2*N-2)). IfCOMPZ = 'N', thenWORKis not referenced.INFOβ isINTEGER= 0: successful exit< 0: ifINFO = -i, the i-th argument had an illegal value> 0: the algorithm has failed to find all the eigenvalues in a total of30*Niterations; ifINFO = i, thenielements ofEhave not converged to zero; on exit,DandEcontain the elements of a symmetric tridiagonal matrix which is unitarily similar to the original matrix.
π¦ Author π¦
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
β Definition β
Definition at line 131 of file csteqr.f.
π dsteqr β the double precision one π
subroutine dsteqr (character compz, integer n, double precision, dimension(
* ) d, double precision, dimension( * ) e, double precision, dimension(
ldz, * ) z, integer ldz, double precision, dimension( * ) work, integer
info)
DSTEQR
π Purpose π
DSTEQR computes all eigenvalues and, optionally, eigenvectors of a symmetric tridiagonal matrix using the implicit QL or QR method. The eigenvectors of a full or band symmetric matrix can also be found if DSYTRD or DSPTRD or DSBTRD has been used to reduce this matrix to tridiagonal form. iconic behavior honestly π
π Parameters π
COMPZβ isCHARACTER*1= 'N': Compute eigenvalues only.= 'V': Compute eigenvalues and eigenvectors of the original symmetric matrix. On entry,Zmust contain the orthogonal matrix used to reduce the original matrix to tridiagonal form.= 'I': Compute eigenvalues and eigenvectors of the tridiagonal matrix.Zis initialized to the identity matrix.
Nβ isINTEGER. The order of the matrix.N >= 0.Dβ isDOUBLE PRECISIONarray, dimension(N). On entry, the diagonal elements of the tridiagonal matrix. On exit, ifINFO = 0, the eigenvalues in ascending order.Eβ isDOUBLE PRECISIONarray, dimension(N-1). On entry, the(n-1)subdiagonal elements of the tridiagonal matrix. On exit,Ehas been destroyed. she's gone, bestie πZβ isDOUBLE PRECISIONarray, dimension(LDZ, N). On entry, ifCOMPZ = 'V', thenZcontains the orthogonal matrix used in the reduction to tridiagonal form. On exit, ifINFO = 0, then ifCOMPZ = 'V',Zcontains the orthonormal eigenvectors of the original symmetric matrix, and ifCOMPZ = 'I',Zcontains the orthonormal eigenvectors of the symmetric tridiagonal matrix. IfCOMPZ = 'N', thenZis not referenced.LDZβ isINTEGER. The leading dimension of the arrayZ.LDZ >= 1, and if eigenvectors are desired, thenLDZ >= max(1,N).WORKβ isDOUBLE PRECISIONarray, dimension(max(1,2*N-2)). IfCOMPZ = 'N', thenWORKis not referenced.INFOβ isINTEGER= 0: successful exit< 0: ifINFO = -i, the i-th argument had an illegal value> 0: the algorithm has failed to find all the eigenvalues in a total of30*Niterations; ifINFO = i, thenielements ofEhave not converged to zero; on exit,DandEcontain the elements of a symmetric tridiagonal matrix which is orthogonally similar to the original matrix.
π¦ Author π¦
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
β Definition β
Definition at line 130 of file dsteqr.f.
π ssteqr β the single precision one π
subroutine ssteqr (character compz, integer n, real, dimension( * ) d, real,
dimension( * ) e, real, dimension( ldz, * ) z, integer ldz, real,
dimension( * ) work, integer info)
SSTEQR
π Purpose π
SSTEQR computes all eigenvalues and, optionally, eigenvectors of a symmetric tridiagonal matrix using the implicit QL or QR method. The eigenvectors of a full or band symmetric matrix can also be found if SSYTRD or SSPTRD or SSBTRD has been used to reduce this matrix to tridiagonal form. lowkey obsessed with this routine ngl β¨
π Parameters π
COMPZβ isCHARACTER*1= 'N': Compute eigenvalues only.= 'V': Compute eigenvalues and eigenvectors of the original symmetric matrix. On entry,Zmust contain the orthogonal matrix used to reduce the original matrix to tridiagonal form.= 'I': Compute eigenvalues and eigenvectors of the tridiagonal matrix.Zis initialized to the identity matrix.
Nβ isINTEGER. The order of the matrix.N >= 0.Dβ isREALarray, dimension(N). On entry, the diagonal elements of the tridiagonal matrix. On exit, ifINFO = 0, the eigenvalues in ascending order.Eβ isREALarray, dimension(N-1). On entry, the(n-1)subdiagonal elements of the tridiagonal matrix. On exit,Ehas been destroyed. not the destroyer of worlds but she is the destroyer of E πZβ isREALarray, dimension(LDZ, N). On entry, ifCOMPZ = 'V', thenZcontains the orthogonal matrix used in the reduction to tridiagonal form. On exit, ifINFO = 0, then ifCOMPZ = 'V',Zcontains the orthonormal eigenvectors of the original symmetric matrix, and ifCOMPZ = 'I',Zcontains the orthonormal eigenvectors of the symmetric tridiagonal matrix. IfCOMPZ = 'N', thenZis not referenced.LDZβ isINTEGER. The leading dimension of the arrayZ.LDZ >= 1, and if eigenvectors are desired, thenLDZ >= max(1,N).WORKβ isREALarray, dimension(max(1,2*N-2)). IfCOMPZ = 'N', thenWORKis not referenced.INFOβ isINTEGER= 0: successful exit< 0: ifINFO = -i, the i-th argument had an illegal value> 0: the algorithm has failed to find all the eigenvalues in a total of30*Niterations; ifINFO = i, thenielements ofEhave not converged to zero; on exit,DandEcontain the elements of a symmetric tridiagonal matrix which is orthogonally similar to the original matrix.
π¦ Author π¦
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
β Definition β
Definition at line 130 of file ssteqr.f.
subroutine zsteqr (character compz, integer n, double precision, dimension(
* ) d, double precision, dimension( * ) e, complex*16, dimension( ldz, *
) z, integer ldz, double precision, dimension( * ) work, integer info)
π
ZSTEQR
β¨ Purpose β¨
Okay so ZSTEQR is the one that computes all eigenvalues and, if you want, eigenvectors of a symmetric tridiagonal matrix using the implicit QL or QR method. It can also find the eigenvectors of a full or band complex Hermitian matrix if ZHETRD or ZHPTRD or ZHBTRD has already been used to reduce that matrix to tridiagonal form. Slay. π
π Parameters π
COMPZβ itβs aCHARACTER*1, and it tells the routine what youβre actually asking for:= 'N': compute eigenvalues only.= 'V': compute eigenvalues and eigenvectors of the original Hermitian matrix. On entry,Zmust contain the unitary matrix used to reduce the original matrix to tridiagonal form.= 'I': compute eigenvalues and eigenvectors of the tridiagonal matrix.Zis initialized to the identity matrix.
NβN is INTEGER. Itβs the order of the matrix, and bestie,N >= 0.DβD is DOUBLE PRECISION array, dimension (N). On entry, it holds the diagonal elements of the tridiagonal matrix. On exit, ifINFO = 0, it holds the eigenvalues in ascending order. Iconic behavior honestly. πΈEβE is DOUBLE PRECISION array, dimension (N-1). On entry, it holds the(n-1)subdiagonal elements of the tridiagonal matrix. On exit,Ehas been destroyed. π Thatβs just how it is.ZβZ is COMPLEX*16 array, dimension (LDZ, N). On entry, ifCOMPZ = 'V', thenZcontains the unitary matrix used in the reduction to tridiagonal form. On exit, ifINFO = 0, then:- if
COMPZ = 'V',Zcontains the orthonormal eigenvectors of the original Hermitian matrix; - if
COMPZ = 'I',Zcontains the orthonormal eigenvectors of the symmetric tridiagonal matrix.
- if
If COMPZ = 'N', then Z is not referenced. Not even looked at. Ghosted. π»
LDZβLDZ is INTEGER. Itβs the leading dimension of the arrayZ.LDZ >= 1, and if eigenvectors are desired, thenLDZ >= max(1,N). No cap, but also donβt violate that bound. π«ΆWORKβWORK is DOUBLE PRECISION array, dimension (max(1,2*N-2)). IfCOMPZ = 'N', thenWORKis not referenced.INFOβINFO is INTEGER, and this is the vibe check at the end:= 0: successful exit. We love to see it. β¨< 0: ifINFO = -i, thei-th argument had an illegal value.> 0: the algorithm has failed to find all the eigenvalues in a total of30*Niterations; ifINFO = i, thenielements ofEhave not converged to zero. On exit,DandEcontain the elements of a symmetric tridiagonal matrix which is unitarily similar to the original matrix.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 131 of file zsteqr.f.
πͺ Author (generated bit) πͺ
Generated automatically by Doxygen for LAPACK from the source code.
Thatβs the whole ZSTEQR situation, bestie. This pageβs source/version is LAPACK Version 3.12.0, and the footer tags it as steqr(3). Thereβs no separate date line on this footer, so no invented dates β just the version and page tag. Mwah πβ¨
π¦ 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