20 void pdscal_(
int * N,
double * ALPHA,
21 double * X,
int * IX,
int * JX,
int * DESCX,
int * INCX )
23 void pdscal_( N, ALPHA, X, IX, JX, DESCX, INCX )
27 int * INCX, * IX, * JX, * N;
158 int Xcol, Xi, Xii, Xj, Xjj, Xld, Xnp, Xnq, Xrow, ctxt, info,
159 mycol, myrow, npcol, nprow;
174 if( !( info = ( ( nprow == -1 ) ? -( 601 +
CTXT_ ) : 0 ) ) )
175 PB_Cchkvec( ctxt,
"PDSCAL",
"X", *N, 1, Xi, Xj, Xd, *INCX, 6, &info );
176 if( info ) {
PB_Cabort( ctxt,
"PDSCAL", info );
return; }
181 if( *N == 0 )
return;
191 PB_Cinfog2l( Xi, Xj, Xd, nprow, npcol, myrow, mycol, &Xii, &Xjj, &Xrow,
196 if( *INCX == Xd[
M_] )
201 if( ( myrow == Xrow ) || ( Xrow < 0 ) )
213 dset_( &Xnq, ((
char *) ALPHA), ((
char *)(X+(Xii+Xjj*Xld))),
218 dscal_( &Xnq, ((
char *) ALPHA), ((
char *)(X+(Xii+Xjj*Xld))),
230 if( ( mycol == Xcol ) || ( Xcol < 0 ) )
241 dset_( &Xnp, ((
char *) ALPHA),
242 ((
char *)( X+(Xii+Xjj*Xd[
LLD_]) )), INCX );
246 dscal_( &Xnp, ((
char *) ALPHA),
247 ((
char *)( X+(Xii+Xjj*Xd[
LLD_]) )), INCX );