63 INTEGER I, INFO, ITER, J
66 COMPLEX*16 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 RWORK( NMAX )
70 COMPLEX*16 WORK(NMAX*NMAX)
71 COMPLEX SWORK(NMAX*NMAX)
82 COMMON / infoc / infot, nout, ok, lerr
83 COMMON / srnamc / srnamt
91 WRITE( nout, fmt = * )
97 a( i, j ) = 1.d0 / dble( i+j )
98 af( i, j ) = 1.d0 / dble( i+j )
112 CALL zcposv(
'/',0,0,a,1,b,1,x,1,work,swork,rwork,iter,info)
113 CALL chkxer(
'ZCPOSV', infot, nout, lerr, ok )
115 CALL zcposv(
'U',-1,0,a,1,b,1,x,1,work,swork,rwork,iter,info)
116 CALL chkxer(
'ZCPOSV', infot, nout, lerr, ok )
118 CALL zcposv(
'U',0,-1,a,1,b,1,x,1,work,swork,rwork,iter,info)
119 CALL chkxer(
'ZCPOSV', infot, nout, lerr, ok )
121 CALL zcposv(
'U',2,1,a,1,b,2,x,2,work,swork,rwork,iter,info)
122 CALL chkxer(
'ZCPOSV', infot, nout, lerr, ok )
124 CALL zcposv(
'U',2,1,a,2,b,1,x,2,work,swork,rwork,iter,info)
125 CALL chkxer(
'ZCPOSV', infot, nout, lerr, ok )
127 CALL zcposv(
'U',2,1,a,2,b,2,x,1,work,swork,rwork,iter,info)
128 CALL chkxer(
'ZCPOSV', infot, nout, lerr, ok )
133 WRITE( nout, fmt = 9999 )
'ZCPOSV'
135 WRITE( nout, fmt = 9998 )
'ZCPOSV'
138 9999
FORMAT( 1x, a6,
' drivers passed the tests of the error exits' )
139 9998
FORMAT(
' *** ', a6,
' drivers failed the tests of the error ',
subroutine chkxer(srnamt, infot, nout, lerr, ok)
subroutine zcposv(uplo, n, nrhs, a, lda, b, ldb, x, ldx, work, swork, rwork, iter, info)
ZCPOSV computes the solution to system of linear equations A * X = B for PO matrices
subroutine zerrac(nunit)
ZERRAC