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

Method extendAssignment

test/float/trigonometric.cpp:201–209  ·  view source on GitHub ↗

Extend assignment \a x

Source from the content-addressed store, hash-verified

199 }
200 /// Extend assignment \a x
201 virtual bool extendAssignment(Assignment& x) const {
202 Gecode::FloatVal d = tan(x[0]);
203 if (Gecode::Float::subset(d, dom)) {
204 x.set(1, d);
205 return true;
206 } else {
207 return false;
208 }
209 }
210 /// Post constraint on \a x
211 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
212 Gecode::tan(home, x[0], x[1]);

Callers

nothing calls this directly

Calls 3

tanFunction · 0.50
subsetFunction · 0.50
setMethod · 0.45

Tested by

no test coverage detected