82 REAL r( nmax ), r1( nmax ), r2( nmax )
83 COMPLEX 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 cmplx, real
110 WRITE( nout, fmt = * )
117 a( i, j ) = cmplx( 1. /
REAL( I+J ), -1. /
REAL( I+J ) )
118 af( i, j ) = cmplx( 1. /
REAL( I+J ), -1. /
REAL( I+J ) )
133 IF(
lsamen( 2, c2,
'HE' ) )
THEN
139 CALL
chetrf(
'/', 0, a, 1, ip, w, 1, info )
140 CALL
chkxer(
'CHETRF', infot, nout, lerr, ok )
142 CALL
chetrf(
'U', -1, a, 1, ip, w, 1, info )
143 CALL
chkxer(
'CHETRF', infot, nout, lerr, ok )
145 CALL
chetrf(
'U', 2, a, 1, ip, w, 4, info )
146 CALL
chkxer(
'CHETRF', infot, nout, lerr, ok )
152 CALL
chetf2(
'/', 0, a, 1, ip, info )
153 CALL
chkxer(
'CHETF2', infot, nout, lerr, ok )
155 CALL
chetf2(
'U', -1, a, 1, ip, info )
156 CALL
chkxer(
'CHETF2', infot, nout, lerr, ok )
158 CALL
chetf2(
'U', 2, a, 1, ip, info )
159 CALL
chkxer(
'CHETF2', infot, nout, lerr, ok )
165 CALL
chetri(
'/', 0, a, 1, ip, w, info )
166 CALL
chkxer(
'CHETRI', infot, nout, lerr, ok )
168 CALL
chetri(
'U', -1, a, 1, ip, w, info )
169 CALL
chkxer(
'CHETRI', infot, nout, lerr, ok )
171 CALL
chetri(
'U', 2, a, 1, ip, w, info )
172 CALL
chkxer(
'CHETRI', infot, nout, lerr, ok )
178 CALL
chetri2(
'/', 0, a, 1, ip, w, 1, info )
179 CALL
chkxer(
'CHETRI2', infot, nout, lerr, ok )
181 CALL
chetri2(
'U', -1, a, 1, ip, w, 1, info )
182 CALL
chkxer(
'CHETRI2', infot, nout, lerr, ok )
184 CALL
chetri2(
'U', 2, a, 1, ip, w, 1, info )
185 CALL
chkxer(
'CHETRI2', infot, nout, lerr, ok )
191 CALL
chetrs(
'/', 0, 0, a, 1, ip, b, 1, info )
192 CALL
chkxer(
'CHETRS', infot, nout, lerr, ok )
194 CALL
chetrs(
'U', -1, 0, a, 1, ip, b, 1, info )
195 CALL
chkxer(
'CHETRS', infot, nout, lerr, ok )
197 CALL
chetrs(
'U', 0, -1, a, 1, ip, b, 1, info )
198 CALL
chkxer(
'CHETRS', infot, nout, lerr, ok )
200 CALL
chetrs(
'U', 2, 1, a, 1, ip, b, 2, info )
201 CALL
chkxer(
'CHETRS', infot, nout, lerr, ok )
203 CALL
chetrs(
'U', 2, 1, a, 2, ip, b, 1, info )
204 CALL
chkxer(
'CHETRS', infot, nout, lerr, ok )
210 CALL
cherfs(
'/', 0, 0, a, 1, af, 1, ip, b, 1, x, 1, r1, r2, w,
212 CALL
chkxer(
'CHERFS', infot, nout, lerr, ok )
214 CALL
cherfs(
'U', -1, 0, a, 1, af, 1, ip, b, 1, x, 1, r1, r2,
216 CALL
chkxer(
'CHERFS', infot, nout, lerr, ok )
218 CALL
cherfs(
'U', 0, -1, a, 1, af, 1, ip, b, 1, x, 1, r1, r2,
220 CALL
chkxer(
'CHERFS', infot, nout, lerr, ok )
222 CALL
cherfs(
'U', 2, 1, a, 1, af, 2, ip, b, 2, x, 2, r1, r2, w,
224 CALL
chkxer(
'CHERFS', infot, nout, lerr, ok )
226 CALL
cherfs(
'U', 2, 1, a, 2, af, 1, ip, b, 2, x, 2, r1, r2, w,
228 CALL
chkxer(
'CHERFS', infot, nout, lerr, ok )
230 CALL
cherfs(
'U', 2, 1, a, 2, af, 2, ip, b, 1, x, 2, r1, r2, w,
232 CALL
chkxer(
'CHERFS', infot, nout, lerr, ok )
234 CALL
cherfs(
'U', 2, 1, a, 2, af, 2, ip, b, 2, x, 1, r1, r2, w,
236 CALL
chkxer(
'CHERFS', infot, nout, lerr, ok )
242 CALL
checon(
'/', 0, a, 1, ip, anrm, rcond, w, info )
243 CALL
chkxer(
'CHECON', infot, nout, lerr, ok )
245 CALL
checon(
'U', -1, a, 1, ip, anrm, rcond, w, info )
246 CALL
chkxer(
'CHECON', infot, nout, lerr, ok )
248 CALL
checon(
'U', 2, a, 1, ip, anrm, rcond, w, info )
249 CALL
chkxer(
'CHECON', infot, nout, lerr, ok )
251 CALL
checon(
'U', 1, a, 1, ip, -anrm, rcond, w, info )
252 CALL
chkxer(
'CHECON', infot, nout, lerr, ok )
257 ELSE IF(
lsamen( 2, c2,
'HP' ) )
THEN
263 CALL
chptrf(
'/', 0, a, ip, info )
264 CALL
chkxer(
'CHPTRF', infot, nout, lerr, ok )
266 CALL
chptrf(
'U', -1, a, ip, info )
267 CALL
chkxer(
'CHPTRF', infot, nout, lerr, ok )
273 CALL
chptri(
'/', 0, a, ip, w, info )
274 CALL
chkxer(
'CHPTRI', infot, nout, lerr, ok )
276 CALL
chptri(
'U', -1, a, ip, w, info )
277 CALL
chkxer(
'CHPTRI', infot, nout, lerr, ok )
283 CALL
chptrs(
'/', 0, 0, a, ip, b, 1, info )
284 CALL
chkxer(
'CHPTRS', infot, nout, lerr, ok )
286 CALL
chptrs(
'U', -1, 0, a, ip, b, 1, info )
287 CALL
chkxer(
'CHPTRS', infot, nout, lerr, ok )
289 CALL
chptrs(
'U', 0, -1, a, ip, b, 1, info )
290 CALL
chkxer(
'CHPTRS', infot, nout, lerr, ok )
292 CALL
chptrs(
'U', 2, 1, a, ip, b, 1, info )
293 CALL
chkxer(
'CHPTRS', infot, nout, lerr, ok )
299 CALL
chprfs(
'/', 0, 0, a, af, ip, b, 1, x, 1, r1, r2, w, r,
301 CALL
chkxer(
'CHPRFS', infot, nout, lerr, ok )
303 CALL
chprfs(
'U', -1, 0, a, af, ip, b, 1, x, 1, r1, r2, w, r,
305 CALL
chkxer(
'CHPRFS', infot, nout, lerr, ok )
307 CALL
chprfs(
'U', 0, -1, a, af, ip, b, 1, x, 1, r1, r2, w, r,
309 CALL
chkxer(
'CHPRFS', infot, nout, lerr, ok )
311 CALL
chprfs(
'U', 2, 1, a, af, ip, b, 1, x, 2, r1, r2, w, r,
313 CALL
chkxer(
'CHPRFS', infot, nout, lerr, ok )
315 CALL
chprfs(
'U', 2, 1, a, af, ip, b, 2, x, 1, r1, r2, w, r,
317 CALL
chkxer(
'CHPRFS', infot, nout, lerr, ok )
323 CALL
chpcon(
'/', 0, a, ip, anrm, rcond, w, info )
324 CALL
chkxer(
'CHPCON', infot, nout, lerr, ok )
326 CALL
chpcon(
'U', -1, a, ip, anrm, rcond, w, info )
327 CALL
chkxer(
'CHPCON', infot, nout, lerr, ok )
329 CALL
chpcon(
'U', 1, a, ip, -anrm, rcond, w, info )
330 CALL
chkxer(
'CHPCON', infot, nout, lerr, ok )
335 CALL
alaesm( path, ok, nout )