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

Method post

test/float/arithmetic.cpp:382–387  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

380 }
381 /// Post constraint on \a x
382 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
383 if (flip())
384 Gecode::pow(home, x[0], n, x[1]);
385 else
386 Gecode::rel(home, pow(x[0],n) == x[1]);
387 }
388 };
389
390 /// %Test for pow constraint where solution is ensured

Callers

nothing calls this directly

Calls 2

powFunction · 0.50
relFunction · 0.50

Tested by

no test coverage detected