DLAR1V (3) Linux Manual Page
dlar1v.f –
Synopsis
Functions/Subroutines
subroutine dlar1v (N, B1, BN, LAMBDA, D, L, LD, LLD, PIVMIN, GAPTOL, Z, WANTNC, NEGCNT, ZTZ, MINGMA, R, ISUPPZ, NRMINV, RESID, RQCORR, WORK)DLAR1V 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 dlar1v (integerN, integerB1, integerBN, double precisionLAMBDA, double precision, dimension( * )D, double precision, dimension( * )L, double precision, dimension( * )LD, double precision, dimension( * )LLD, double precisionPIVMIN, double precisionGAPTOL, double precision, dimension( * )Z, logicalWANTNC, integerNEGCNT, double precisionZTZ, double precisionMINGMA, integerR, integer, dimension( * )ISUPPZ, double precisionNRMINV, double precisionRESID, double precisionRQCORR, double precision, dimension( * )WORK)
DLAR1V computes the (scaled) r-th column of the inverse of the submatrix in rows b1 through bn of the tridiagonal matrix LDLT – λI. Purpose:
DLAR1V computes the (scaled) r-th column of the inverse of
the sumbmatrix 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 I by combining the above transforms, and choosing
r as 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
the stationary and the bottom part of the progressive transform.
Parameters:
- N
N is INTEGER
B1
The order of the matrix L D L**T.B1 is INTEGER
BN
First index of the submatrix of L D L**T.BN is INTEGER
LAMBDA
Last index of the submatrix of L D L**T.LAMBDA is DOUBLE PRECISION
L
The shift. In order to compute an accurate eigenvector,
LAMBDA should be a good approximation to an eigenvalue
of L D L**T.L is DOUBLE PRECISION array, dimension (N-1)
D
The (n-1) subdiagonal elements of the unit bidiagonal matrix
L, in elements 1 to N-1.D is DOUBLE PRECISION array, dimension (N)
LD
The n diagonal elements of the diagonal matrix D.LD is DOUBLE PRECISION array, dimension (N-1)
LLD
The n-1 elements L(i)*D(i).LLD is DOUBLE PRECISION array, dimension (N-1)
PIVMIN
The n-1 elements L(i)*L(i)*D(i).PIVMIN is DOUBLE PRECISION
GAPTOL
The minimum pivot in the Sturm sequence.GAPTOL is DOUBLE PRECISION
Z
Tolerance that indicates when eigenvector entries are negligible
w.r.t. their contribution to the residual.Z is DOUBLE PRECISION array, dimension (N)
WANTNC
On input, all entries of Z must be set to 0.
On output, Z contains the (scaled) r-th column of the
inverse. The scaling is such that Z(R) equals 1.WANTNC is LOGICAL
NEGCNT
Specifies whether NEGCNT has to be computed.NEGCNT is INTEGER
ZTZ
If WANTNC is .TRUE. then NEGCNT = the number of pivots < pivmin
in the matrix factorization L D L**T, and NEGCNT = -1 otherwise.ZTZ is DOUBLE PRECISION
MINGMA
The square of the 2-norm of Z.MINGMA is DOUBLE PRECISION
R
The reciprocal of the largest (in magnitude) diagonal
element of the inverse of L D L**T – sigma I.R is INTEGER
ISUPPZ
The twist index for the twisted factorization used to
compute Z.
On input, 0 <= R <= N. If R is input as 0, R is set to
the index where (L D L**T – sigma I)^{-1} is largest
in magnitude. If 1 <= R <= N, R is unchanged.
On output, R contains the twist index used to compute Z.
Ideally, R designates the position of the maximum entry in the
eigenvector.ISUPPZ is INTEGER array, dimension (2)
NRMINV
The support of the vector in Z, i.e., the vector Z is
nonzero only in elements ISUPPZ(1) through ISUPPZ( 2 ).NRMINV is DOUBLE PRECISION
RESID
NRMINV = 1/SQRT( ZTZ )RESID is DOUBLE PRECISION
RQCORR
The residual of the FP vector.
RESID = ABS( MINGMA )/SQRT( ZTZ )RQCORR is DOUBLE PRECISION
WORK
The Rayleigh Quotient correction to LAMBDA.
RQCORR = MINGMA*TMPWORK is DOUBLE PRECISION array, dimension (4*N)
Author:
- Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
- September 2012
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 229 of file dlar1v.f.
