ZLAR1V(3)
π ZLAR1V(3) π
okay so bestie, welcome to the Library Functions Manual page for ZLAR1V β yes, thatβs the whole vibe: a Fortran subroutine that computes a scaled column of an inverse and is lowkey iconic about it. π
πΈ NAME πΈ
The NAME section is literally this path, no cap:
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/zlar1v.f
Thatβs the file, bestie. Thatβs the main character. π
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine ZLAR1V (n, b1, bn, lambda, d, l, ld, lld, pivmin, gaptol, z,
wantnc, negcnt, ztz, mingma, r, isuppz, nrminv, resid, rqcorr, work)
ZLAR1V 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 π
Hereβs the full signature, character-for-character, because we do not play about exact types:
subroutine ZLAR1V (integer n, integer b1, integer bn, double precision
lambda, double precision, dimension( * ) d, double precision, dimension(
* ) l, double precision, dimension( * ) ld, double precision, dimension(
* ) lld, double precision pivmin, double precision gaptol, complex*16,
dimension( * ) z, logical wantnc, integer negcnt, double precision ztz,
double precision mingma, integer r, integer, dimension( * ) isuppz,
double precision nrminv, double precision resid, double precision
rqcorr, double precision, dimension( * ) work)
ZLAR1V computes the (scaled) r-th column of the inverse of the submatrix in rows b1 through bn of the tridiagonal matrix LDLT - Ξ»I.
Purpose:
okay so hereβs the tea, bestie: ZLAR1V 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:
- (a) Stationary qd transform,
L D L**T - sigma I = L(+) D(+) L(+)**T - (b) Progressive qd transform,
L D L**T - sigma I = U(-) D(-) U(-)**T - (c) 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. - (d) Computation of the (scaled) r-th column of the inverse using the twisted factorization obtained by combining the top part of the stationary and the bottom part of the progressive transform.
Parameters
NβINTEGER. The order of the matrixL D L**T.B1βINTEGER. First index of the submatrix ofL D L**T.BNβINTEGER. Last index of the submatrix ofL D L**T.LAMBDAβDOUBLE PRECISION. The shift. In order to compute an accurate eigenvector,LAMBDAshould be a good approximation to an eigenvalue ofL D L**T.LβDOUBLE PRECISION array, dimension (N-1). The(n-1)subdiagonal elements of the unit bidiagonal matrixL, in elements 1 toN-1.DβDOUBLE PRECISION array, dimension (N). Thendiagonal elements of the diagonal matrixD.LDβDOUBLE PRECISION array, dimension (N-1). Then-1elementsL(i)*D(i).LLDβDOUBLE PRECISION array, dimension (N-1). Then-1elementsL(i)*L(i)*D(i).PIVMINβDOUBLE PRECISION. The minimum pivot in the Sturm sequence.GAPTOLβDOUBLE PRECISION. Tolerance that indicates when eigenvector entries are negligible w.r.t. their contribution to the residual.ZβCOMPLEX*16 array, dimension (N). On input, all entries ofZmust be set to 0. On output,Zcontains the (scaled) r-th column of the inverse. The scaling is such thatZ(R)equals 1.WANTNCβLOGICAL. Specifies whetherNEGCNThas to be computed.NEGCNTβINTEGER. IfWANTNCis.TRUE.thenNEGCNT = the number of pivots < pivminin the matrix factorizationL D L**T, andNEGCNT = -1otherwise.ZTZβDOUBLE PRECISION. The square of the 2-norm ofZ.MINGMAβDOUBLE PRECISION. The reciprocal of the largest (in magnitude) diagonal element of the inverse ofL D L**T - sigma I.RβINTEGER. The twist index for the twisted factorization used to computeZ. On input,0 <= R <= N. IfRis input as 0,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βINTEGER array, dimension (2). The support of the vector inZ, i.e., the vectorZis nonzero only in elementsISUPPZ(1)throughISUPPZ( 2 ).NRMINVβDOUBLE PRECISION.NRMINV = 1/SQRT( ZTZ )RESIDβDOUBLE PRECISION. The residual of the FP vector.RESID = ABS( MINGMA )/SQRT( ZTZ )RQCORRβDOUBLE PRECISION. The Rayleigh Quotient correction toLAMBDA.RQCORR = MINGMA*TMPWORKβDOUBLE PRECISION 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 227 of file zlar1v.f.
Author
Generated automatically by Doxygen for LAPACK from the source code.
π cute little sign-off, bestie: LAPACK Version 3.12.0, from /home/abui...RC/zlar1v.f(3) β thatβs the footer, and yes, it ate. π«Άβ¨
π¦ 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