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

Method solution

test/float/transcendental.cpp:56–58  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

54 : Test("Transcendental::Exp::XY::"+s,2,d,st,CPLT_ASSIGNMENT,false) {}
55 /// %Test whether \a x is solution
56 virtual MaybeType solution(const Assignment& x) const {
57 return eq(exp(x[0]), x[1]);
58 }
59 /// Post constraint on \a x
60 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
61 if (flip())

Callers

nothing calls this directly

Calls 1

expFunction · 0.50

Tested by

no test coverage detected