78 DOUBLE PRECISION anrm, rcond
82 DOUBLE PRECISION r( nmax ), r1( nmax ), r2( nmax )
83 COMPLEX*16 a( nmax, nmax ), af( nmax, nmax ), b( nmax ),
84 $ w( 2*nmax ), x( nmax )
101 common / infoc / infot, nout, ok, lerr
102 common / srnamc / srnamt
105 INTRINSIC dble, dcmplx
110 WRITE( nout, fmt = * )
117 a( i, j ) = dcmplx( 1.d0 / dble( i+j ),
118 $ -1.d0 / dble( i+j ) )
119 af( i, j ) = dcmplx( 1.d0 / dble( i+j ),
120 $ -1.d0 / dble( i+j ) )
135 IF(
lsamen( 2, c2,
'HE' ) )
THEN
141 CALL
zhetrf(
'/', 0, a, 1, ip, w, 1, info )
142 CALL
chkxer(
'ZHETRF', infot, nout, lerr, ok )
144 CALL
zhetrf(
'U', -1, a, 1, ip, w, 1, info )
145 CALL
chkxer(
'ZHETRF', infot, nout, lerr, ok )
147 CALL
zhetrf(
'U', 2, a, 1, ip, w, 4, info )
148 CALL
chkxer(
'ZHETRF', infot, nout, lerr, ok )
154 CALL
zhetf2(
'/', 0, a, 1, ip, info )
155 CALL
chkxer(
'ZHETF2', infot, nout, lerr, ok )
157 CALL
zhetf2(
'U', -1, a, 1, ip, info )
158 CALL
chkxer(
'ZHETF2', infot, nout, lerr, ok )
160 CALL
zhetf2(
'U', 2, a, 1, ip, info )
161 CALL
chkxer(
'ZHETF2', infot, nout, lerr, ok )
167 CALL
zhetri(
'/', 0, a, 1, ip, w, info )
168 CALL
chkxer(
'ZHETRI', infot, nout, lerr, ok )
170 CALL
zhetri(
'U', -1, a, 1, ip, w, info )
171 CALL
chkxer(
'ZHETRI', infot, nout, lerr, ok )
173 CALL
zhetri(
'U', 2, a, 1, ip, w, info )
174 CALL
chkxer(
'ZHETRI', infot, nout, lerr, ok )
180 CALL
zhetri2(
'/', 0, a, 1, ip, w, 1, info )
181 CALL
chkxer(
'ZHETRI2', infot, nout, lerr, ok )
183 CALL
zhetri2(
'U', -1, a, 1, ip, w, 1, info )
184 CALL
chkxer(
'ZHETRI2', infot, nout, lerr, ok )
186 CALL
zhetri2(
'U', 2, a, 1, ip, w, 1, info )
187 CALL
chkxer(
'ZHETRI2', infot, nout, lerr, ok )
193 CALL
zhetrs(
'/', 0, 0, a, 1, ip, b, 1, info )
194 CALL
chkxer(
'ZHETRS', infot, nout, lerr, ok )
196 CALL
zhetrs(
'U', -1, 0, a, 1, ip, b, 1, info )
197 CALL
chkxer(
'ZHETRS', infot, nout, lerr, ok )
199 CALL
zhetrs(
'U', 0, -1, a, 1, ip, b, 1, info )
200 CALL
chkxer(
'ZHETRS', infot, nout, lerr, ok )
202 CALL
zhetrs(
'U', 2, 1, a, 1, ip, b, 2, info )
203 CALL
chkxer(
'ZHETRS', infot, nout, lerr, ok )
205 CALL
zhetrs(
'U', 2, 1, a, 2, ip, b, 1, info )
206 CALL
chkxer(
'ZHETRS', infot, nout, lerr, ok )
212 CALL
zherfs(
'/', 0, 0, a, 1, af, 1, ip, b, 1, x, 1, r1, r2, w,
214 CALL
chkxer(
'ZHERFS', infot, nout, lerr, ok )
216 CALL
zherfs(
'U', -1, 0, a, 1, af, 1, ip, b, 1, x, 1, r1, r2,
218 CALL
chkxer(
'ZHERFS', infot, nout, lerr, ok )
220 CALL
zherfs(
'U', 0, -1, a, 1, af, 1, ip, b, 1, x, 1, r1, r2,
222 CALL
chkxer(
'ZHERFS', infot, nout, lerr, ok )
224 CALL
zherfs(
'U', 2, 1, a, 1, af, 2, ip, b, 2, x, 2, r1, r2, w,
226 CALL
chkxer(
'ZHERFS', infot, nout, lerr, ok )
228 CALL
zherfs(
'U', 2, 1, a, 2, af, 1, ip, b, 2, x, 2, r1, r2, w,
230 CALL
chkxer(
'ZHERFS', infot, nout, lerr, ok )
232 CALL
zherfs(
'U', 2, 1, a, 2, af, 2, ip, b, 1, x, 2, r1, r2, w,
234 CALL
chkxer(
'ZHERFS', infot, nout, lerr, ok )
236 CALL
zherfs(
'U', 2, 1, a, 2, af, 2, ip, b, 2, x, 1, r1, r2, w,
238 CALL
chkxer(
'ZHERFS', infot, nout, lerr, ok )
244 CALL
zhecon(
'/', 0, a, 1, ip, anrm, rcond, w, info )
245 CALL
chkxer(
'ZHECON', infot, nout, lerr, ok )
247 CALL
zhecon(
'U', -1, a, 1, ip, anrm, rcond, w, info )
248 CALL
chkxer(
'ZHECON', infot, nout, lerr, ok )
250 CALL
zhecon(
'U', 2, a, 1, ip, anrm, rcond, w, info )
251 CALL
chkxer(
'ZHECON', infot, nout, lerr, ok )
253 CALL
zhecon(
'U', 1, a, 1, ip, -anrm, rcond, w, info )
254 CALL
chkxer(
'ZHECON', infot, nout, lerr, ok )
259 ELSE IF(
lsamen( 2, c2,
'HP' ) )
THEN
265 CALL
zhptrf(
'/', 0, a, ip, info )
266 CALL
chkxer(
'ZHPTRF', infot, nout, lerr, ok )
268 CALL
zhptrf(
'U', -1, a, ip, info )
269 CALL
chkxer(
'ZHPTRF', infot, nout, lerr, ok )
275 CALL
zhptri(
'/', 0, a, ip, w, info )
276 CALL
chkxer(
'ZHPTRI', infot, nout, lerr, ok )
278 CALL
zhptri(
'U', -1, a, ip, w, info )
279 CALL
chkxer(
'ZHPTRI', infot, nout, lerr, ok )
285 CALL
zhptrs(
'/', 0, 0, a, ip, b, 1, info )
286 CALL
chkxer(
'ZHPTRS', infot, nout, lerr, ok )
288 CALL
zhptrs(
'U', -1, 0, a, ip, b, 1, info )
289 CALL
chkxer(
'ZHPTRS', infot, nout, lerr, ok )
291 CALL
zhptrs(
'U', 0, -1, a, ip, b, 1, info )
292 CALL
chkxer(
'ZHPTRS', infot, nout, lerr, ok )
294 CALL
zhptrs(
'U', 2, 1, a, ip, b, 1, info )
295 CALL
chkxer(
'ZHPTRS', infot, nout, lerr, ok )
301 CALL
zhprfs(
'/', 0, 0, a, af, ip, b, 1, x, 1, r1, r2, w, r,
303 CALL
chkxer(
'ZHPRFS', infot, nout, lerr, ok )
305 CALL
zhprfs(
'U', -1, 0, a, af, ip, b, 1, x, 1, r1, r2, w, r,
307 CALL
chkxer(
'ZHPRFS', infot, nout, lerr, ok )
309 CALL
zhprfs(
'U', 0, -1, a, af, ip, b, 1, x, 1, r1, r2, w, r,
311 CALL
chkxer(
'ZHPRFS', infot, nout, lerr, ok )
313 CALL
zhprfs(
'U', 2, 1, a, af, ip, b, 1, x, 2, r1, r2, w, r,
315 CALL
chkxer(
'ZHPRFS', infot, nout, lerr, ok )
317 CALL
zhprfs(
'U', 2, 1, a, af, ip, b, 2, x, 1, r1, r2, w, r,
319 CALL
chkxer(
'ZHPRFS', infot, nout, lerr, ok )
325 CALL
zhpcon(
'/', 0, a, ip, anrm, rcond, w, info )
326 CALL
chkxer(
'ZHPCON', infot, nout, lerr, ok )
328 CALL
zhpcon(
'U', -1, a, ip, anrm, rcond, w, info )
329 CALL
chkxer(
'ZHPCON', infot, nout, lerr, ok )
331 CALL
zhpcon(
'U', 1, a, ip, -anrm, rcond, w, info )
332 CALL
chkxer(
'ZHPCON', infot, nout, lerr, ok )
337 CALL
alaesm( path, ok, nout )