77 DOUBLE PRECISION anrm, rcond
80 INTEGER ip( nmax ), iw( nmax )
81 DOUBLE PRECISION a( nmax, nmax ), af( nmax, nmax ), b( nmax ),
82 $ r1( nmax ), r2( nmax ), w( 3*nmax ), x( nmax )
99 common / infoc / infot, nout, ok, lerr
100 common / srnamc / srnamt
108 WRITE( nout, fmt = * )
115 a( i, j ) = 1.d0 / dble( i+j )
116 af( i, j ) = 1.d0 / dble( i+j )
130 IF(
lsamen( 2, c2,
'SY' ) )
THEN
140 CALL
dsytrf(
'/', 0, a, 1, ip, w, 1, info )
141 CALL
chkxer(
'DSYTRF', infot, nout, lerr, ok )
143 CALL
dsytrf(
'U', -1, a, 1, ip, w, 1, info )
144 CALL
chkxer(
'DSYTRF', infot, nout, lerr, ok )
146 CALL
dsytrf(
'U', 2, a, 1, ip, w, 4, info )
147 CALL
chkxer(
'DSYTRF', infot, nout, lerr, ok )
153 CALL
dsytf2(
'/', 0, a, 1, ip, info )
154 CALL
chkxer(
'DSYTF2', infot, nout, lerr, ok )
156 CALL
dsytf2(
'U', -1, a, 1, ip, info )
157 CALL
chkxer(
'DSYTF2', infot, nout, lerr, ok )
159 CALL
dsytf2(
'U', 2, a, 1, ip, info )
160 CALL
chkxer(
'DSYTF2', infot, nout, lerr, ok )
166 CALL
dsytri(
'/', 0, a, 1, ip, w, info )
167 CALL
chkxer(
'DSYTRI', infot, nout, lerr, ok )
169 CALL
dsytri(
'U', -1, a, 1, ip, w, info )
170 CALL
chkxer(
'DSYTRI', infot, nout, lerr, ok )
172 CALL
dsytri(
'U', 2, a, 1, ip, w, info )
173 CALL
chkxer(
'DSYTRI', infot, nout, lerr, ok )
179 CALL
dsytri2(
'/', 0, a, 1, ip, w, iw(1), info )
180 CALL
chkxer(
'DSYTRI2', infot, nout, lerr, ok )
182 CALL
dsytri2(
'U', -1, a, 1, ip, w, iw(1), info )
183 CALL
chkxer(
'DSYTRI2', infot, nout, lerr, ok )
185 CALL
dsytri2(
'U', 2, a, 1, ip, w, iw(1), info )
186 CALL
chkxer(
'DSYTRI2', infot, nout, lerr, ok )
192 CALL
dsytrs(
'/', 0, 0, a, 1, ip, b, 1, info )
193 CALL
chkxer(
'DSYTRS', infot, nout, lerr, ok )
195 CALL
dsytrs(
'U', -1, 0, a, 1, ip, b, 1, info )
196 CALL
chkxer(
'DSYTRS', infot, nout, lerr, ok )
198 CALL
dsytrs(
'U', 0, -1, a, 1, ip, b, 1, info )
199 CALL
chkxer(
'DSYTRS', infot, nout, lerr, ok )
201 CALL
dsytrs(
'U', 2, 1, a, 1, ip, b, 2, info )
202 CALL
chkxer(
'DSYTRS', infot, nout, lerr, ok )
204 CALL
dsytrs(
'U', 2, 1, a, 2, ip, b, 1, info )
205 CALL
chkxer(
'DSYTRS', infot, nout, lerr, ok )
211 CALL
dsyrfs(
'/', 0, 0, a, 1, af, 1, ip, b, 1, x, 1, r1, r2, w,
213 CALL
chkxer(
'DSYRFS', infot, nout, lerr, ok )
215 CALL
dsyrfs(
'U', -1, 0, a, 1, af, 1, ip, b, 1, x, 1, r1, r2,
217 CALL
chkxer(
'DSYRFS', infot, nout, lerr, ok )
219 CALL
dsyrfs(
'U', 0, -1, a, 1, af, 1, ip, b, 1, x, 1, r1, r2,
221 CALL
chkxer(
'DSYRFS', infot, nout, lerr, ok )
223 CALL
dsyrfs(
'U', 2, 1, a, 1, af, 2, ip, b, 2, x, 2, r1, r2, w,
225 CALL
chkxer(
'DSYRFS', infot, nout, lerr, ok )
227 CALL
dsyrfs(
'U', 2, 1, a, 2, af, 1, ip, b, 2, x, 2, r1, r2, w,
229 CALL
chkxer(
'DSYRFS', infot, nout, lerr, ok )
231 CALL
dsyrfs(
'U', 2, 1, a, 2, af, 2, ip, b, 1, x, 2, r1, r2, w,
233 CALL
chkxer(
'DSYRFS', infot, nout, lerr, ok )
235 CALL
dsyrfs(
'U', 2, 1, a, 2, af, 2, ip, b, 2, x, 1, r1, r2, w,
237 CALL
chkxer(
'DSYRFS', infot, nout, lerr, ok )
243 CALL
dsycon(
'/', 0, a, 1, ip, anrm, rcond, w, iw, info )
244 CALL
chkxer(
'DSYCON', infot, nout, lerr, ok )
246 CALL
dsycon(
'U', -1, a, 1, ip, anrm, rcond, w, iw, info )
247 CALL
chkxer(
'DSYCON', infot, nout, lerr, ok )
249 CALL
dsycon(
'U', 2, a, 1, ip, anrm, rcond, w, iw, info )
250 CALL
chkxer(
'DSYCON', infot, nout, lerr, ok )
252 CALL
dsycon(
'U', 1, a, 1, ip, -1.0d0, rcond, w, iw, info )
253 CALL
chkxer(
'DSYCON', infot, nout, lerr, ok )
255 ELSE IF(
lsamen( 2, c2,
'SP' ) )
THEN
265 CALL
dsptrf(
'/', 0, a, ip, info )
266 CALL
chkxer(
'DSPTRF', infot, nout, lerr, ok )
268 CALL
dsptrf(
'U', -1, a, ip, info )
269 CALL
chkxer(
'DSPTRF', infot, nout, lerr, ok )
275 CALL
dsptri(
'/', 0, a, ip, w, info )
276 CALL
chkxer(
'DSPTRI', infot, nout, lerr, ok )
278 CALL
dsptri(
'U', -1, a, ip, w, info )
279 CALL
chkxer(
'DSPTRI', infot, nout, lerr, ok )
285 CALL
dsptrs(
'/', 0, 0, a, ip, b, 1, info )
286 CALL
chkxer(
'DSPTRS', infot, nout, lerr, ok )
288 CALL
dsptrs(
'U', -1, 0, a, ip, b, 1, info )
289 CALL
chkxer(
'DSPTRS', infot, nout, lerr, ok )
291 CALL
dsptrs(
'U', 0, -1, a, ip, b, 1, info )
292 CALL
chkxer(
'DSPTRS', infot, nout, lerr, ok )
294 CALL
dsptrs(
'U', 2, 1, a, ip, b, 1, info )
295 CALL
chkxer(
'DSPTRS', infot, nout, lerr, ok )
301 CALL
dsprfs(
'/', 0, 0, a, af, ip, b, 1, x, 1, r1, r2, w, iw,
303 CALL
chkxer(
'DSPRFS', infot, nout, lerr, ok )
305 CALL
dsprfs(
'U', -1, 0, a, af, ip, b, 1, x, 1, r1, r2, w, iw,
307 CALL
chkxer(
'DSPRFS', infot, nout, lerr, ok )
309 CALL
dsprfs(
'U', 0, -1, a, af, ip, b, 1, x, 1, r1, r2, w, iw,
311 CALL
chkxer(
'DSPRFS', infot, nout, lerr, ok )
313 CALL
dsprfs(
'U', 2, 1, a, af, ip, b, 1, x, 2, r1, r2, w, iw,
315 CALL
chkxer(
'DSPRFS', infot, nout, lerr, ok )
317 CALL
dsprfs(
'U', 2, 1, a, af, ip, b, 2, x, 1, r1, r2, w, iw,
319 CALL
chkxer(
'DSPRFS', infot, nout, lerr, ok )
325 CALL
dspcon(
'/', 0, a, ip, anrm, rcond, w, iw, info )
326 CALL
chkxer(
'DSPCON', infot, nout, lerr, ok )
328 CALL
dspcon(
'U', -1, a, ip, anrm, rcond, w, iw, info )
329 CALL
chkxer(
'DSPCON', infot, nout, lerr, ok )
331 CALL
dspcon(
'U', 1, a, ip, -1.0d0, rcond, w, iw, info )
332 CALL
chkxer(
'DSPCON', infot, nout, lerr, ok )
337 CALL
alaesm( path, ok, nout )