!----------------------------------------------------------------- ! ! Purpose ! ======= ! ! LA_SYEV / LA_HEEV computes all eigenvalues and, optionally, ! eigenvectors of a real symmetric or Hermitian matrix A. ! ! ======= ! ! SUBROUTINE LA_SYEV / LA_HEEV( A, W, JOBZ, UPLO, INFO ) ! (), INTENT(INOUT) :: A(:,:) ! REAL(), INTENT(OUT) :: W(:) ! CHARACTER(LEN=1), INTENT(IN), OPTIONAL :: JOBZ, UPLO ! INTEGER, INTENT(OUT), OPTIONAL :: INFO ! where ! ::= REAL | COMPLEX ! ::= KIND(1.0) | KIND(1.0D0) ! ! Defaults ! ======== ! ! 1. If JOBZ is not present then JOBZ = 'N' is assumed. ! ! 2. If UPLO is not present then UPLO = 'U' is assumed. ! ! Arguments ! ========= ! ! A (input/output) either REAL/COMPLEX square array, ! shape (:,:), size(A,1) == size(A,2). ! On entry, the symmetric (Hermitian) matrix A. ! If UPLO = 'U', the upper triangular part of A contains ! the upper triangular part of the matrix A. ! If UPLO = 'L', the lower triangular part of A contains ! the lower triangular part of the matrix A. ! On exit: ! If JOBZ = 'V', then if INFO = 0, A contains the ! orthonormal eigenvectors of the matrix A. ! If JOBZ = 'N', then on exit the lower triangle (if UPLO='L') ! or the upper triangle (if UPLO='U') of A, including the ! diagonal, is destroyed. ! ! W (output) REAL array, shape (:), size(W) == size(A,1) >= 0. ! If INFO = 0, the eigenvalues in ascending order. ! ! JOBZ Optional, (input) CHARACTER*1 ! If JOBZ is present then: ! = 'N': Compute eigenvalues only; ! = 'V': Compute eigenvalues and eigenvectors. ! otherwise JOBZ = 'N' is assumed. ! ! UPLO Optional, (input) CHARACTER*1 ! If UPLO is present then: ! = 'U': Upper triangle of A is stored; ! = 'L': Lower triangle of A is stored. ! otherwise UPLO = 'U' is assumed. ! ! INFO Optional, (output) INTEGER ! If INFO is present: ! = 0: successful exit ! < 0: if INFO = -i, the i-th argument had an illegal value ! > 0: if INFO = i, the algorithm failed to converge; i ! off-diagonal elements of an intermediate tridiagonal ! form did not converge to zero. ! If INFO is not present and an error occurs, then the program ! is terminated with an error message. ! !------------------------------------------- .