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

Method post

gecode/float/transcendental/exp-log.hpp:47–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46 template<class A, class B>
47 ExecStatus
48 Exp<A,B>::post(Home home, A x0, B x1) {
49 if (x0 == x1) {
50 return ES_FAILED;
51 } else {
52 GECODE_ME_CHECK(x1.gq(home,0.0));
53 }
54 GECODE_ME_CHECK(x1.eq(home,exp(x0.domain())));
55 if (x1.max() == 0.0)
56 return ES_FAILED;
57 GECODE_ME_CHECK(x0.eq(home,log(x1.domain())));
58 (void) new (home) Exp<A,B>(home,x0,x1);
59 return ES_OK;
60 }
61
62
63 template<class A, class B>

Callers

nothing calls this directly

Calls 6

expFunction · 0.50
logFunction · 0.50
gqMethod · 0.45
eqMethod · 0.45
domainMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected