1 SUBROUTINE pdrscl( N, SA, SX, IX, JX, DESCX, INCX )
9 INTEGER IX, INCX, JX, N
14 DOUBLE PRECISION SX( * )
121 INTEGER BLOCK_CYCLIC_2D, CSRC_, CTXT_, DLEN_, DTYPE_,
122 $ LLD_, MB_, M_, NB_, N_, RSRC_
123 parameter( block_cyclic_2d = 1, dlen_ = 9, dtype_ = 1,
124 $ ctxt_ = 2, m_ = 3, n_ = 4, mb_ = 5, nb_ = 6,
125 $ rsrc_ = 7, csrc_ = 8, lld_ = 9 )
126 DOUBLE PRECISION ONE, ZERO
127 parameter( one = 1.0d+0, zero = 0.0d+0 )
131 INTEGER ICTXT, MYCOL, MYROW, NPCOL, NPROW
132 DOUBLE PRECISION BIGNUM, CDEN, CDEN1, CNUM, CNUM1, MUL, SMLNUM
135 EXTERNAL blacs_gridinfo,
pdlabad, pdscal
138 DOUBLE PRECISION PDLAMCH
148 ictxt = descx( ctxt_ )
149 CALL blacs_gridinfo( ictxt, nprow, npcol, myrow, mycol )
158 smlnum = pdlamch( ictxt,
'S' )
159 bignum = one / smlnum
160 CALL pdlabad( ictxt, smlnum, bignum )
169 cnum1 = cnum / bignum
170 IF( abs( cden1 ).GT.abs( cnum ) .AND. cnum.NE.zero )
THEN
178 ELSE IF( abs( cnum1 ).GT.abs( cden ) )
THEN
196 CALL pdscal( n, mul, sx, ix, jx, descx, incx )