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

Method solution

test/float/arithmetic.cpp:532–534  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

530 : Test("Arithmetic::Abs::XX::"+s,1,d,st,CPLT_ASSIGNMENT,false) {}
531 /// %Test whether \a x is solution
532 virtual MaybeType solution(const Assignment& x) const {
533 return eq(abs(x[0]), x[0]);
534 }
535 /// Post constraint on \a x
536 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
537 Gecode::abs(home, x[0], x[0]);

Callers

nothing calls this directly

Calls 1

absFunction · 0.50

Tested by

no test coverage detected