MCPcopy Create free account
hub / github.com/Singular/Singular / weight

Method weight

IntegerProgramming/term_ordering.cc:395–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393
394
395double term_ordering::weight(const Integer* v) const
396{
397 double result=0;
398 for(short i=0;i<weighted_block_size;i++)
399 result+=(weight_vector[i]*v[i]);
400 return(result);
401}
402
403
404

Callers 3

ideal.ccFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected