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

Method extendAssignment

test/float/arithmetic.cpp:83–91  ·  view source on GitHub ↗

Extend assignment \a x

Source from the content-addressed store, hash-verified

81 }
82 /// Extend assignment \a x
83 virtual bool extendAssignment(Assignment& x) const {
84 Gecode::FloatVal d = x[0]*x[1];
85 if (Gecode::Float::subset(d, dom)) {
86 x.set(2, d);
87 return true;
88 } else {
89 return false;
90 }
91 }
92 /// Post constraint on \a x
93 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
94 Gecode::mult(home, x[0], x[1], x[2]);

Callers

nothing calls this directly

Calls 2

subsetFunction · 0.50
setMethod · 0.45

Tested by

no test coverage detected