!----------------------------------------------------------------- ! ! Purpose ! ======= ! ! LA_STEV computes all eigenvalues and, optionally, eigenvectors of a ! real symmetric tridiagonal matrix A. ! ! Arguments ! ========= ! ! SUBROUTINE LA_STEV( D, E, Z, INFO ) ! REAL(), INTENT(INOUT) :: D(:), E(:) ! REAL(), INTENT(OUT), OPTIONAL :: Z(:,:) ! INTEGER, INTENT(OUT), OPTIONAL :: INFO ! where ! ::= KIND(1.0) | KIND(1.0D0) ! ! ========================== ! ! D (input/output) REAL array shape (:), where SIZE(D) ! indicates the matrix rank (n) ! On entry, the n diagonal elements of the tridiagonal matrix ! A. ! On exit, if INFO = 0, the eigenvalues in ascending order. ! ! E (input/output) REAL array, shape (:), where ! SIZE(E) == SIZE(D). ! On entry, the (n-1) subdiagonal elements of the tridiagonal ! matrix A, stored in elements 1 to n-1 of E; E(n) need not ! be set, but is used by the routine. ! On exit, the contents of E are destroyed. ! ! Z (output) REAL array, shape(:,:), SIZE(Z,1) == SIZE(Z,2) == n. ! If INFO = 0, Z contains the orthonormal eigenvectors of the ! matrix A, with the i-th column of Z holding the eigenvector ! associated with D(i). ! ! INFO (output) INTEGER ! = 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 E did not converge to zero. ! If INFO is not present and an error occurs, then the program is ! terminated with an error message. !------------------------------------- .