239 SUBROUTINE sdrvrfp( NOUT, NN, NVAL, NNS, NSVAL, NNT, NTVAL,
240 + thresh, a, asav, afac, ainv, b,
241 + bsav, xact, x, arf, arfinv,
242 + s_work_slatms, s_work_spot01, s_temp_spot02,
243 + s_temp_spot03, s_work_slansy,
244 + s_work_spot02, s_work_spot03 )
252 INTEGER nn, nns, nnt, nout
256 INTEGER nval( nn ), nsval( nns ), ntval( nnt )
267 REAL s_work_slatms( * )
268 REAL s_work_spot01( * )
269 REAL s_temp_spot02( * )
270 REAL s_temp_spot03( * )
271 REAL s_work_slansy( * )
272 REAL s_work_spot02( * )
273 REAL s_work_spot03( * )
280 parameter( one = 1.0e+0, zero = 0.0e+0 )
282 parameter( ntests = 4 )
286 INTEGER i, info, iuplo, lda, ldb, imat, nerrs, nfail,
287 + nrhs, nrun, izero, ioff, k, nt, n, iform, iin,
289 CHARACTER dist, ctype, uplo, cform
291 REAL anorm, ainvnm, cndnum, rcondc
294 CHARACTER uplos( 2 ), forms( 2 )
295 INTEGER iseed( 4 ), iseedy( 4 )
296 REAL result( ntests )
311 common / srnamc / srnamt
314 DATA iseedy / 1988, 1989, 1990, 1991 /
315 DATA uplos /
'U',
'L' /
316 DATA forms /
'N',
'T' /
326 iseed( i ) = iseedy( i )
345 IF( n.EQ.0 .AND. iit.GT.1 ) go to 120
349 IF( imat.EQ.4 .AND. n.LE.1 ) go to 120
350 IF( imat.EQ.5 .AND. n.LE.2 ) go to 120
355 uplo = uplos( iuplo )
360 cform = forms( iform )
365 CALL
slatb4(
'SPO', imat, n, n, ctype, kl, ku,
366 + anorm, mode, cndnum, dist )
369 CALL
slatms( n, n, dist, iseed, ctype,
371 + mode, cndnum, anorm, kl, ku, uplo, a,
372 + lda, s_work_slatms, info )
377 CALL
alaerh(
'SPF',
'SLATMS', info, 0, uplo, n,
378 + n, -1, -1, -1, iit, nfail, nerrs,
386 zerot = imat.GE.3 .AND. imat.LE.5
390 ELSE IF( iit.EQ.4 )
THEN
395 ioff = ( izero-1 )*lda
399 IF( iuplo.EQ.1 )
THEN
400 DO 20 i = 1, izero - 1
410 DO 40 i = 1, izero - 1
425 CALL
slacpy( uplo, n, n, a, lda, asav, lda )
435 anorm =
slansy(
'1', uplo, n, a, lda,
440 CALL
spotrf( uplo, n, a, lda, info )
444 CALL
spotri( uplo, n, a, lda, info )
448 ainvnm =
slansy(
'1', uplo, n, a, lda,
450 rcondc = ( one / anorm ) / ainvnm
454 CALL
slacpy( uplo, n, n, asav, lda, a, lda )
461 CALL
slarhs(
'SPO',
'N', uplo,
' ', n, n, kl, ku,
462 + nrhs, a, lda, xact, lda, b, lda,
464 CALL
slacpy(
'Full', n, nrhs, b, lda, bsav, lda )
469 CALL
slacpy( uplo, n, n, a, lda, afac, lda )
470 CALL
slacpy(
'Full', n, nrhs, b, ldb, x, ldb )
473 CALL
strttf( cform, uplo, n, afac, lda, arf, info )
475 CALL
spftrf( cform, uplo, n, arf, info )
479 IF( info.NE.izero )
THEN
485 CALL
alaerh(
'SPF',
'SPFSV ', info, izero,
486 + uplo, n, n, -1, -1, nrhs, iit,
487 + nfail, nerrs, nout )
498 CALL
spftrs( cform, uplo, n, nrhs, arf, x, ldb,
502 CALL
stfttr( cform, uplo, n, arf, afac, lda, info )
507 CALL
slacpy( uplo, n, n, afac, lda, asav, lda )
508 CALL
spot01( uplo, n, a, lda, afac, lda,
509 + s_work_spot01, result( 1 ) )
510 CALL
slacpy( uplo, n, n, asav, lda, afac, lda )
514 IF(mod(n,2).EQ.0)
THEN
515 CALL
slacpy(
'A', n+1, n/2, arf, n+1, arfinv,
518 CALL
slacpy(
'A', n, (n+1)/2, arf, n, arfinv,
523 CALL
spftri( cform, uplo, n, arfinv , info )
526 CALL
stfttr( cform, uplo, n, arfinv, ainv, lda,
532 + CALL
alaerh(
'SPO',
'SPFTRI', info, 0, uplo, n,
533 + n, -1, -1, -1, imat, nfail, nerrs,
536 CALL
spot03( uplo, n, a, lda, ainv, lda,
537 + s_temp_spot03, lda, s_work_spot03,
538 + rcondc, result( 2 ) )
542 CALL
slacpy(
'Full', n, nrhs, b, lda,
543 + s_temp_spot02, lda )
544 CALL
spot02( uplo, n, nrhs, a, lda, x, lda,
545 + s_temp_spot02, lda, s_work_spot02,
550 CALL
sget04( n, nrhs, x, lda, xact, lda, rcondc,
558 IF( result( k ).GE.thresh )
THEN
559 IF( nfail.EQ.0 .AND. nerrs.EQ.0 )
560 + CALL
aladhd( nout,
'SPF' )
561 WRITE( nout, fmt = 9999 )
'SPFSV ', uplo,
562 + n, iit, k, result( k )
575 CALL
alasvm(
'SPF', nout, nfail, nrun, nerrs )
577 9999 format( 1x, a6,
', UPLO=''', a1,
''', N =', i5,
', type ', i1,
578 +
', test(', i1,
')=', g12.5 )