DTRSNA(3)
π DTRSNA(3) β Library Functions Manual π
okay bestie, welcome to the DTRSNA(3) page from the Library Functions Manual π this is the whole glow-up, no cap.
πΈ NAME πΈ
This page is for DTRSNA(3), and the NAME line is literally this path, character for character:
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/dtrsna.f
β¨ SYNOPSIS β¨
π Functions/Subroutines
subroutine DTRSNA (job, howmny, select, n, t, ldt, vl, ldvl, vr, ldvr,
s, sep, mm, m, work, ldwork, iwork, info)
DTRSNA β yes, thatβs the main character energy right there π
π Function/Subroutine Documentation π
subroutine DTRSNA (character job, character howmny, logical, dimension( * )
select, integer n, double precision, dimension( ldt, * ) t, integer ldt,
double precision, dimension( ldvl, * ) vl, integer ldvl, double
precision, dimension( ldvr, * ) vr, integer ldvr, double precision,
dimension( * ) s, double precision, dimension( * ) sep, integer mm,
integer m, double precision, dimension( ldwork, * ) work, integer
ldwork, integer, dimension( * ) iwork, integer info)
DTRSNA again, because the page said so and we respect the page β¨
π¦ Purpose
Okay so DTRSNA estimates reciprocal condition numbers for specified eigenvalues and/or right eigenvectors of a real upper quasi-triangular matrix T (or of any matrix Q*T*Q**T with Q orthogonal). Thatβs the whole vibe π«
T must be in Schur canonical form (as returned by DHSEQR), that is, block upper triangular with 1-by-1 and 2-by-2 diagonal blocks; each 2-by-2 diagonal block has its diagonal elements equal and its off-diagonal elements of opposite sign. No shortcuts, bestie.
π Parameters
JOBβ okay soJOBisCHARACTER*1and it specifies whether condition numbers are required for eigenvalues (S) or eigenvectors (SEP):= 'E': for eigenvalues only (S);= 'V': for eigenvectors only (SEP);= 'B': for both eigenvalues and eigenvectors (SandSEP).
HOWMNYβHOWMNYisCHARACTER*1:= 'A': compute condition numbers for all eigenpairs;= 'S': compute condition numbers for selected eigenpairs specified by the arraySELECT.
SELECTβSELECTisLOGICAL array, dimension (N). IfHOWMNY = 'S',SELECTspecifies the eigenpairs for which condition numbers are required. To select condition numbers for the eigenpair corresponding to a real eigenvaluew(j),SELECT(j)must be set to.TRUE.. To select condition numbers corresponding to a complex conjugate pair of eigenvaluesw(j)andw(j+1), eitherSELECT(j)orSELECT(j+1)or both, must be set to.TRUE.. IfHOWMNY = 'A',SELECTis not referenced. Slay, no extra work πNβNisINTEGER. The order of the matrixT.N >= 0.TβTisDOUBLE PRECISION array, dimension (LDT,N). The upper quasi-triangular matrixT, in Schur canonical form.LDTβLDTisINTEGER. The leading dimension of the arrayT.LDT >= max(1,N).VLβVLisDOUBLE PRECISION array, dimension (LDVL,M). IfJOB = 'E'or'B',VLmust contain left eigenvectors ofT(or of anyQ*T*Q**TwithQorthogonal), corresponding to the eigenpairs specified byHOWMNYandSELECT. The eigenvectors must be stored in consecutive columns ofVL, as returned byDHSEINorDTREVC. IfJOB = 'V',VLis not referenced.LDVLβLDVLisINTEGER. The leading dimension of the arrayVL.LDVL >= 1; and ifJOB = 'E'or'B',LDVL >= N.VRβVRisDOUBLE PRECISION array, dimension (LDVR,M). IfJOB = 'E'or'B',VRmust contain right eigenvectors ofT(or of anyQ*T*Q**TwithQorthogonal), corresponding to the eigenpairs specified byHOWMNYandSELECT. The eigenvectors must be stored in consecutive columns ofVR, as returned byDHSEINorDTREVC. IfJOB = 'V',VRis not referenced.LDVRβLDVRisINTEGER. The leading dimension of the arrayVR.LDVR >= 1; and ifJOB = 'E'or'B',LDVR >= N.SβSisDOUBLE PRECISION array, dimension (MM). IfJOB = 'E'or'B', the reciprocal condition numbers of the selected eigenvalues, stored in consecutive elements of the array. For a complex conjugate pair of eigenvalues two consecutive elements ofSare set to the same value. ThusS(j),SEP(j), and the j-th columns ofVLandVRall correspond to the same eigenpair (but not in general the j-th eigenpair, unless all eigenpairs are selected). IfJOB = 'V',Sis not referenced.SEPβSEPisDOUBLE PRECISION array, dimension (MM). IfJOB = 'V'or'B', the estimated reciprocal condition numbers of the selected eigenvectors, stored in consecutive elements of the array. For a complex eigenvector two consecutive elements ofSEPare set to the same value. If the eigenvalues cannot be reordered to computeSEP(j),SEP(j)is set to 0; this can only occur when the true value would be very small anyway. IfJOB = 'E',SEPis not referenced.MMβMMisINTEGER. The number of elements in the arraysS(ifJOB = 'E'or'B') and/orSEP(ifJOB = 'V'or'B').MM >= M.MβMisINTEGER. The number of elements of the arraysSand/orSEPactually used to store the estimated condition numbers. IfHOWMNY = 'A',Mis set toN.WORKβWORKisDOUBLE PRECISION array, dimension (LDWORK,N+6). IfJOB = 'E',WORKis not referenced.LDWORKβLDWORKisINTEGER. The leading dimension of the arrayWORK.LDWORK >= 1; and ifJOB = 'V'or'B',LDWORK >= N.IWORKβIWORKisINTEGER array, dimension (2*(N-1)). IfJOB = 'E',IWORKis not referenced.INFOβINFOisINTEGER:= 0: successful exit< 0: ifINFO = -i, the i-th argument had an illegal value
π Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
β Further Details
The reciprocal of the condition number of an eigenvalue lambda is defined as
S(lambda) = |v**T*u| / (norm(u)*norm(v))
where u and v are the right and left eigenvectors of T corresponding to lambda; v**T denotes the transpose of v, and norm(u) denotes the Euclidean norm. These reciprocal condition numbers always lie between zero (very badly conditioned) and one (very well conditioned). If n = 1, S(lambda) is defined to be 1.
An approximate error bound for a computed eigenvalue W(i) is given by
EPS * norm(T) / S(i)
where EPS is the machine precision.
The reciprocal of the condition number of the right eigenvector u corresponding to lambda is defined as follows. Suppose
T = ( lambda c )
( 0 T22 )
Then the reciprocal condition number is
SEP( lambda, T22 ) = sigma-min( T22 - lambda*I )
where sigma-min denotes the smallest singular value. We approximate the smallest singular value by the reciprocal of an estimate of the one-norm of the inverse of T22 - lambda*I. If n = 1, SEP(1) is defined to be abs(T(1,1)).
An approximate error bound for a computed right eigenvector VR(i) is given by
EPS * norm(T) / SEP(i)
Definition at line 262 of file dtrsna.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
okay thatβs the whole page bestie β footer vibes: LAPACK Version 3.12.0, and the path is /home/abui...RC/dtrsna.f(3). π«Άβ¨
π¦ 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