model_server/subsystem/src/autosubsys.cxx
//
// Sets the decomposer instance's internal copy of the weights to what
// we've been given.
Sets the decomposer instance's internal copy of the weights to what
we've been given.
Sets the decomposer instance ' s internal copy of the weights to what we ' ve been given .
int decomposer::setweights(weight *w, int n) { 
  Initialize(decomposer::setweights);
  int i; 
  if (!weights || (weights && n != nweights)) {
    if (weights) delete weights;
    weights = new weight[nweights=n];
  }
  for (i=0; i<n; i++) weights[i]=w[i];
  ReturnValue(1);
}
int decomposer :: setweights ( weight * w , int n ) { Initialize ( decomposer :: setweights ) ; int i ; if ( ! weights || ( weights && n != nweights ) ) { if ( weights ) delete weights ; weights = new weight [ nweights = n ] ; } for ( i = 0 ; i < n ; i ++ ) weights [ i ] = w [ i ] ; ReturnValue ( 1 ) ; }
Sets the decomposer instance's internal copy of the weights to what
we've been given.
Sets the decomposer instance ' s internal copy of the weights to what we ' ve been given .