59 SUBROUTINE cerrsy( PATH, NUNIT )
80 INTEGER i, info, j, n_err_bnds, nparams
81 REAL anrm, rcond, berr
85 REAL r( nmax ), r1( nmax ), r2( nmax ),
86 $ s( nmax ), err_bnds_n( nmax, 3 ),
87 $ err_bnds_c( nmax, 3 ), params( 1 )
88 COMPLEX a( nmax, nmax ), af( nmax, nmax ), b( nmax ),
89 $ w( 2*nmax ), x( nmax )
106 common / infoc / infot, nout, ok, lerr
107 common / srnamc / srnamt
110 INTRINSIC cmplx, real
115 WRITE( nout, fmt = * )
122 a( i, j ) = cmplx( 1. /
REAL( I+J ), -1. /
REAL( I+J ) )
123 af( i, j ) = cmplx( 1. /
REAL( I+J ), -1. /
REAL( I+J ) )
139 IF(
lsamen( 2, c2,
'SY' ) )
THEN
145 CALL
csytrf(
'/', 0, a, 1, ip, w, 1, info )
146 CALL
chkxer(
'CSYTRF', infot, nout, lerr, ok )
148 CALL
csytrf(
'U', -1, a, 1, ip, w, 1, info )
149 CALL
chkxer(
'CSYTRF', infot, nout, lerr, ok )
151 CALL
csytrf(
'U', 2, a, 1, ip, w, 4, info )
152 CALL
chkxer(
'CSYTRF', infot, nout, lerr, ok )
158 CALL
csytf2(
'/', 0, a, 1, ip, info )
159 CALL
chkxer(
'CSYTF2', infot, nout, lerr, ok )
161 CALL
csytf2(
'U', -1, a, 1, ip, info )
162 CALL
chkxer(
'CSYTF2', infot, nout, lerr, ok )
164 CALL
csytf2(
'U', 2, a, 1, ip, info )
165 CALL
chkxer(
'CSYTF2', infot, nout, lerr, ok )
171 CALL
csytri(
'/', 0, a, 1, ip, w, info )
172 CALL
chkxer(
'CSYTRI', infot, nout, lerr, ok )
174 CALL
csytri(
'U', -1, a, 1, ip, w, info )
175 CALL
chkxer(
'CSYTRI', infot, nout, lerr, ok )
177 CALL
csytri(
'U', 2, a, 1, ip, w, info )
178 CALL
chkxer(
'CSYTRI', infot, nout, lerr, ok )
184 CALL
csytri2(
'/', 0, a, 1, ip, w, 1, info )
185 CALL
chkxer(
'CSYTRI2', infot, nout, lerr, ok )
187 CALL
csytri2(
'U', -1, a, 1, ip, w, 1, info )
188 CALL
chkxer(
'CSYTRI2', infot, nout, lerr, ok )
190 CALL
csytri2(
'U', 2, a, 1, ip, w, 1, info )
191 CALL
chkxer(
'CSYTRI2', infot, nout, lerr, ok )
197 CALL
csytrs(
'/', 0, 0, a, 1, ip, b, 1, info )
198 CALL
chkxer(
'CSYTRS', infot, nout, lerr, ok )
200 CALL
csytrs(
'U', -1, 0, a, 1, ip, b, 1, info )
201 CALL
chkxer(
'CSYTRS', infot, nout, lerr, ok )
203 CALL
csytrs(
'U', 0, -1, a, 1, ip, b, 1, info )
204 CALL
chkxer(
'CSYTRS', infot, nout, lerr, ok )
206 CALL
csytrs(
'U', 2, 1, a, 1, ip, b, 2, info )
207 CALL
chkxer(
'CSYTRS', infot, nout, lerr, ok )
209 CALL
csytrs(
'U', 2, 1, a, 2, ip, b, 1, info )
210 CALL
chkxer(
'CSYTRS', infot, nout, lerr, ok )
216 CALL
csyrfs(
'/', 0, 0, a, 1, af, 1, ip, b, 1, x, 1, r1, r2, w,
218 CALL
chkxer(
'CSYRFS', infot, nout, lerr, ok )
220 CALL
csyrfs(
'U', -1, 0, a, 1, af, 1, ip, b, 1, x, 1, r1, r2,
222 CALL
chkxer(
'CSYRFS', infot, nout, lerr, ok )
224 CALL
csyrfs(
'U', 0, -1, a, 1, af, 1, ip, b, 1, x, 1, r1, r2,
226 CALL
chkxer(
'CSYRFS', infot, nout, lerr, ok )
228 CALL
csyrfs(
'U', 2, 1, a, 1, af, 2, ip, b, 2, x, 2, r1, r2, w,
230 CALL
chkxer(
'CSYRFS', infot, nout, lerr, ok )
232 CALL
csyrfs(
'U', 2, 1, a, 2, af, 1, ip, b, 2, x, 2, r1, r2, w,
234 CALL
chkxer(
'CSYRFS', infot, nout, lerr, ok )
236 CALL
csyrfs(
'U', 2, 1, a, 2, af, 2, ip, b, 1, x, 2, r1, r2, w,
238 CALL
chkxer(
'CSYRFS', infot, nout, lerr, ok )
240 CALL
csyrfs(
'U', 2, 1, a, 2, af, 2, ip, b, 2, x, 1, r1, r2, w,
242 CALL
chkxer(
'CSYRFS', infot, nout, lerr, ok )
250 CALL
csyrfsx(
'/', eq, 0, 0, a, 1, af, 1, ip, s, b, 1, x, 1,
251 $ rcond, berr, n_err_bnds, err_bnds_n, err_bnds_c, nparams,
252 $ params, w, r, info )
253 CALL
chkxer(
'CSYRFSX', infot, nout, lerr, ok )
255 CALL
csyrfsx(
'U', eq, -1, 0, a, 1, af, 1, ip, s, b, 1, x, 1,
256 $ rcond, berr, n_err_bnds, err_bnds_n, err_bnds_c, nparams,
257 $ params, w, r, info )
258 CALL
chkxer(
'CSYRFSX', infot, nout, lerr, ok )
261 CALL
csyrfsx(
'U', eq, -1, 0, a, 1, af, 1, ip, s, b, 1, x, 1,
262 $ rcond, berr, n_err_bnds, err_bnds_n, err_bnds_c, nparams,
263 $ params, w, r, info )
264 CALL
chkxer(
'CSYRFSX', infot, nout, lerr, ok )
266 CALL
csyrfsx(
'U', eq, 0, -1, a, 1, af, 1, ip, s, b, 1, x, 1,
267 $ rcond, berr, n_err_bnds, err_bnds_n, err_bnds_c, nparams,
268 $ params, w, r, info )
269 CALL
chkxer(
'CSYRFSX', infot, nout, lerr, ok )
271 CALL
csyrfsx(
'U', eq, 2, 1, a, 1, af, 2, ip, s, b, 2, x, 2,
272 $ rcond, berr, n_err_bnds, err_bnds_n, err_bnds_c, nparams,
273 $ params, w, r, info )
274 CALL
chkxer(
'CSYRFSX', infot, nout, lerr, ok )
276 CALL
csyrfsx(
'U', eq, 2, 1, a, 2, af, 1, ip, s, b, 2, x, 2,
277 $ rcond, berr, n_err_bnds, err_bnds_n, err_bnds_c, nparams,
278 $ params, w, r, info )
279 CALL
chkxer(
'CSYRFSX', infot, nout, lerr, ok )
281 CALL
csyrfsx(
'U', eq, 2, 1, a, 2, af, 2, ip, s, b, 1, x, 2,
282 $ rcond, berr, n_err_bnds, err_bnds_n, err_bnds_c, nparams,
283 $ params, w, r, info )
284 CALL
chkxer(
'CSYRFSX', infot, nout, lerr, ok )
286 CALL
csyrfsx(
'U', eq, 2, 1, a, 2, af, 2, ip, s, b, 2, x, 1,
287 $ rcond, berr, n_err_bnds, err_bnds_n, err_bnds_c, nparams,
288 $ params, w, r, info )
289 CALL
chkxer(
'CSYRFSX', infot, nout, lerr, ok )
295 CALL
csycon(
'/', 0, a, 1, ip, anrm, rcond, w, info )
296 CALL
chkxer(
'CSYCON', infot, nout, lerr, ok )
298 CALL
csycon(
'U', -1, a, 1, ip, anrm, rcond, w, info )
299 CALL
chkxer(
'CSYCON', infot, nout, lerr, ok )
301 CALL
csycon(
'U', 2, a, 1, ip, anrm, rcond, w, info )
302 CALL
chkxer(
'CSYCON', infot, nout, lerr, ok )
304 CALL
csycon(
'U', 1, a, 1, ip, -anrm, rcond, w, info )
305 CALL
chkxer(
'CSYCON', infot, nout, lerr, ok )
310 ELSE IF(
lsamen( 2, c2,
'SP' ) )
THEN
316 CALL
csptrf(
'/', 0, a, ip, info )
317 CALL
chkxer(
'CSPTRF', infot, nout, lerr, ok )
319 CALL
csptrf(
'U', -1, a, ip, info )
320 CALL
chkxer(
'CSPTRF', infot, nout, lerr, ok )
326 CALL
csptri(
'/', 0, a, ip, w, info )
327 CALL
chkxer(
'CSPTRI', infot, nout, lerr, ok )
329 CALL
csptri(
'U', -1, a, ip, w, info )
330 CALL
chkxer(
'CSPTRI', infot, nout, lerr, ok )
336 CALL
csptrs(
'/', 0, 0, a, ip, b, 1, info )
337 CALL
chkxer(
'CSPTRS', infot, nout, lerr, ok )
339 CALL
csptrs(
'U', -1, 0, a, ip, b, 1, info )
340 CALL
chkxer(
'CSPTRS', infot, nout, lerr, ok )
342 CALL
csptrs(
'U', 0, -1, a, ip, b, 1, info )
343 CALL
chkxer(
'CSPTRS', infot, nout, lerr, ok )
345 CALL
csptrs(
'U', 2, 1, a, ip, b, 1, info )
346 CALL
chkxer(
'CSPTRS', infot, nout, lerr, ok )
352 CALL
csprfs(
'/', 0, 0, a, af, ip, b, 1, x, 1, r1, r2, w, r,
354 CALL
chkxer(
'CSPRFS', infot, nout, lerr, ok )
356 CALL
csprfs(
'U', -1, 0, a, af, ip, b, 1, x, 1, r1, r2, w, r,
358 CALL
chkxer(
'CSPRFS', infot, nout, lerr, ok )
360 CALL
csprfs(
'U', 0, -1, a, af, ip, b, 1, x, 1, r1, r2, w, r,
362 CALL
chkxer(
'CSPRFS', infot, nout, lerr, ok )
364 CALL
csprfs(
'U', 2, 1, a, af, ip, b, 1, x, 2, r1, r2, w, r,
366 CALL
chkxer(
'CSPRFS', infot, nout, lerr, ok )
368 CALL
csprfs(
'U', 2, 1, a, af, ip, b, 2, x, 1, r1, r2, w, r,
370 CALL
chkxer(
'CSPRFS', infot, nout, lerr, ok )
376 CALL
cspcon(
'/', 0, a, ip, anrm, rcond, w, info )
377 CALL
chkxer(
'CSPCON', infot, nout, lerr, ok )
379 CALL
cspcon(
'U', -1, a, ip, anrm, rcond, w, info )
380 CALL
chkxer(
'CSPCON', infot, nout, lerr, ok )
382 CALL
cspcon(
'U', 1, a, ip, -anrm, rcond, w, info )
383 CALL
chkxer(
'CSPCON', infot, nout, lerr, ok )
388 CALL
alaesm( path, ok, nout )