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

Method solution

test/float/arithmetic.cpp:513–515  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

511 : Test("Arithmetic::Abs::XY::"+s,2,d,st,CPLT_ASSIGNMENT,false) {}
512 /// %Test whether \a x is solution
513 virtual MaybeType solution(const Assignment& x) const {
514 return eq(abs(x[0]), x[1]);
515 }
516 /// Post constraint on \a x
517 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
518 if (flip())

Callers

nothing calls this directly

Calls 1

absFunction · 0.50

Tested by

no test coverage detected