CSTEIN(3)
π NAME
okay so this page is from the Library Functions Manual, and itβs all about CSTEIN(3) and the source file:
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/cstein.f
bestie, that path is a whole journey, but weβre here.
β¨ SYNOPSIS
πΈ Functions/Subroutines
subroutine CSTEIN (n, d, e, m, w, iblock, isplit, z, ldz, work, iwork,
ifail, info)
CSTEIN
the routine name said hi again, periodt.
π«Ά Function/Subroutine Documentation
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 hereβs the vibe: CSTEIN computes the eigenvectors of a real symmetric tridiagonal matrix T corresponding to specified eigenvalues, using inverse iteration. The maximum number of iterations allowed for each eigenvector is specified by an internal parameter MAXITS (currently set to 5).
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. iconic behavior, honestly.
π Parameters
NβN is INTEGER; the order of the matrix.N >= 0. yes, zero is allowed, sheβs flexible.DβD is REAL array, dimension (N); thendiagonal elements of the tridiagonal matrixT. main diagonal carrying the tea πEβE is REAL array, dimension (N-1); the(n-1)subdiagonal elements of the tridiagonal matrixT, stored in elements1toN-1. off-diagonal but never off-brand.MβM is INTEGER; the number of eigenvectors to be found.0 <= M <= N. we love a bounded queen.WβW is REAL array, 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. ) that parenthetical is not optional, bestie.IBLOCKβIBLOCK is INTEGER array, 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βISPLIT is INTEGER array, 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βZ is COMPLEX array, 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. real eigenvectors in a complex array? itβs giving range.LDZβLDZ is INTEGER; the leading dimension of the arrayZ.LDZ >= max(1,N). do not skimp on the leading dimension.WORKβWORK is REAL array, dimension (5*N). just workspace doing workspace things.IWORKβIWORK is INTEGER array, dimension (N). integer workspace, also just vibing.IFAILβIFAIL is INTEGER array, 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. failure gets receipts.INFOβINFO is INTEGER= 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. tiny but mighty.EXTRAβINTEGER, default = 2; the number of iterations performed after norm growth criterion is satisfied, should be at least1. at least one, bestie, donβt push it.
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 180 of file cstein.f. yes, exactly line 180, no cap.
π¦ Author
Generated automatically by Doxygen for LAPACK from the source code. the robots made this page, and they ate.
final footer energy: this is LAPACK Version 3.12.0, source /home/abui...RC/cstein.f(3) π bye bestie, go compute some eigenvectors.
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms