NAME

cstein - compute the eigenvectors of a real symmetric tridiagonal matrix T corresponding to specified eigenvalues, using inverse iteration


SYNOPSIS

  SUBROUTINE CSTEIN( N, D, E, M, W, IBLOCK, ISPLIT, Z, LDZ, WORK, 
 *      IWORK, IFAIL, INFO)
  COMPLEX Z(LDZ,*)
  INTEGER N, M, LDZ, INFO
  INTEGER IBLOCK(*), ISPLIT(*), IWORK(*), IFAIL(*)
  REAL D(*), E(*), W(*), WORK(*)
  SUBROUTINE CSTEIN_64( N, D, E, M, W, IBLOCK, ISPLIT, Z, LDZ, WORK, 
 *      IWORK, IFAIL, INFO)
  COMPLEX Z(LDZ,*)
  INTEGER*8 N, M, LDZ, INFO
  INTEGER*8 IBLOCK(*), ISPLIT(*), IWORK(*), IFAIL(*)
  REAL D(*), E(*), W(*), WORK(*)

F95 INTERFACE

  SUBROUTINE STEIN( [N], D, E, [M], W, IBLOCK, ISPLIT, Z, [LDZ], [WORK], 
 *       [IWORK], IFAIL, [INFO])
  COMPLEX, DIMENSION(:,:) :: Z
  INTEGER :: N, M, LDZ, INFO
  INTEGER, DIMENSION(:) :: IBLOCK, ISPLIT, IWORK, IFAIL
  REAL, DIMENSION(:) :: D, E, W, WORK
  SUBROUTINE STEIN_64( [N], D, E, [M], W, IBLOCK, ISPLIT, Z, [LDZ], 
 *       [WORK], [IWORK], IFAIL, [INFO])
  COMPLEX, DIMENSION(:,:) :: Z
  INTEGER(8) :: N, M, LDZ, INFO
  INTEGER(8), DIMENSION(:) :: IBLOCK, ISPLIT, IWORK, IFAIL
  REAL, DIMENSION(:) :: D, E, W, WORK

C INTERFACE

#include <sunperf.h>

void cstein(int n, float *d, float *e, int m, float *w, int *iblock, int *isplit, complex *z, int ldz, int *ifail, int *info);

void cstein_64(long n, float *d, float *e, long m, float *w, long *iblock, long *isplit, complex *z, long ldz, long *ifail, long *info);


PURPOSE

cstein computes the eigenvectors of a real symmetric tridiagonal matrix T corresponding to specified eigenvalues, using inverse iteration.

The maximum number of iterations allowed for each eigenvector is specified by an internal parameter MAXITS (currently set to 5).

Although the eigenvectors are real, they are stored in a complex array, which may be passed to CUNMTR or CUPMTR for back

transformation to the eigenvectors of a complex Hermitian matrix which was reduced to tridiagonal form.


ARGUMENTS