1DSTEDC(1)             LAPACK driver routine (version 3.1)            DSTEDC(1)
2
3
4

NAME

6       DSTEDC  -  all eigenvalues and, optionally, eigenvectors of a symmetric
7       tridiagonal matrix using the divide and conquer method
8

SYNOPSIS

10       SUBROUTINE DSTEDC( COMPZ, N, D, E, Z, LDZ, WORK, LWORK, IWORK,  LIWORK,
11                          INFO )
12
13           CHARACTER      COMPZ
14
15           INTEGER        INFO, LDZ, LIWORK, LWORK, N
16
17           INTEGER        IWORK( * )
18
19           DOUBLE         PRECISION D( * ), E( * ), WORK( * ), Z( LDZ, * )
20

PURPOSE

22       DSTEDC computes all eigenvalues and, optionally, eigenvectors of a sym‐
23       metric tridiagonal matrix using the divide  and  conquer  method.   The
24       eigenvectors  of a full or band real symmetric matrix can also be found
25       if DSYTRD or DSPTRD or DSBTRD has been used to reduce  this  matrix  to
26       tridiagonal form.
27
28       This  code makes very mild assumptions about floating point arithmetic.
29       It will work on machines with a guard  digit  in  add/subtract,  or  on
30       those binary machines without guard digits which subtract like the Cray
31       X-MP, Cray Y-MP, Cray C-90, or Cray-2.  It could  conceivably  fail  on
32       hexadecimal  or  decimal  machines without guard digits, but we know of
33       none.  See DLAED3 for details.
34
35

ARGUMENTS

37       COMPZ   (input) CHARACTER*1
38               = 'N':  Compute eigenvalues only.
39               = 'I':  Compute eigenvectors of tridiagonal matrix also.
40               = 'V':  Compute eigenvectors of original dense symmetric matrix
41               also.   On  entry,  Z  contains  the  orthogonal matrix used to
42               reduce the original matrix to tridiagonal form.
43
44       N       (input) INTEGER
45               The dimension of the symmetric tridiagonal matrix.  N >= 0.
46
47       D       (input/output) DOUBLE PRECISION array, dimension (N)
48               On entry, the diagonal elements of the tridiagonal matrix.   On
49               exit, if INFO = 0, the eigenvalues in ascending order.
50
51       E       (input/output) DOUBLE PRECISION array, dimension (N-1)
52               On  entry,  the subdiagonal elements of the tridiagonal matrix.
53               On exit, E has been destroyed.
54
55       Z       (input/output) DOUBLE PRECISION array, dimension (LDZ,N)
56               On entry, if COMPZ = 'V', then Z contains the orthogonal matrix
57               used  in the reduction to tridiagonal form.  On exit, if INFO =
58               0, then if COMPZ = 'V', Z contains the orthonormal eigenvectors
59               of  the  original  symmetric matrix, and if COMPZ = 'I', Z con‐
60               tains the orthonormal eigenvectors of the symmetric tridiagonal
61               matrix.  If  COMPZ = 'N', then Z is not referenced.
62
63       LDZ     (input) INTEGER
64               The  leading dimension of the array Z.  LDZ >= 1.  If eigenvec‐
65               tors are desired, then LDZ >= max(1,N).
66
67       WORK    (workspace/output) DOUBLE PRECISION array,
68               dimension (LWORK) On exit, if INFO =  0,  WORK(1)  returns  the
69               optimal LWORK.
70
71       LWORK   (input) INTEGER
72               The dimension of the array WORK.  If COMPZ = 'N' or N <= 1 then
73               LWORK must be at least 1.  If COMPZ = 'V' and N > 1 then  LWORK
74               must be at least ( 1 + 3*N + 2*N*lg N + 3*N**2 ), where lg( N )
75               = smallest integer k such that 2**k >= N.  If COMPZ = 'I' and N
76               >  1 then LWORK must be at least ( 1 + 4*N + N**2 ).  Note that
77               for COMPZ = 'I' or 'V', then if N is less than or equal to  the
78               minimum  divide  size,  usually  25,  then  LWORK  need only be
79               max(1,2*(N-1)).
80
81               If LWORK = -1, then a workspace query is assumed;  the  routine
82               only  calculates  the  optimal  size of the WORK array, returns
83               this value as the first entry of the WORK array, and  no  error
84               message related to LWORK is issued by XERBLA.
85
86       IWORK   (workspace/output) INTEGER array, dimension (MAX(1,LIWORK))
87               On exit, if INFO = 0, IWORK(1) returns the optimal LIWORK.
88
89       LIWORK  (input) INTEGER
90               The  dimension  of  the  array IWORK.  If COMPZ = 'N' or N <= 1
91               then LIWORK must be at least 1.  If COMPZ = 'V' and N > 1  then
92               LIWORK must be at least ( 6 + 6*N + 5*N*lg N ).  If COMPZ = 'I'
93               and N > 1 then LIWORK must be at least ( 3 + 5*N ).  Note  that
94               for  COMPZ = 'I' or 'V', then if N is less than or equal to the
95               minimum divide size, usually 25, then LIWORK need only be 1.
96
97               If LIWORK = -1, then a workspace query is assumed; the  routine
98               only  calculates  the  optimal size of the IWORK array, returns
99               this value as the first entry of the IWORK array, and no  error
100               message related to LIWORK is issued by XERBLA.
101
102       INFO    (output) INTEGER
103               = 0:  successful exit.
104               < 0:  if INFO = -i, the i-th argument had an illegal value.
105               > 0:  The algorithm failed to compute an eigenvalue while work‐
106               ing on the submatrix  lying  in  rows  and  columns  INFO/(N+1)
107               through mod(INFO,N+1).
108

FURTHER DETAILS

110       Based on contributions by
111          Jeff Rutter, Computer Science Division, University of California
112          at Berkeley, USA
113       Modified by Francoise Tisseur, University of Tennessee.
114
115
116
117
118 LAPACK driver routine (version 3.N1o)vember 2006                       DSTEDC(1)
Impressum