CLAR1V(3)
π NAME π
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/clar1v.f
Okay bestie, this is the CLAR1V(3) page from the Library Functions Manual β yes, the manual-name vibe is folded right in here instead of copied as a boring header line. The file is the path right above, and we're about to get into some very specific LAPACK math π
β¨
β¨ SYNOPSIS β¨
π§© Functions/Subroutines
subroutine CLAR1V (n, b1, bn, lambda, d, l, ld, lld, pivmin, gaptol, z,
wantnc, negcnt, ztz, mingma, r, isuppz, nrminv, resid, rqcorr, work)
CLAR1V computes the (scaled) r-th column of the inverse of the submatrix in rows b1 through bn of the tridiagonal matrix LDLT - Ξ»I.
π Function/Subroutine Documentation π
subroutine CLAR1V (integer n, integer b1, integer bn, real lambda, real,
dimension( * ) d, real, dimension( * ) l, real, dimension( * ) ld, real,
dimension( * ) lld, real pivmin, real gaptol, complex, dimension( * ) z,
logical wantnc, integer negcnt, real ztz, real mingma, integer r,
integer, dimension( * ) isuppz, real nrminv, real resid, real rqcorr,
real, dimension( * ) work)
CLAR1V computes the (scaled) r-th column of the inverse of the submatrix in rows b1 through bn of the tridiagonal matrix LDLT - Ξ»I.
π§ Purpose
So, CLAR1V computes the (scaled) r-th column of the inverse of the submatrix in rows B1 through BN of the tridiagonal matrix L D L**T - sigma I. When sigma is close to an eigenvalue, the computed vector is an accurate eigenvector. Usually, r corresponds to the index where the eigenvector is largest in magnitude.
The following steps accomplish this computation:
- Stationary qd transform:
L D L**T - sigma I = L(+) D(+) L(+)**T - Progressive qd transform:
L D L**T - sigma I = U(-) D(-) U(-)**T - Computation of the diagonal elements of the inverse of
L D L**T - sigma Iby combining the above transforms, and choosingras the index where the diagonal of the inverse is (one of the) largest in magnitude. - Computation of the (scaled)
r-th column of the inverse using the twisted factorization obtained by combining the top part of the stationary transform and the bottom part of the progressive transform.
πΈ Parameters
NβN is INTEGER. The order of the matrixL D L**T.B1βB1 is INTEGER. First index of the submatrix ofL D L**T.BNβBN is INTEGER. Last index of the submatrix ofL D L**T.LAMBDAβLAMBDA is REAL. The shift. In order to compute an accurate eigenvector,LAMBDAshould be a good approximation to an eigenvalue ofL D L**T.LβL is REAL array, dimension (N-1). The(n-1)subdiagonal elements of the unit bidiagonal matrixL, in elements1toN-1.DβD is REAL array, dimension (N). Thendiagonal elements of the diagonal matrixD.LDβLD is REAL array, dimension (N-1). Then-1elementsL(i)*D(i).LLDβLLD is REAL array, dimension (N-1). Then-1elementsL(i)*L(i)*D(i).PIVMINβPIVMIN is REAL. The minimum pivot in the Sturm sequence.GAPTOLβGAPTOL is REAL. Tolerance that indicates when eigenvector entries are negligible w.r.t. their contribution to the residual.ZβZ is COMPLEX array, dimension (N). On input, all entries ofZmust be set to0. On output,Zcontains the (scaled)r-th column of the inverse. The scaling is such thatZ(R)equals1.WANTNCβWANTNC is LOGICAL. Specifies whetherNEGCNThas to be computed.NEGCNTβNEGCNT is INTEGER. IfWANTNCis.TRUE.thenNEGCNT= the number of pivots <pivminin the matrix factorizationL D L**T, andNEGCNT=-1otherwise.ZTZβZTZ is REAL. The square of the 2-norm ofZ.MINGMAβMINGMA is REAL. The reciprocal of the largest (in magnitude) diagonal element of the inverse ofL D L**T - sigma I.RβR is INTEGER. The twist index for the twisted factorization used to computeZ. On input,0 <= R <= N. IfRis input as0,Ris set to the index where(L D L**T - sigma I)^{-1}is largest in magnitude. If1 <= R <= N,Ris unchanged. On output,Rcontains the twist index used to computeZ. Ideally,Rdesignates the position of the maximum entry in the eigenvector.ISUPPZβISUPPZ is INTEGER array, dimension (2). The support of the vector inZ, i.e., the vectorZis nonzero only in elementsISUPPZ(1)throughISUPPZ( 2 ).NRMINVβNRMINV is REAL.NRMINV = 1/SQRT( ZTZ )RESIDβRESID is REAL. The residual of the FP vector.RESID = ABS( MINGMA )/SQRT( ZTZ )RQCORRβRQCORR is REAL. The Rayleigh Quotient correction toLAMBDA.RQCORR = MINGMA*TMPWORKβWORK is REAL array, dimension (4*N).
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π¦ Contributors
- Beresford Parlett, University of California, Berkeley, USA
- Jim Demmel, University of California, Berkeley, USA
- Inderjit Dhillon, University of Texas, Austin, USA
- Osni Marques, LBNL/NERSC, USA
- Christof Voemel, University of California, Berkeley, USA
π Definition at line
Definition at line 227 of file clar1v.f.
π€ Author (the generated note)
Generated automatically by Doxygen for LAPACK from the source code.
okay that's the whole CLAR1V(3) ride, bestie β LAPACK Version 3.12.0, footer source /home/abui...RC/clar1v.f(3), and all the math tea included π
π
π¦ 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