63 INTEGER I, INFO, ITER, J
67 DOUBLE PRECISION A( NMAX, NMAX ), AF( NMAX, NMAX ), B( NMAX ),
68 $ C( NMAX ), R( NMAX ), R1( NMAX ), R2( NMAX ),
69 $ W( 2*NMAX ), X( NMAX )
70 DOUBLE PRECISION WORK(1)
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 )
113 CALL dsgesv(-1,0,a,1,ip,b,1,x,1,work,swork,iter,info)
114 CALL chkxer(
'DSGESV', infot, nout, lerr, ok )
116 CALL dsgesv(0,-1,a,1,ip,b,1,x,1,work,swork,iter,info)
117 CALL chkxer(
'DSGESV', infot, nout, lerr, ok )
119 CALL dsgesv(2,1,a,1,ip,b,2,x,2,work,swork,iter,info)
120 CALL chkxer(
'DSGESV', infot, nout, lerr, ok )
122 CALL dsgesv(2,1,a,2,ip,b,1,x,2,work,swork,iter,info)
123 CALL chkxer(
'DSGESV', infot, nout, lerr, ok )
125 CALL dsgesv(2,1,a,2,ip,b,2,x,1,work,swork,iter,info)
126 CALL chkxer(
'DSGESV', infot, nout, lerr, ok )
131 WRITE( nout, fmt = 9999 )
'DSGESV'
133 WRITE( nout, fmt = 9998 )
'DSGESV'
136 9999
FORMAT( 1x, a6,
' drivers passed the tests of the error exits' )
137 9998
FORMAT(
' *** ', a6,
' drivers failed the tests of the error ',
subroutine chkxer(srnamt, infot, nout, lerr, ok)
subroutine derrab(nunit)
DERRAB
subroutine dsgesv(n, nrhs, a, lda, ipiv, b, ldb, x, ldx, work, swork, iter, info)
DSGESV computes the solution to system of linear equations A * X = B for GE matrices (mixed precision...