20 void pzscal_(
int * N,
double * ALPHA,
21 double * X,
int * IX,
int * JX,
int * DESCX,
int * INCX )
23 void pzscal_( 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;
175 if( !( info = ( ( nprow == -1 ) ? -( 601 +
CTXT_ ) : 0 ) ) )
176 PB_Cchkvec( ctxt,
"PZSCAL",
"X", *N, 1, Xi, Xj, Xd, *INCX, 6, &info );
177 if( info ) {
PB_Cabort( ctxt,
"PZSCAL", info );
return; }
182 if( *N == 0 )
return;
192 PB_Cinfog2l( Xi, Xj, Xd, nprow, npcol, myrow, mycol, &Xii, &Xjj, &Xrow,
197 if( *INCX == Xd[
M_] )
202 if( ( myrow == Xrow ) || ( Xrow < 0 ) )
215 zset_( &Xnq, ((
char *) ALPHA),
Mptr( ((
char *) X), Xii, Xjj,
216 Xld, type->
size ), &Xld );
220 zscal_( &Xnq, ((
char *) ALPHA),
Mptr( ((
char *) X), Xii,
221 Xjj, Xld, type->
size ), &Xld );
232 if( ( mycol == Xcol ) || ( Xcol < 0 ) )
244 zset_( &Xnp, ((
char *) ALPHA),
Mptr( ((
char *) X), Xii,
245 Xjj, Xd[
LLD_], type->
size ), INCX );
249 zscal_( &Xnp, ((
char *) ALPHA),
Mptr( ((
char *) X), Xii,
250 Xjj, Xd[
LLD_], type->
size ), INCX );