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

Method extendAssignment

test/float/arithmetic.cpp:218–226  ·  view source on GitHub ↗

Extend assignment \a x

Source from the content-addressed store, hash-verified

216 }
217 /// Extend assignment \a x
218 virtual bool extendAssignment(Assignment& x) const {
219 Gecode::FloatVal d = x[0]/x[1];
220 if (Gecode::Float::subset(d, dom)) {
221 x.set(2, d);
222 return true;
223 } else {
224 return false;
225 }
226 }
227 /// Post constraint on \a x
228 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
229 Gecode::div(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