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

Method extendAssignment

test/float/trigonometric.cpp:400–408  ·  view source on GitHub ↗

Extend assignment \a x

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

atanFunction · 0.50
subsetFunction · 0.50
setMethod · 0.45

Tested by

no test coverage detected