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

Method post

gecode/float/trigonometric/tanatan.hpp:150–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148
149 template<class A, class B>
150 ExecStatus
151 Tan<A,B>::post(Home home, A x0, B x1) {
152 if (x0 == x1) {
153 #define I0_PI_2I FloatVal(0,pi_half_upper())
154 if (I0_PI_2I.in(x0.max())) GECODE_ME_CHECK(x0.lq(home, 0));
155 if (I0_PI_2I.in(-x0.min())) GECODE_ME_CHECK(x0.gq(home, 0));
156 #undef I0_PI_2I
157 }
158 GECODE_ES_CHECK(dopropagate(home,x0,x1));
159 (void) new (home) Tan<A,B>(home,x0,x1);
160 return ES_OK;
161 }
162
163 template<class A, class B>
164 forceinline

Callers

nothing calls this directly

Calls 9

atanFunction · 0.50
tanFunction · 0.50
inMethod · 0.45
maxMethod · 0.45
lqMethod · 0.45
minMethod · 0.45
gqMethod · 0.45
eqMethod · 0.45
domainMethod · 0.45

Tested by

no test coverage detected