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

Method post

test/float/arithmetic.cpp:448–453  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

446 }
447 /// Post constraint on \a x
448 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
449 if (flip())
450 Gecode::nroot(home, x[0], n, x[1]);
451 else
452 Gecode::rel(home, nroot(x[0],n) == x[1]);
453 }
454 };
455
456 /// %Test for nroot constraint where solution is ensured

Callers

nothing calls this directly

Calls 2

nrootFunction · 0.50
relFunction · 0.50

Tested by

no test coverage detected