1SSTEV(1) LAPACK driver routine (version 3.2) SSTEV(1)
2
3
4
6 SSTEV - computes all eigenvalues and, optionally, eigenvectors of a
7 real symmetric tridiagonal matrix A
8
10 SUBROUTINE SSTEV( JOBZ, N, D, E, Z, LDZ, WORK, INFO )
11
12 CHARACTER JOBZ
13
14 INTEGER INFO, LDZ, N
15
16 REAL D( * ), E( * ), WORK( * ), Z( LDZ, * )
17
19 SSTEV computes all eigenvalues and, optionally, eigenvectors of a real
20 symmetric tridiagonal matrix A.
21
23 JOBZ (input) CHARACTER*1
24 = 'N': Compute eigenvalues only;
25 = 'V': Compute eigenvalues and eigenvectors.
26
27 N (input) INTEGER
28 The order of the matrix. N >= 0.
29
30 D (input/output) REAL array, dimension (N)
31 On entry, the n diagonal elements of the tridiagonal matrix A.
32 On exit, if INFO = 0, the eigenvalues in ascending order.
33
34 E (input/output) REAL array, dimension (N-1)
35 On entry, the (n-1) subdiagonal elements of the tridiagonal
36 matrix A, stored in elements 1 to N-1 of E. On exit, the con‐
37 tents of E are destroyed.
38
39 Z (output) REAL array, dimension (LDZ, N)
40 If JOBZ = 'V', then if INFO = 0, Z contains the orthonormal
41 eigenvectors of the matrix A, with the i-th column of Z holding
42 the eigenvector associated with D(i). If JOBZ = 'N', then Z is
43 not referenced.
44
45 LDZ (input) INTEGER
46 The leading dimension of the array Z. LDZ >= 1, and if JOBZ =
47 'V', LDZ >= max(1,N).
48
49 WORK (workspace) REAL array, dimension (max(1,2*N-2))
50 If JOBZ = 'N', WORK is not referenced.
51
52 INFO (output) INTEGER
53 = 0: successful exit
54 < 0: if INFO = -i, the i-th argument had an illegal value
55 > 0: if INFO = i, the algorithm failed to converge; i off-
56 diagonal elements of E did not converge to zero.
57
58
59
60 LAPACK driver routine (version 3.N2o)vember 2008 SSTEV(1)