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