MCPcopy Create free account
hub / github.com/Gecode/gecode / one

Function one

test/float/linear.cpp:46–51  ·  view source on GitHub ↗

Check whether \a has only one coefficients

Source from the content-addressed store, hash-verified

44
45 /// Check whether \a has only one coefficients
46 bool one(const Gecode::FloatValArgs& a) {
47 for (int i=a.size(); i--; )
48 if (a[i] != 1)
49 return false;
50 return true;
51 }
52
53 /**
54 * \defgroup TaskTestFloatLinear Linear constraints

Callers 2

postMethod · 0.70
postMethod · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected