This commit was generated by cvs2svn to compensate for changes in r2,
[u/mrichter/AliRoot.git] / MINICERN / mathlib / gen / f / eisch1.F
1 *
2 * $Id$
3 *
4 * $Log$
5 * Revision 1.1.1.1  1996/04/01 15:02:38  mclareni
6 * Mathlib gen
7 *
8 *
9 #include "gen/pilot.h"
10       SUBROUTINE EISCH1(NM,N,AR,AI,WR,ZR,ZI,IERR,WORK)
11 C     ALL EIGENVALUES AND CORRESPONDING EIGENVECTORS OF A COMPLEX
12 C     HERMITIAN MATRIX
13 C
14       DIMENSION AR(NM,NM),AI(NM,NM),WR(N),ZR(NM,NM),ZI(NM,NM),WORK(1)
15       CALL HTRIDI(NM,N,AR,AI,WR,ZI,ZI,WORK)
16       DO 100 I=1,N
17       DO 50 J=1,N
18    50 ZR(I,J)=0.0
19   100 ZR(I,I)=1.0
20       CALL TQL2(NM,N,WR,ZI,ZR,IERR)
21       IF(IERR.NE.0) RETURN
22       CALL HTRIBK(NM,N,AR,AI,WORK,N,ZR,ZI)
23       RETURN
24       END