20 void psscal_(
int * N,
float * ALPHA,
21 float * X,
int * IX,
int * JX,
int * DESCX,
int * INCX )
23 void psscal_( 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,
"PSSCAL",
"X", *N, 1, Xi, Xj, Xd, *INCX, 6, &info );
176 if( info ) {
PB_Cabort( ctxt,
"PSSCAL", 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 sset_( &Xnq, ((
char *) ALPHA), ((
char *)(X+(Xii+Xjj*Xld))),
218 sscal_( &Xnq, ((
char *) ALPHA), ((
char *)(X+(Xii+Xjj*Xld))),
230 if( ( mycol == Xcol ) || ( Xcol < 0 ) )
241 sset_( &Xnp, ((
char *) ALPHA),
242 ((
char *)( X+(Xii+Xjj*Xd[
LLD_]) )), INCX );
246 sscal_( &Xnp, ((
char *) ALPHA),
247 ((
char *)( X+(Xii+Xjj*Xd[
LLD_]) )), INCX );