63 INTEGER I, INFO, ITER, J
66 DOUBLE PRECISION A( NMAX, NMAX ), AF( NMAX, NMAX ), B( NMAX ),
67 $ C( NMAX ), R( NMAX ), R1( NMAX ), R2( NMAX ),
68 $ W( 2*NMAX ), X( NMAX )
69 DOUBLE PRECISION WORK(NMAX*NMAX)
81 COMMON / infoc / infot, nout, ok, lerr
82 COMMON / srnamc / srnamt
90 WRITE( nout, fmt = * )
96 a( i, j ) = 1.d0 / dble( i+j )
97 af( i, j ) = 1.d0 / dble( i+j )
111 CALL dsposv(
'/',0,0,a,1,b,1,x,1,work,swork,iter,info)
112 CALL chkxer(
'DSPOSV', infot, nout, lerr, ok )
114 CALL dsposv(
'U',-1,0,a,1,b,1,x,1,work,swork,iter,info)
115 CALL chkxer(
'DSPOSV', infot, nout, lerr, ok )
117 CALL dsposv(
'U',0,-1,a,1,b,1,x,1,work,swork,iter,info)
118 CALL chkxer(
'DSPOSV', infot, nout, lerr, ok )
120 CALL dsposv(
'U',2,1,a,1,b,2,x,2,work,swork,iter,info)
121 CALL chkxer(
'DSPOSV', infot, nout, lerr, ok )
123 CALL dsposv(
'U',2,1,a,2,b,1,x,2,work,swork,iter,info)
124 CALL chkxer(
'DSPOSV', infot, nout, lerr, ok )
126 CALL dsposv(
'U',2,1,a,2,b,2,x,1,work,swork,iter,info)
127 CALL chkxer(
'DSPOSV', infot, nout, lerr, ok )
132 WRITE( nout, fmt = 9999 )
'DSPOSV'
134 WRITE( nout, fmt = 9998 )
'DSPOSV'
137 9999
FORMAT( 1x, a6,
' drivers passed the tests of the error exits' )
138 9998
FORMAT(
' *** ', a6,
' drivers failed the tests of the error ',
subroutine chkxer(srnamt, infot, nout, lerr, ok)
subroutine derrac(nunit)
DERRAC
subroutine dsposv(uplo, n, nrhs, a, lda, b, ldb, x, ldx, work, swork, iter, info)
DSPOSV computes the solution to system of linear equations A * X = B for PO matrices