Quantcast
Channel: Fortran
Viewing all articles
Browse latest Browse all 3108

p?laqr3

$
0
0

Performs the orthogonal/unitary similarity transformation of a Hessenberg matrix to detect and deflate fully converged eigenvalues from a trailing principal submatrix (aggressive early deflation).

Syntax

FORTRAN:

call pslaqr3(wantt,wantz,n,ktop,kbot,nw,h,desch,iloz,ihiz,z,descz,ns,nd,sr,si,v,descv,nh,t,desct,nv,wv,descw,work,lwork,iwork,liwork,reclevel)

call pdlaqr3(wantt,wantz,n,ktop,kbot,nw,h,desch,iloz,ihiz,z,descz,ns,nd,sr,si,v,descv,nh,t,desct,nv,wv,descw,work,lwork,iwork,liwork,reclevel)

Include Files

  • C: mkl_scalapack.h

Description

This subroutine accepts as input an upper Hessenberg matrix H and performs an orthogonal similarity transformation designed to detect and deflate fully converged eigenvalues from a trailing principal submatrix. On output H is overwritten by a new Hessenberg matrix that is a perturbation of an orthogonal similarity transformation of H. It is to be hoped that the final version of H has many zero subdiagonal entries.

Input Parameters

wantt

(global ) LOGICAL

If .TRUE., then the Hessenberg matrix h is fully updated so that the quasi-triangular Schur factor may be computed (in cooperation with the calling subroutine).

If .FALSE., then only enough of h is updated to preserve the eigenvalues.

wantz

(global ) LOGICAL

If .TRUE., then the orthogonal matrix z is updated so that the orthogonal Schur factor may be computed (in cooperation with the calling subroutine).

If .FALSE., then z is not referenced.

n

(global ) INTEGER

The order of the matrix H and (if wantz is .TRUE.) the order of the orthogonal matrix Z.

ktop

(global ) INTEGER

It is assumed that either ktop = 1 or h(ktop,ktop-1)=0. kbot and ktop together determine an isolated block along the diagonal of the Hessenberg matrix.

kbot

(global ) INTEGER

It is assumed without a check that either kbot = n or h(kbot+1,kbot)=0. kbot and ktop together determine an isolated block along the diagonal of the Hessenberg matrix.

nw

(global ) INTEGER

Deflation window size. 1 nw (kbot-ktop+1).

h

REAL for pslaqr3

DOUBLE PRECISION for pdlaqr3

(local ) array, dimension (desch(lld_),LOCc(n))

The initial n-by-n section of h stores the Hessenberg matrix undergoing aggressive early deflation.

desch

(global and local) INTEGER array of dimension dlen_.

The array descriptor for the distributed matrix h.

iloz, ihiz

(global ) INTEGER

Specify the rows of z to which transformations must be applied if wantz is .TRUE.. 1 ilozihizn.

z

REAL for pslaqr3

DOUBLE PRECISION for pdlaqr3

Array, dimension (descz(lld_),LOCc(n))

If wantz is .TRUE., then on output, the orthogonal similarity transformation mentioned above has been accumulated into z(iloz:ihiz,kbot:ktop) from the right.

If wantz is .FALSE., then z is unreferenced.

descz

(global and local) INTEGER array of dimension dlen_.

The array descriptor for the distributed matrix z.

v

REAL for pslaqr3

DOUBLE PRECISION for pdlaqr3

(global workspace) array, dimension (descv(lld_),LOCc(nw))

An nw-by-nw distributed work array.

descv

(global and local) INTEGER array of dimension dlen_.

The array descriptor for the distributed matrix v.

nh

INTEGER scalar

The number of columns of t. nhnw.

t

REAL for pslaqr3

DOUBLE PRECISION for pdlaqr3

(global workspace) array, dimension (desct(lld_),LOCc(nh))

desct

(global and local) INTEGER array of dimension dlen_.

The array descriptor for the distributed matrix t.

nv

(global ) INTEGER

The number of rows of work array wv available for workspace. nvnw.

wv

(global workspace) REAL array, dimension

(descw(lld_),LOCc(nw))

descw

(global and local) INTEGER array of dimension dlen_.

The array descriptor for the distributed matrix wv.

work

(local workspace) REAL array, dimension lwork.

lwork

(local ) INTEGER

The dimension of the work array work (lwork1). lwork = 2*nw suffices, but greater efficiency may result from larger values of lwork.

If lwork = -1, then a workspace query is assumed; p?laqr3 only estimates the optimal workspace size for the given values of n, nw, ktop and kbot. The estimate is returned in work(1). No error message related to lwork is issued by xerbla. Neither h nor z are accessed.

iwork

(local workspace) INTEGER array, dimension (liwork)

liwork

(local ) INTEGER

The length of the workspace array iwork (liwork1).

If liwork=-1, then a workspace query is assumed.

OUTPUT Parameters

h

On output h has been transformed by an orthogonal similarity transformation, perturbed, and the returned to Hessenberg form that (it is to be hoped) has some zero subdiagonal entries.

z

IF wantz is .TRUE., then on output, the orthogonal similarity transformation mentioned above has been accumulated into z(iloz:ihiz,kbot:ktop) from the right.

If wantz is .FALSE., then z is unreferenced.

ns

(global ) INTEGER

The number of unconverged (ie approximate) eigenvalues returned in sr and si that may be used as shifts by the calling subroutine.

nd

(global ) INTEGER

The number of converged eigenvalues uncovered by this subroutine.

sr, si

REAL for pslaqr3

DOUBLE PRECISION for pdlaqr3

(global ) array, dimension kbotThe real and imaginary parts of approximate eigenvalues that may be used for shifts are stored in sr(kbot-nd-ns+1) through sr(kbot-nd) and si(kbot-nd-ns+1) through si(kbot-nd), respectively. The real and imaginary parts of converged eigenvalues are stored in sr(kbot-nd+1) through sr(kbot) and si(kbot-nd+1) through si(kbot), respectively.

work(1)

On exit, if info = 0, work(1) returns the optimal lwork

iwork(1)

On exit, if info = 0, iwork(1) returns the optimal liwork

Anglais

Viewing all articles
Browse latest Browse all 3108

Trending Articles