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

Method extendAssignment

test/float/arithmetic.cpp:263–271  ·  view source on GitHub ↗

Extend assignment \a x

Source from the content-addressed store, hash-verified

261 }
262 /// Extend assignment \a x
263 virtual bool extendAssignment(Assignment& x) const {
264 Gecode::FloatVal d = sqr(x[0]);
265 if (Gecode::Float::subset(d, dom)) {
266 x.set(1, d);
267 return true;
268 } else {
269 return false;
270 }
271 }
272 /// Post constraint on \a x
273 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
274 Gecode::sqr(home, x[0], x[1]);

Callers

nothing calls this directly

Calls 3

sqrFunction · 0.50
subsetFunction · 0.50
setMethod · 0.45

Tested by

no test coverage detected