78 INTEGER IP( NMAX ), IW( NMAX )
79 REAL A( NMAX, NMAX ), AF( NMAX, NMAX ), B( NMAX ),
80 $ C( NMAX ), E( NMAX ), R( NMAX ), R1( NMAX ),
81 $ R2( NMAX ), W( 2*NMAX ), X( NMAX )
100 COMMON / infoc / infot, nout, ok, lerr
101 COMMON / srnamc / srnamt
109 WRITE( nout, fmt = * )
116 a( i, j ) = 1. / real( i+j )
117 af( i, j ) = 1. / real( i+j )
132 IF( lsamen( 2, c2,
'GE' ) )
THEN
138 CALL sgesv( -1, 0, a, 1, ip, b, 1, info )
139 CALL chkxer(
'SGESV ', infot, nout, lerr, ok )
141 CALL sgesv( 0, -1, a, 1, ip, b, 1, info )
142 CALL chkxer(
'SGESV ', infot, nout, lerr, ok )
144 CALL sgesv( 2, 1, a, 1, ip, b, 2, info )
145 CALL chkxer(
'SGESV ', infot, nout, lerr, ok )
147 CALL sgesv( 2, 1, a, 2, ip, b, 1, info )
148 CALL chkxer(
'SGESV ', infot, nout, lerr, ok )
154 CALL sgesvx(
'/',
'N', 0, 0, a, 1, af, 1, ip, eq, r, c, b, 1,
155 $ x, 1, rcond, r1, r2, w, iw, info )
156 CALL chkxer(
'SGESVX', infot, nout, lerr, ok )
158 CALL sgesvx(
'N',
'/', 0, 0, a, 1, af, 1, ip, eq, r, c, b, 1,
159 $ x, 1, rcond, r1, r2, w, iw, info )
160 CALL chkxer(
'SGESVX', infot, nout, lerr, ok )
162 CALL sgesvx(
'N',
'N', -1, 0, a, 1, af, 1, ip, eq, r, c, b, 1,
163 $ x, 1, rcond, r1, r2, w, iw, info )
164 CALL chkxer(
'SGESVX', infot, nout, lerr, ok )
166 CALL sgesvx(
'N',
'N', 0, -1, a, 1, af, 1, ip, eq, r, c, b, 1,
167 $ x, 1, rcond, r1, r2, w, iw, info )
168 CALL chkxer(
'SGESVX', infot, nout, lerr, ok )
170 CALL sgesvx(
'N',
'N', 2, 1, a, 1, af, 2, ip, eq, r, c, b, 2,
171 $ x, 2, rcond, r1, r2, w, iw, info )
172 CALL chkxer(
'SGESVX', infot, nout, lerr, ok )
174 CALL sgesvx(
'N', 'n
', 2, 1, A, 2, AF, 1, IP, EQ, R, C, B, 2,
175 $ X, 2, RCOND, R1, R2, W, IW, INFO )
176 CALL CHKXER( 'sgesvx', INFOT, NOUT, LERR, OK )
179 CALL SGESVX( 'f
', 'n
', 0, 0, A, 1, AF, 1, IP, EQ, R, C, B, 1,
180 $ X, 1, RCOND, R1, R2, W, IW, INFO )
181 CALL CHKXER( 'sgesvx', INFOT, NOUT, LERR, OK )
184 CALL SGESVX( 'f
', 'n
', 1, 0, A, 1, AF, 1, IP, EQ, R, C, B, 1,
185 $ X, 1, RCOND, R1, R2, W, IW, INFO )
186 CALL CHKXER( 'sgesvx', INFOT, NOUT, LERR, OK )
189 CALL SGESVX( 'f
', 'n
', 1, 0, A, 1, AF, 1, IP, EQ, R, C, B, 1,
190 $ X, 1, RCOND, R1, R2, W, IW, INFO )
191 CALL CHKXER( 'sgesvx', INFOT, NOUT, LERR, OK )
193 CALL SGESVX( 'n
', 'n
', 2, 1, A, 2, AF, 2, IP, EQ, R, C, B, 1,
194 $ X, 2, RCOND, R1, R2, W, IW, INFO )
195 CALL CHKXER( 'sgesvx', INFOT, NOUT, LERR, OK )
197 CALL SGESVX( 'n
', 'n
', 2, 1, A, 2, AF, 2, IP, EQ, R, C, B, 2,
198 $ X, 1, RCOND, R1, R2, W, IW, INFO )
199 CALL CHKXER( 'sgesvx', INFOT, NOUT, LERR, OK )
201 ELSE IF( LSAMEN( 2, C2, 'gb
' ) ) THEN
207 CALL SGBSV( -1, 0, 0, 0, A, 1, IP, B, 1, INFO )
208 CALL CHKXER( 'sgbsv ', INFOT, NOUT, LERR, OK )
210 CALL SGBSV( 1, -1, 0, 0, A, 1, IP, B, 1, INFO )
211 CALL CHKXER( 'sgbsv ', INFOT, NOUT, LERR, OK )
213 CALL SGBSV( 1, 0, -1, 0, A, 1, IP, B, 1, INFO )
214 CALL CHKXER( 'sgbsv ', INFOT, NOUT, LERR, OK )
216 CALL SGBSV( 0, 0, 0, -1, A, 1, IP, B, 1, INFO )
217 CALL CHKXER( 'sgbsv ', INFOT, NOUT, LERR, OK )
219 CALL SGBSV( 1, 1, 1, 0, A, 3, IP, B, 1, INFO )
220 CALL CHKXER( 'sgbsv ', INFOT, NOUT, LERR, OK )
222 CALL SGBSV( 2, 0, 0, 0, A, 1, IP, B, 1, INFO )
223 CALL CHKXER( 'sgbsv ', INFOT, NOUT, LERR, OK )
229 CALL SGBSVX( '/
', 'n
', 0, 0, 0, 0, A, 1, AF, 1, IP, EQ, R, C,
230 $ B, 1, X, 1, RCOND, R1, R2, W, IW, INFO )
231 CALL CHKXER( 'sgbsvx', INFOT, NOUT, LERR, OK )
233 CALL SGBSVX( 'n
', '/
', 0, 0, 0, 0, A, 1, AF, 1, IP, EQ, R, C,
234 $ B, 1, X, 1, RCOND, R1, R2, W, IW, INFO )
235 CALL CHKXER( 'sgbsvx', INFOT, NOUT, LERR, OK )
237 CALL SGBSVX( 'n
', 'n
', -1, 0, 0, 0, A, 1, AF, 1, IP, EQ, R, C,
238 $ B, 1, X, 1, RCOND, R1, R2, W, IW, INFO )
239 CALL CHKXER( 'sgbsvx', INFOT, NOUT, LERR, OK )
241 CALL SGBSVX( 'n
', 'n
', 1, -1, 0, 0, A, 1, AF, 1, IP, EQ, R, C,
242 $ B, 1, X, 1, RCOND, R1, R2, W, IW, INFO )
243 CALL CHKXER( 'sgbsvx', INFOT, NOUT, LERR, OK )
245 CALL SGBSVX( 'n
', 'n
', 1, 0, -1, 0, A, 1, AF, 1, IP, EQ, R, C,
246 $ B, 1, X, 1, RCOND, R1, R2, W, IW, INFO )
247 CALL CHKXER( 'sgbsvx', INFOT, NOUT, LERR, OK )
249 CALL SGBSVX( 'n
', 'n
', 0, 0, 0, -1, A, 1, AF, 1, IP, EQ, R, C,
250 $ B, 1, X, 1, RCOND, R1, R2, W, IW, INFO )
251 CALL CHKXER( 'sgbsvx', INFOT, NOUT, LERR, OK )
253 CALL SGBSVX( 'n
', 'n
', 1, 1, 1, 0, A, 2, AF, 4, IP, EQ, R, C,
254 $ B, 1, X, 1, RCOND, R1, R2, W, IW, INFO )
255 CALL CHKXER( 'sgbsvx', INFOT, NOUT, LERR, OK )
257 CALL SGBSVX( 'n
', 'n
', 1, 1, 1, 0, A, 3, AF, 3, IP, EQ, R, C,
258 $ B, 1, X, 1, RCOND, R1, R2, W, IW, INFO )
259 CALL CHKXER( 'sgbsvx', INFOT, NOUT, LERR, OK )
262 CALL SGBSVX( 'f
', 'n
', 0, 0, 0, 0, A, 1, AF, 1, IP, EQ, R, C,
263 $ B, 1, X, 1, RCOND, R1, R2, W, IW, INFO )
264 CALL CHKXER( 'sgbsvx', INFOT, NOUT, LERR, OK )
267 CALL SGBSVX( 'f
', 'n
', 1, 0, 0, 0, A, 1, AF, 1, IP, EQ, R, C,
268 $ B, 1, X, 1, RCOND, R1, R2, W, IW, INFO )
269 CALL CHKXER( 'sgbsvx', INFOT, NOUT, LERR, OK )
272 CALL SGBSVX( 'f
', 'n
', 1, 0, 0, 0, A, 1, AF, 1, IP, EQ, R, C,
273 $ B, 1, X, 1, RCOND, R1, R2, W, IW, INFO )
274 CALL CHKXER( 'sgbsvx', INFOT, NOUT, LERR, OK )
276 CALL SGBSVX( 'n
', 'n
', 2, 0, 0, 0, A, 1, AF, 1, IP, EQ, R, C,
277 $ B, 1, X, 2, RCOND, R1, R2, W, IW, INFO )
278 CALL CHKXER( 'sgbsvx', INFOT, NOUT, LERR, OK )
280 CALL SGBSVX( 'n
', 'n
', 2, 0, 0, 0, A, 1, AF, 1, IP, EQ, R, C,
281 $ B, 2, X, 1, RCOND, R1, R2, W, IW, INFO )
282 CALL CHKXER( 'sgbsvx', INFOT, NOUT, LERR, OK )
284 ELSE IF( LSAMEN( 2, C2, 'gt
' ) ) THEN
290 CALL SGTSV( -1, 0, A( 1, 1 ), A( 1, 2 ), A( 1, 3 ), B, 1,
292 CALL CHKXER( 'sgtsv ', INFOT, NOUT, LERR, OK )
294 CALL SGTSV( 0, -1, A( 1, 1 ), A( 1, 2 ), A( 1, 3 ), B, 1,
296 CALL CHKXER( 'sgtsv ', INFOT, NOUT, LERR, OK )
298 CALL SGTSV( 2, 0, A( 1, 1 ), A( 1, 2 ), A( 1, 3 ), B, 1, INFO )
299 CALL CHKXER( 'sgtsv ', INFOT, NOUT, LERR, OK )
305 CALL SGTSVX( '/
', 'n
', 0, 0, A( 1, 1 ), A( 1, 2 ), A( 1, 3 ),
306 $ AF( 1, 1 ), AF( 1, 2 ), AF( 1, 3 ), AF( 1, 4 ),
307 $ IP, B, 1, X, 1, RCOND, R1, R2, W, IW, INFO )
308 CALL CHKXER( 'sgtsvx', INFOT, NOUT, LERR, OK )
310 CALL SGTSVX( 'n
', '/
', 0, 0, A( 1, 1 ), A( 1, 2 ), A( 1, 3 ),
311 $ AF( 1, 1 ), AF( 1, 2 ), AF( 1, 3 ), AF( 1, 4 ),
312 $ IP, B, 1, X, 1, RCOND, R1, R2, W, IW, INFO )
313 CALL CHKXER( 'sgtsvx', INFOT, NOUT, LERR, OK )
315 CALL SGTSVX( 'n
', 'n
', -1, 0, A( 1, 1 ), A( 1, 2 ), A( 1, 3 ),
316 $ AF( 1, 1 ), AF( 1, 2 ), AF( 1, 3 ), AF( 1, 4 ),
317 $ IP, B, 1, X, 1, RCOND, R1, R2, W, IW, INFO )
318 CALL CHKXER( 'sgtsvx', INFOT, NOUT, LERR, OK )
320 CALL SGTSVX( 'n
', 'n
', 0, -1, A( 1, 1 ), A( 1, 2 ), A( 1, 3 ),
321 $ AF( 1, 1 ), AF( 1, 2 ), AF( 1, 3 ), AF( 1, 4 ),
322 $ IP, B, 1, X, 1, RCOND, R1, R2, W, IW, INFO )
323 CALL CHKXER( 'sgtsvx', INFOT, NOUT, LERR, OK )
325 CALL SGTSVX( 'n',
'N', 2, 0, a( 1, 1 ), a( 1, 2 ), a( 1, 3 ),
326 $ af( 1, 1 ), af( 1, 2 ), af( 1, 3 ), af( 1, 4 ),
327 $ ip, b, 1, x, 2, rcond, r1, r2, w, iw, info )
328 CALL chkxer(
'SGTSVX', infot, nout, lerr, ok )
330 CALL sgtsvx(
'N',
'N', 2, 0, a( 1, 1 ), a( 1, 2 ), a( 1, 3 ),
331 $ af( 1, 1 ), af( 1, 2 ), af( 1, 3 ), af( 1, 4 ),
332 $ ip, b, 2, x, 1, rcond, r1, r2, w, iw, info )
333 CALL chkxer(
'SGTSVX', infot, nout, lerr, ok )
335 ELSE IF( lsamen( 2, c2,
'PO' ) )
THEN
341 CALL sposv(
'/', 0, 0, a, 1, b, 1, info )
342 CALL chkxer(
'SPOSV ', infot, nout, lerr, ok )
344 CALL sposv(
'U', -1, 0, a, 1, b, 1, info )
345 CALL chkxer(
'SPOSV ', infot, nout, lerr, ok )
347 CALL sposv(
'U', 0, -1, a, 1, b, 1, info )
348 CALL chkxer(
'SPOSV ', infot, nout, lerr, ok )
350 CALL sposv(
'U', 2, 0, a, 1, b, 2, info )
351 CALL chkxer(
'SPOSV ', infot, nout, lerr, ok )
353 CALL sposv(
'U', 2, 0, a, 2, b, 1, info )
354 CALL chkxer(
'SPOSV ', infot, nout, lerr, ok )
360 CALL sposvx(
'/',
'U', 0, 0, a, 1, af, 1, eq, c, b, 1, x, 1,
361 $ rcond, r1, r2, w, iw, info )
364 CALL SPOSVX( 'n
', '/
', 0, 0, A, 1, AF, 1, EQ, C, B, 1, X, 1,
365 $ RCOND, R1, R2, W, IW, INFO )
366 CALL CHKXER( 'sposvx', INFOT, NOUT, LERR, OK )
368 CALL SPOSVX( 'n
', 'u
', -1, 0, A, 1, AF, 1, EQ, C, B, 1, X, 1,
369 $ RCOND, R1, R2, W, IW, INFO )
370 CALL CHKXER( 'sposvx', INFOT, NOUT, LERR, OK )
372 CALL SPOSVX( 'n
', 'u
', 0, -1, A, 1, AF, 1, EQ, C, B, 1, X, 1,
373 $ RCOND, R1, R2, W, IW, INFO )
374 CALL CHKXER( 'sposvx', INFOT, NOUT, LERR, OK )
376 CALL SPOSVX( 'n
', 'u
', 2, 0, A, 1, AF, 2, EQ, C, B, 2, X, 2,
377 $ RCOND, R1, R2, W, IW, INFO )
378 CALL CHKXER( 'sposvx', INFOT, NOUT, LERR, OK )
380 CALL SPOSVX( 'n
', 'u
', 2, 0, A, 2, AF, 1, EQ, C, B, 2, X, 2,
381 $ RCOND, R1, R2, W, IW, INFO )
382 CALL CHKXER( 'sposvx', INFOT, NOUT, LERR, OK )
385 CALL SPOSVX( 'f
', 'u
', 0, 0, A, 1, AF, 1, EQ, C, B, 1, X, 1,
386 $ RCOND, R1, R2, W, IW, INFO )
387 CALL CHKXER( 'sposvx', INFOT, NOUT, LERR, OK )
390 CALL SPOSVX( 'f
', 'u
', 1, 0, A, 1, AF, 1, EQ, C, B, 1, X, 1,
391 $ RCOND, R1, R2, W, IW, INFO )
392 CALL CHKXER( 'sposvx', INFOT, NOUT, LERR, OK )
394 CALL SPOSVX( 'n
', 'u
', 2, 0, A, 2, AF, 2, EQ, C, B, 1, X, 2,
395 $ RCOND, R1, R2, W, IW, INFO )
396 CALL CHKXER( 'sposvx', INFOT, NOUT, LERR, OK )
398 CALL SPOSVX( 'n
', 'u
', 2, 0, A, 2, AF, 2, EQ, C, B, 2, X, 1,
399 $ RCOND, R1, R2, W, IW, INFO )
400 CALL CHKXER( 'sposvx', INFOT, NOUT, LERR, OK )
402 ELSE IF( LSAMEN( 2, C2, 'pp
' ) ) THEN
408 CALL sppsv(
'/', 0, 0, a, b, 1, info )
409 CALL chkxer(
'SPPSV ', infot, nout, lerr, ok )
411 CALL sppsv(
'U', -1, 0, a, b, 1, info )
412 CALL chkxer(
'SPPSV ', infot, nout, lerr, ok )
414 CALL sppsv(
'U', 0, -1, a, b, 1, info )
415 CALL chkxer(
'SPPSV ', infot, nout, lerr, ok )
417 CALL sppsv(
'U', 2, 0, a, b, 1, info )
418 CALL chkxer(
'SPPSV ', infot, nout, lerr, ok )
424 CALL sppsvx(
'/',
'U', 0, 0, a, af, eq, c, b, 1, x, 1, rcond,
425 $ r1, r2, w, iw, info )
426 CALL chkxer(
'SPPSVX', infot, nout, lerr, ok )
428 CALL sppsvx(
'N',
'/', 0, 0, a, af, eq, c, b, 1, x, 1, rcond,
429 $ r1, r2, w, iw, info )
430 CALL chkxer(
'SPPSVX', infot, nout, lerr, ok )
432 CALL sppsvx(
'N',
'U', -1, 0, a, af, eq, c, b, 1, x, 1, rcond,
433 $ r1, r2, w, iw, info )
434 CALL chkxer(
'SPPSVX', infot, nout, lerr, ok )
436 CALL sppsvx(
'N',
'U', 0, -1, a, af, eq, c, b, 1, x, 1, rcond,
437 $ r1, r2, w, iw, info )
438 CALL chkxer(
'SPPSVX', infot, nout, lerr, ok )
441 CALL sppsvx(
'F',
'U', 0, 0, a, af, eq, c, b, 1, x, 1, rcond,
442 $ r1, r2, w, iw, info )
443 CALL chkxer(
'SPPSVX', infot, nout, lerr, ok )
446 CALL sppsvx(
'F',
'U', 1, 0, a, af, eq, c, b, 1, x, 1, rcond,
447 $ r1, r2, w, iw, info )
448 CALL chkxer(
'SPPSVX', infot, nout, lerr, ok )
450 CALL sppsvx(
'N',
'U', 2, 0, a, af, eq, c, b, 1, x, 2, rcond,
451 $ r1, r2, w, iw, info )
452 CALL chkxer(
'SPPSVX', infot, nout, lerr, ok )
454 CALL sppsvx(
'N',
'U', 2, 0, a, af, eq, c, b, 2, x, 1, rcond,
455 $ r1, r2, w, iw, info )
456 CALL chkxer(
'SPPSVX', infot, nout, lerr, ok )
458 ELSE IF( lsamen( 2, c2,
'PB' ) )
THEN
464 CALL spbsv(
'/', 0, 0, 0, a, 1, b, 1, info )
465 CALL chkxer(
'SPBSV ', infot, nout, lerr, ok )
467 CALL spbsv(
'U', -1, 0, 0, a, 1, b, 1, info )
468 CALL chkxer(
'SPBSV ', infot, nout, lerr, ok )
470 CALL spbsv(
'U', 1, -1, 0, a, 1, b, 1, info )
471 CALL chkxer(
'SPBSV ', infot, nout, lerr, ok )
473 CALL spbsv(
'U', 0, 0, -1, a, 1, b, 1, info )
474 CALL chkxer(
'SPBSV ', infot, nout, lerr, ok )
476 CALL spbsv(
'U', 1, 1, 0, a, 1, b, 2, info )
477 CALL chkxer(
'SPBSV ', infot, nout, lerr, ok )
479 CALL spbsv(
'U', 2, 0, 0, a, 1, b, 1, info )
480 CALL chkxer(
'SPBSV ', infot, nout, lerr, ok )
486 CALL spbsvx(
'/',
'U', 0, 0, 0, a, 1, af, 1, eq, c, b, 1, x, 1,
487 $ rcond, r1, r2, w, iw, info )
488 CALL chkxer(
'SPBSVX', infot, nout, lerr, ok )
490 CALL spbsvx(
'N',
'/', 0, 0, 0, a, 1, af, 1, eq, c, b, 1, x, 1,
491 $ rcond, r1, r2, w, iw, info )
492 CALL chkxer(
'SPBSVX', infot, nout
494 CALL spbsvx(
'N',
'U', -1, 0, 0, a, 1, af, 1, eq, c, b, 1, x,
495 $ 1, rcond, r1, r2, w, iw, info )
496 CALL chkxer(
'SPBSVX', infot, nout, lerr, ok )
498 CALL spbsvx(
'N',
'U', 1, -1, 0, a, 1, af, 1, eq, c, b, 1, x,
499 $ 1, rcond, r1, r2, w, iw, info )
500 CALL chkxer(
'SPBSVX', infot, nout, lerr, ok )
502 CALL spbsvx(
'N',
'U', 0, 0, -1, a, 1, af, 1, eq, c, b, 1, x,
503 $ 1, rcond, r1, r2, w, iw, info )
504 CALL chkxer(
'SPBSVX', infot, nout, lerr, ok )
506 CALL spbsvx(
'N',
'U', 1, 1, 0, a, 1, af, 2, eq, c, b, 2, x, 2,
507 $ rcond, r1, r2, w, iw, info )
508 CALL chkxer(
'SPBSVX', infot, nout, lerr, ok )
510 CALL spbsvx(
'N',
'U', 1, 1, 0, a
511 $ rcond, r1, r2, w, iw, info )
512 CALL chkxer(
'SPBSVX', infot, nout, lerr, ok )
515 CALL spbsvx(
'F',
'U', 0, 0, 0, a, 1, af, 1, eq, c, b, 1, x, 1,
516 $ rcond, r1, r2, w, iw, info )
517 CALL chkxer(
'SPBSVX', infot, nout, lerr, ok )
520 CALL spbsvx(
'F',
'U', 1, 0, 0, a, 1, af, 1, eq, c, b, 1, x, 1,
521 $ rcond, r1, r2, w, iw, info )
522 CALL chkxer(
'SPBSVX', infot, nout, lerr, ok )
524 CALL spbsvx(
'N',
'U', 2, 0, 0, a, 1, af, 1, eq, c, b, 1, x, 2,
525 $ rcond, r1, r2, w, iw, info )
526 CALL chkxer(
'SPBSVX', infot, nout, lerr, ok )
528 CALL spbsvx(
'N',
'U', 2, 0, 0, a, 1, af, 1, eq, c, b, 2, x, 1,
529 $ rcond, r1, r2, w, iw, info )
530 CALL chkxer(
'SPBSVX', infot, nout, lerr, ok )
532 ELSE IF( lsamen( 2, c2,
'PT' ) )
THEN
538 CALL sptsv( -1, 0, a( 1, 1 ), a( 1, 2 ), b, 1, info )
539 CALL chkxer(
'SPTSV ', infot, nout, lerr, ok )
541 CALL sptsv( 0, -1, a( 1, 1 ), a( 1, 2 ), b, 1, info )
542 CALL chkxer(
'SPTSV ', infot, nout, lerr, ok )
544 CALL sptsv( 2, 0, a( 1, 1 ), a( 1, 2 ), b, 1, info )
545 CALL chkxer(
'SPTSV ', infot, nout, lerr, ok )
551 CALL sptsvx(
'/', 0, 0, a( 1, 1 ), a( 1, 2 ), af( 1, 1 ),
552 $ af( 1, 2 ), b, 1, x, 1, rcond, r1, r2, w, info )
553 CALL chkxer(
'SPTSVX', infot, nout, lerr, ok )
555 CALL sptsvx(
'N', -1, 0, a( 1, 1 ), a( 1, 2 ), af( 1, 1 ),
556 $ af( 1, 2 ), b, 1, x, 1, rcond, r1, r2, w, info )
557 CALL chkxer(
'SPTSVX', infot, nout, lerr, ok )
559 CALL sptsvx(
'N', 0, -1, a( 1, 1 ), a( 1, 2 ), af( 1, 1 ),
560 $ af( 1, 2 ), b, 1, x, 1, rcond, r1, r2, w, info )
561 CALL chkxer(
'SPTSVX', infot, nout, lerr, ok )
563 CALL sptsvx(
'N', 2, 0, a( 1, 1 ), a( 1, 2 ), af( 1, 1 ),
564 $ af( 1, 2 ), b, 1, x, 2, rcond, r1, r2, w, info )
565 CALL chkxer(
'SPTSVX', infot, nout, lerr, ok )
567 CALL sptsvx(
'N', 2, 0, a( 1, 1 ), a( 1, 2 ), af( 1, 1 ),
568 $ af( 1, 2 ), b, 2, x, 1, rcond, r1, r2, w, info )
569 CALL chkxer(
'SPTSVX', infot, nout, lerr, ok )
571 ELSE IF( lsamen( 2, c2,
'SY' ) )
THEN
577 CALL ssysv(
'/', 0, 0, a, 1, ip, b, 1, w, 1, info )
578 CALL chkxer(
'SSYSV ', infot, nout, lerr, ok )
580 CALL ssysv(
'U', -1, 0, a, 1, ip, b, 1, w, 1, info )
581 CALL chkxer(
'SSYSV ', infot, nout, lerr, ok )
583 CALL ssysv(
'U', 0, -1, a, 1, ip, b, 1, w, 1, info )
584 CALL chkxer(
'SSYSV ', infot, nout, lerr, ok )
586 CALL ssysv(
'U', 2, 0, a, 2, ip, b, 1, w, 1, info )
587 CALL chkxer(
'SSYSV ', infot, nout, lerr, ok )
589 CALL ssysv(
'U', 0, 0, a, 1, ip, b, 1, w, 0, info )
590 CALL chkxer(
'SSYSV ', infot, nout, lerr, ok )
592 CALL ssysv(
'U', 0, 0, a, 1, ip, b, 1, w, -2, info )
593 CALL chkxer(
'SSYSV ', infot, nout, lerr, ok )
599 CALL ssysvx(
'/',
'U', 0, 0, a, 1, af, 1, ip, b, 1, x, 1,
600 $ rcond, r1, r2, w, 1, iw, info )
601 CALL chkxer(
'SSYSVX', infot, nout, lerr, ok )
603 CALL ssysvx(
'N',
'/', 0, 0, a, 1, af, 1, ip, b, 1, x, 1,
604 $ rcond, r1, r2, w, 1, iw, info )
605 CALL chkxer(
'SSYSVX', infot, nout, lerr, ok )
607 CALL ssysvx(
'N',
'U', -1, 0, a, 1, af, 1, ip, b, 1, x, 1,
608 $ rcond, r1, r2, w, 1, iw, info )
609 CALL chkxer(
'SSYSVX', infot, nout, lerr, ok )
611 CALL ssysvx(
'N',
'U', 0, -1, a, 1, af, 1, ip, b, 1, x, 1,
612 $ rcond, r1, r2, w, 1, iw, info )
613 CALL chkxer(
'SSYSVX', infot, nout, lerr, ok )
615 CALL ssysvx(
'N',
'U', 2, 0, a, 1, af, 2, ip, b, 2, x, 2,
616 $ rcond, r1, r2, w, 4, iw, info )
617 CALL chkxer(
'SSYSVX', infot, nout, lerr, ok )
619 CALL ssysvx(
'N',
'U', 2, 0, a, 2, af, 1, ip, b, 2, x, 2,
620 $ rcond, r1, r2, w, 4, iw, info )
621 CALL chkxer(
'SSYSVX', infot, nout, lerr, ok )
623 CALL ssysvx(
'N',
'U', 2, 0, a, 2, af, 2, ip, b, 1, x, 2,
624 $ rcond, r1, r2, w, 4, iw, info )
625 CALL chkxer(
'SSYSVX', infot, nout, lerr, ok )
627 CALL ssysvx(
'N',
'U', 2, 0, a, 2, af, 2, ip, b, 2, x, 1,
628 $ rcond, r1, r2, w, 4, iw, info )
629 CALL chkxer(
'SSYSVX', infot, nout, lerr, ok )
631 CALL ssysvx(
'N',
'U', 2, 0, a, 2, af, 2, ip, b, 2, x, 2,
632 $ rcond, r1, r2, w, 3, iw, info )
633 CALL chkxer(
'SSYSVX', infot, nout, lerr, ok )
636 ELSE IF( lsamen( 2, c2,
'SR' ) )
THEN
640 srnamt =
'SSYSV_ROOK'
642 CALL ssysv_rook(
'/', 0, 0, a, 1, ip, b, 1, w, 1, info )
643 CALL chkxer(
'SSYSV_ROOK', infot, nout, lerr, ok )
645 CALL ssysv_rook(
'U', -1, 0, a, 1, ip, b, 1, w, 1, info )
646 CALL chkxer(
'SSYSV_ROOK', infot, nout, lerr, ok )
648 CALL ssysv_rook(
'U', 0, -1, a, 1, ip, b, 1, w, 1, info )
649 CALL chkxer(
'SSYSV_ROOK', infot, nout, lerr, ok )
651 CALL ssysv_rook(
'U', 2, 0, a, 2, ip, b, 1, w, 1, info )
652 CALL chkxer(
'SSYSV_ROOK', infot, nout, lerr, ok )
654 CALL ssysv_rook(
'U', 0, 0, a, 1, ip, b, 1, w, 0, info )
655 CALL chkxer(
'SSYSV_ROOK', infot, nout, lerr, ok )
657 CALL ssysv_rook(
'U', 0, 0, a, 1, ip, b, 1, w, -2, info )
658 CALL chkxer(
'SSYSV_ROOK', infot, nout, lerr, ok )
660 ELSE IF( lsamen( 2, c2,
'SK' ) )
THEN
674 CALL ssysv_rk(
'/', 0, 0, a, 1, e, ip, b, 1, w, 1, info )
675 CALL chkxer(
'SSYSV_RK', infot, nout, lerr, ok )
677 CALL ssysv_rk(
'U', -1, 0, a, 1, e, ip, b, 1, w, 1, info )
678 CALL chkxer(
'SSYSV_RK', infot, nout, lerr, ok )
680 CALL ssysv_rk(
'U', 0, -1, a, 1, e, ip, b, 1, w, 1, info )
681 CALL chkxer(
'SSYSV_RK', infot, nout, lerr, ok )
683 CALL ssysv_rk(
'U', 2, 0, a, 1, e, ip, b, 2, w, 1, info )
684 CALL chkxer(
'SSYSV_RK', infot, nout, lerr, ok )
686 CALL ssysv_rk(
'U', 2, 0, a, 2, e, ip, b, 1, w, 1, info )
687 CALL chkxer(
'SSYSV_RK', infot, nout, lerr, ok )
689 CALL ssysv_rk(
'U', 0, 0, a, 1, e, ip, b, 1, w, 0, info )
690 CALL chkxer(
'SSYSV_RK', infot, nout, lerr, ok )
692 CALL ssysv_rk(
'U', 0, 0, a, 1, e, ip, b, 1, w, -2, info )
693 CALL chkxer(
'SSYSV_RK', infot, nout, lerr, ok )
695 ELSE IF( lsamen( 2, c2,
'SA' ) )
THEN
701 CALL ssysv_aa(
'/', 0, 0, a, 1, ip, b, 1, w, 1, info )
704 CALL SSYSV_AA( 'u
', -1, 0, A, 1, IP, B, 1, W, 1, INFO )
705 CALL CHKXER( 'ssysv_aa', INFOT, NOUT, LERR, OK )
707 CALL SSYSV_AA( 'u
', 0, -1, A, 1, IP, B, 1, W, 1, INFO )
708 CALL CHKXER( 'ssysv_aa', INFOT, NOUT, LERR, OK )
710 CALL SSYSV_AA( 'u
', 2, 0, A, 2, IP, B, 1, W, 1, INFO )
711 CALL CHKXER( 'ssysv_aa', INFOT, NOUT, LERR, OK )
713 ELSE IF( LSAMEN( 2, C2, 's2
' ) ) THEN
719 CALL SSYSV_AA_2STAGE( '/
', 0, 0, A, 1, A, 1, IP, IP, B, 1,
723 CALL SSYSV_AA_2STAGE( 'u
', -1, 0, A, 1, A, 1, IP, IP, B, 1,
727 CALL SSYSV_AA_2STAGE( 'u
', 0, -1, A, 1, A, 1, IP, IP, B, 1,
731 CALL SSYSV_AA_2STAGE( 'u
', 2, 1, A, 1, A, 1, IP, IP, B, 1,
735 CALL SSYSV_AA_2STAGE( 'u
', 2, 1, A, 2, A, 8, IP, IP, B, 1,
739 CALL SSYSV_AA_2STAGE( 'u
', 2, 1, A, 2, A, 1, IP, IP, B, 2,
743 ELSE IF( LSAMEN( 2, C2, 'sp
' ) ) THEN
749 CALL SSPSV( '/
', 0, 0, A, IP, B, 1, INFO )
750 CALL CHKXER( 'sspsv ', INFOT, NOUT, LERR, OK )
752 CALL SSPSV( 'u
', -1, 0, A, IP, B, 1, INFO )
753 CALL CHKXER( 'sspsv ', INFOT, NOUT, LERR, OK )
755 CALL SSPSV( 'u', 0, -1, a, ip, b, 1, info )
756 CALL chkxer(
'SSPSV ', infot, nout, lerr, ok )
758 CALL sspsv(
'U', 2, 0, a, ip, b, 1, info )
759 CALL chkxer(
'SSPSV ', infot, nout, lerr, ok )
765 CALL sspsvx(
'/',
'U', 0, 0, a, af, ip, b, 1, x, 1, rcond, r1,
767 CALL chkxer(
'SSPSVX', infot, nout, lerr, ok )
769 CALL sspsvx(
'N',
'/', 0, 0, a, af, ip, b, 1, x, 1, rcond, r1,
771 CALL chkxer(
'SSPSVX', infot, nout, lerr, ok )
773 CALL sspsvx(
'N',
'U', -1, 0, a, af, ip, b, 1, x, 1, rcond, r1,
777 CALL SSPSVX( 'n
', 'u
', 0, -1, A, AF, IP, B, 1, X, 1, RCOND, R1,
779 CALL CHKXER( 'sspsvx', INFOT, NOUT, LERR, OK )
781 CALL SSPSVX( 'n
', 'u
', 2, 0, A, AF, IP, B, 1, X, 2, RCOND, R1,
783 CALL CHKXER( 'sspsvx', INFOT, NOUT, LERR, OK )
785 CALL SSPSVX( 'n
', 'u
', 2, 0, A, AF, IP, B, 2, X, 1, RCOND, R1,
787 CALL CHKXER( 'sspsvx', INFOT, NOUT, LERR, OK )
793 WRITE( NOUT, FMT = 9999 )PATH
795 WRITE( NOUT, FMT = 9998 )PATH
798 9999 FORMAT( 1X, A3, ' drivers passed
the tests of
the error exits
' )
799 9998 FORMAT( ' *** ', a3,
' drivers failed the tests of the error ',