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

Method solution

test/float/transcendental.cpp:101–103  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

99 : Test("Transcendental::Exp::XX::"+s,1,d,st,CPLT_ASSIGNMENT,false) {}
100 /// %Test whether \a x is solution
101 virtual MaybeType solution(const Assignment& x) const {
102 return eq(exp(x[0]), x[0]);
103 }
104 /// Post constraint on \a x
105 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
106 Gecode::exp(home, x[0], x[0]);

Callers

nothing calls this directly

Calls 1

expFunction · 0.50

Tested by

no test coverage detected