1 SUBROUTINE pzlacgv( N, X, IX, JX, DESCX, INCX )
9 INTEGER INCX, IX, JX, N
111 INTEGER BLOCK_CYCLIC_2D, CSRC_, CTXT_, DLEN_, DTYPE_,
112 $ LLD_, MB_, M_, NB_, N_, RSRC_
113 parameter( block_cyclic_2d = 1, dlen_ = 9, dtype_ = 1,
114 $ ctxt_ = 2, m_ = 3, n_ = 4, mb_ = 5, nb_ = 6,
115 $ rsrc_ = 7, csrc_ = 8, lld_ = 9 )
118 INTEGER I, ICOFFX, ICTXT, IIX, IOFFX, IROFFX, IXCOL,
119 $ IXROW, JJX, LDX, MYCOL, MYROW, NP, NPCOL,
123 EXTERNAL blacs_gridinfo,
infog2l
130 INTRINSIC dconjg, mod
136 ictxt = descx( ctxt_ )
137 CALL blacs_gridinfo( ictxt, nprow, npcol, myrow, mycol )
141 CALL infog2l( ix, jx, descx, nprow, npcol, myrow, mycol,
142 $ iix, jjx, ixrow, ixcol )
145 IF( incx.EQ.descx( m_ ) )
THEN
151 icoffx = mod( jx-1, descx( nb_ ) )
152 nq = numroc( n+icoffx, descx( nb_ ), mycol, ixcol, npcol )
157 ioffx = iix+(jjx-1)*ldx
159 x( ioffx ) = dconjg( x( ioffx ) )
164 ELSE IF( incx.EQ.1 )
THEN
170 iroffx = mod( ix-1, descx( mb_ ) )
171 np = numroc( n+iroffx, descx( mb_ ), myrow, ixrow, nprow )
176 ioffx = iix+(jjx-1)*ldx
177 DO 20 i = ioffx, ioffx+np-1
178 x( i ) = dconjg( x( i ) )