81 REAL r( nmax ), r1( nmax ), r2( nmax )
82 COMPLEX a( nmax, nmax ), af( nmax, nmax ), b( nmax ),
83 $ w( 2*nmax ), x( nmax )
100 COMMON / infoc / infot, nout, ok, lerr
101 COMMON / srnamc / srnamt
104 INTRINSIC cmplx, real
109 WRITE( nout, fmt = * )
116 a( i, j ) = cmplx( 1. /
REAL( I+J ), -1. /
REAL( I+J ) )
117 af( i, j ) = cmplx( 1. /
REAL( I+J ), -1. /
REAL( I+J ) )
129 IF(
lsamen( 2, c2,
'SY' ) )
THEN
139 CALL
csytrf(
'/', 0, a, 1, ip, w, 1, info )
140 CALL
chkxer(
'CSYTRF', infot, nout, lerr, ok )
142 CALL
csytrf(
'U', -1, a, 1, ip, w, 1, info )
143 CALL
chkxer(
'CSYTRF', infot, nout, lerr, ok )
145 CALL
csytrf(
'U', 2, a, 1, ip, w, 4, info )
146 CALL
chkxer(
'CSYTRF', infot, nout, lerr, ok )
152 CALL
csytf2(
'/', 0, a, 1, ip, info )
153 CALL
chkxer(
'CSYTF2', infot, nout, lerr, ok )
155 CALL
csytf2(
'U', -1, a, 1, ip, info )
156 CALL
chkxer(
'CSYTF2', infot, nout, lerr, ok )
158 CALL
csytf2(
'U', 2, a, 1, ip, info )
159 CALL
chkxer(
'CSYTF2', infot, nout, lerr, ok )
165 CALL
csytri(
'/', 0, a, 1, ip, w, info )
166 CALL
chkxer(
'CSYTRI', infot, nout, lerr, ok )
168 CALL
csytri(
'U', -1, a, 1, ip, w, info )
169 CALL
chkxer(
'CSYTRI', infot, nout, lerr, ok )
171 CALL
csytri(
'U', 2, a, 1, ip, w, info )
172 CALL
chkxer(
'CSYTRI', infot, nout, lerr, ok )
178 CALL
csytri2(
'/', 0, a, 1, ip, w, 1, info )
179 CALL
chkxer(
'CSYTRI2', infot, nout, lerr, ok )
181 CALL
csytri2(
'U', -1, a, 1, ip, w, 1, info )
182 CALL
chkxer(
'CSYTRI2', infot, nout, lerr, ok )
184 CALL
csytri2(
'U', 2, a, 1, ip, w, 1, info )
185 CALL
chkxer(
'CSYTRI2', infot, nout, lerr, ok )
191 CALL
csytrs(
'/', 0, 0, a, 1, ip, b, 1, info )
192 CALL
chkxer(
'CSYTRS', infot, nout, lerr, ok )
194 CALL
csytrs(
'U', -1, 0, a, 1, ip, b, 1, info )
195 CALL
chkxer(
'CSYTRS', infot, nout, lerr, ok )
197 CALL
csytrs(
'U', 0, -1, a, 1, ip, b, 1, info )
198 CALL
chkxer(
'CSYTRS', infot, nout, lerr, ok )
200 CALL
csytrs(
'U', 2, 1, a, 1, ip, b, 2, info )
201 CALL
chkxer(
'CSYTRS', infot, nout, lerr, ok )
203 CALL
csytrs(
'U', 2, 1, a, 2, ip, b, 1, info )
204 CALL
chkxer(
'CSYTRS', infot, nout, lerr, ok )
210 CALL
csyrfs(
'/', 0, 0, a, 1, af, 1, ip, b, 1, x, 1, r1, r2, w,
212 CALL
chkxer(
'CSYRFS', infot, nout, lerr, ok )
214 CALL
csyrfs(
'U', -1, 0, a, 1, af, 1, ip, b, 1, x, 1, r1, r2,
216 CALL
chkxer(
'CSYRFS', infot, nout, lerr, ok )
218 CALL
csyrfs(
'U', 0, -1, a, 1, af, 1, ip, b, 1, x, 1, r1, r2,
220 CALL
chkxer(
'CSYRFS', infot, nout, lerr, ok )
222 CALL
csyrfs(
'U', 2, 1, a, 1, af, 2, ip, b, 2, x, 2, r1, r2, w,
224 CALL
chkxer(
'CSYRFS', infot, nout, lerr, ok )
226 CALL
csyrfs(
'U', 2, 1, a, 2, af, 1, ip, b, 2, x, 2, r1, r2, w,
228 CALL
chkxer(
'CSYRFS', infot, nout, lerr, ok )
230 CALL
csyrfs(
'U', 2, 1, a, 2, af, 2, ip, b, 1, x, 2, r1, r2, w,
232 CALL
chkxer(
'CSYRFS', infot, nout, lerr, ok )
234 CALL
csyrfs(
'U', 2, 1, a, 2, af, 2, ip, b, 2, x, 1, r1, r2, w,
236 CALL
chkxer(
'CSYRFS', infot, nout, lerr, ok )
242 CALL
csycon(
'/', 0, a, 1, ip, anrm, rcond, w, info )
243 CALL
chkxer(
'CSYCON', infot, nout, lerr, ok )
245 CALL
csycon(
'U', -1, a, 1, ip, anrm, rcond, w, info )
246 CALL
chkxer(
'CSYCON', infot, nout, lerr, ok )
248 CALL
csycon(
'U', 2, a, 1, ip, anrm, rcond, w, info )
249 CALL
chkxer(
'CSYCON', infot, nout, lerr, ok )
251 CALL
csycon(
'U', 1, a, 1, ip, -anrm, rcond, w, info )
252 CALL
chkxer(
'CSYCON', infot, nout, lerr, ok )
254 ELSE IF(
lsamen( 2, c2,
'SP' ) )
THEN
264 CALL
csptrf(
'/', 0, a, ip, info )
265 CALL
chkxer(
'CSPTRF', infot, nout, lerr, ok )
267 CALL
csptrf(
'U', -1, a, ip, info )
268 CALL
chkxer(
'CSPTRF', infot, nout, lerr, ok )
274 CALL
csptri(
'/', 0, a, ip, w, info )
275 CALL
chkxer(
'CSPTRI', infot, nout, lerr, ok )
277 CALL
csptri(
'U', -1, a, ip, w, info )
278 CALL
chkxer(
'CSPTRI', infot, nout, lerr, ok )
284 CALL
csptrs(
'/', 0, 0, a, ip, b, 1, info )
285 CALL
chkxer(
'CSPTRS', infot, nout, lerr, ok )
287 CALL
csptrs(
'U', -1, 0, a, ip, b, 1, info )
288 CALL
chkxer(
'CSPTRS', infot, nout, lerr, ok )
290 CALL
csptrs(
'U', 0, -1, a, ip, b, 1, info )
291 CALL
chkxer(
'CSPTRS', infot, nout, lerr, ok )
293 CALL
csptrs(
'U', 2, 1, a, ip, b, 1, info )
294 CALL
chkxer(
'CSPTRS', infot, nout, lerr, ok )
300 CALL
csprfs(
'/', 0, 0, a, af, ip, b, 1, x, 1, r1, r2, w, r,
302 CALL
chkxer(
'CSPRFS', infot, nout, lerr, ok )
304 CALL
csprfs(
'U', -1, 0, a, af, ip, b, 1, x, 1, r1, r2, w, r,
306 CALL
chkxer(
'CSPRFS', infot, nout, lerr, ok )
308 CALL
csprfs(
'U', 0, -1, a, af, ip, b, 1, x, 1, r1, r2, w, r,
310 CALL
chkxer(
'CSPRFS', infot, nout, lerr, ok )
312 CALL
csprfs(
'U', 2, 1, a, af, ip, b, 1, x, 2, r1, r2, w, r,
314 CALL
chkxer(
'CSPRFS', infot, nout, lerr, ok )
316 CALL
csprfs(
'U', 2, 1, a, af, ip, b, 2, x, 1, r1, r2, w, r,
318 CALL
chkxer(
'CSPRFS', infot, nout, lerr, ok )
324 CALL
cspcon(
'/', 0, a, ip, anrm, rcond, w, info )
325 CALL
chkxer(
'CSPCON', infot, nout, lerr, ok )
327 CALL
cspcon(
'U', -1, a, ip, anrm, rcond, w, info )
328 CALL
chkxer(
'CSPCON', infot, nout, lerr, ok )
330 CALL
cspcon(
'U', 1, a, ip, -anrm, rcond, w, info )
331 CALL
chkxer(
'CSPCON', infot, nout, lerr, ok )
336 CALL
alaesm( path, ok, nout )
subroutine alaesm(PATH, OK, NOUT)
ALAESM
subroutine csptrf(UPLO, N, AP, IPIV, INFO)
CSPTRF
subroutine csytrs(UPLO, N, NRHS, A, LDA, IPIV, B, LDB, INFO)
CSYTRS
subroutine csytrf(UPLO, N, A, LDA, IPIV, WORK, LWORK, INFO)
CSYTRF
subroutine csytri2(UPLO, N, A, LDA, IPIV, WORK, LWORK, INFO)
CSYTRI2
subroutine csyrfs(UPLO, N, NRHS, A, LDA, AF, LDAF, IPIV, B, LDB, X, LDX, FERR, BERR, WORK, RWORK, INFO)
CSYRFS
subroutine cspcon(UPLO, N, AP, IPIV, ANORM, RCOND, WORK, INFO)
CSPCON
subroutine csycon(UPLO, N, A, LDA, IPIV, ANORM, RCOND, WORK, INFO)
CSYCON
subroutine csprfs(UPLO, N, NRHS, AP, AFP, IPIV, B, LDB, X, LDX, FERR, BERR, WORK, RWORK, INFO)
CSPRFS
subroutine csptrs(UPLO, N, NRHS, AP, IPIV, B, LDB, INFO)
CSPTRS
subroutine chkxer(SRNAMT, INFOT, NOUT, LERR, OK)
subroutine csptri(UPLO, N, AP, IPIV, WORK, INFO)
CSPTRI
logical function lsamen(N, CA, CB)
LSAMEN
subroutine csytf2(UPLO, N, A, LDA, IPIV, INFO)
CSYTF2
subroutine cerrsy(PATH, NUNIT)
CERRSY
subroutine csytri(UPLO, N, A, LDA, IPIV, WORK, INFO)
CSYTRI