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

Method extendAssignment

test/float/arithmetic.cpp:402–410  ·  view source on GitHub ↗

Extend assignment \a x

Source from the content-addressed store, hash-verified

400 }
401 /// Extend assignment \a x
402 virtual bool extendAssignment(Assignment& x) const {
403 Gecode::FloatVal d = pow(x[0],n);
404 if (Gecode::Float::subset(d, dom)) {
405 x.set(1, d);
406 return true;
407 } else {
408 return false;
409 }
410 }
411 /// Post constraint on \a x
412 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
413 Gecode::pow(home, x[0], n, x[1]);

Callers

nothing calls this directly

Calls 3

powFunction · 0.50
subsetFunction · 0.50
setMethod · 0.45

Tested by

no test coverage detected