SRC/cstein.f(3)
π cstein.f: Library Functions Manual, but make it cute π
Bestie, welcome to SRC/cstein.f, the manual page for the CSTEIN subroutine. This is where real symmetric tridiagonal tea gets served. π
π NAME π
SRC/cstein.f
That's it, that's the name. The actual function is CSTEIN, and she's iconic. π
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine cstein (n, d, e, m, w, iblock, isplit, z, ldz, work, iwork,
ifail, info)
CSTEIN
That's the whole callable, bestie. Slay. π
π¦ Function/Subroutine Documentation π¦
Here's the full signature in all its glory:
subroutine cstein (integer n, real, dimension( * ) d, real, dimension( * )
e, integer m, real, dimension( * ) w, integer, dimension( * ) iblock,
integer, dimension( * ) isplit, complex, dimension( ldz, * ) z, integer
ldz, real, dimension( * ) work, integer, dimension( * ) iwork, integer,
dimension( * ) ifail, integer info)
CSTEIN
π― Purpose π―
Okay so CSTEIN computes the eigenvectors of a real symmetric tridiagonal matrix T corresponding to specified eigenvalues, using inverse iteration. Periodt. π
The maximum number of iterations allowed for each eigenvector is specified by an internal parameter MAXITS (currently set to 5). Not me forgetting that detail, bestie. π
Although the eigenvectors are real, they are stored in a complex array, which may be passed to CUNMTR or CUPMTR for back transformation to the eigenvectors of a complex Hermitian matrix which was reduced to tridiagonal form. Yes, real vibes in a complex array β that's the whole point. π
π§Ύ Parameters π§Ύ
NβNisINTEGER. The order of the matrix.N >= 0.DβDisREALarray, dimension(N). The n diagonal elements of the tridiagonal matrixT.EβEisREALarray, dimension(N-1). The(n-1)subdiagonal elements of the tridiagonal matrixT, stored in elements1toN-1.MβMisINTEGER. The number of eigenvectors to be found.0 <= M <= N.WβWisREALarray, dimension(N). The firstMelements ofWcontain the eigenvalues for which eigenvectors are to be computed. The eigenvalues should be grouped by split-off block and ordered from smallest to largest within the block. (The output arrayWfromSSTEBZwithORDER = 'B'is expected here.)IBLOCKβIBLOCKisINTEGERarray, dimension(N). The submatrix indices associated with the corresponding eigenvalues inW;IBLOCK(i)=1if eigenvalueW(i)belongs to the first submatrix from the top,=2ifW(i)belongs to the second submatrix, etc. (The output arrayIBLOCKfromSSTEBZis expected here.)ISPLITβISPLITisINTEGERarray, dimension(N). The splitting points, at whichTbreaks up into submatrices. The first submatrix consists of rows/columns1toISPLIT( 1 ), the second of rows/columnsISPLIT( 1 )+1throughISPLIT( 2 ), etc. (The output arrayISPLITfromSSTEBZis expected here.)ZβZisCOMPLEXarray, dimension(LDZ, M). The computed eigenvectors. The eigenvector associated with the eigenvalueW(i)is stored in the i-th column ofZ. Any vector which fails to converge is set to its current iterate afterMAXITSiterations. The imaginary parts of the eigenvectors are set to zero.LDZβLDZisINTEGER. The leading dimension of the arrayZ.LDZ >= max(1,N).WORKβWORKisREALarray, dimension(5*N).IWORKβIWORKisINTEGERarray, dimension(N).IFAILβIFAILisINTEGERarray, dimension(M). On normal exit, all elements ofIFAILare zero. If one or more eigenvectors fail to converge afterMAXITSiterations, then their indices are stored in arrayIFAIL.INFOβINFOisINTEGER. The exit-status tea:
= 0: successful exit
< 0: if INFO = -i, the i-th argument had an illegal value
> 0: if INFO = i, then i eigenvectors failed to converge
in MAXITS iterations. Their indices are stored in
array IFAIL.
π§ Internal Parameters π§
MAXITSβINTEGER, default =5. The maximum number of iterations performed.EXTRAβINTEGER, default =2. The number of iterations performed after norm growth criterion is satisfied, should be at least1.
π«Ά Author π«Ά
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 180 of file cstein.f.
π«Ά Author (Doxygen edition) π«Ά
Generated automatically by Doxygen for LAPACK from the source code.
Footer flex: LAPACK Version 3.12.0, SRC/cstein.f(3) β source/version energy only, no date printed, bestie. Mwah, byeee ππβ¨
π¦ 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