MCPcopy Create free account
hub / github.com/Gecode/gecode / ExecStatus prop_nroot_bnd

Function ExecStatus prop_nroot_bnd

gecode/int/arithmetic/nroot.hpp:151–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149
150 template<class Ops>
151 forceinline ExecStatus
152 prop_nroot_bnd(Space& home, IntView x0, IntView x1, const Ops& ops) {
153 assert((x0.min() < 0) && (x0.max() > 0));
154 assert((x1.min() < 0) && (x1.max() > 0));
155
156 GECODE_ME_CHECK(x1.lq(home,ops.fnroot(x0.max())));
157 GECODE_ME_CHECK(x1.gq(home,-ops.cnroot(-x0.min())));
158 GECODE_ME_CHECK(x0.le(home,ops.tpow(x1.max()+1)));
159 GECODE_ME_CHECK(x0.gq(home,ops.tpow(x1.min()-1)+1));
160
161 return ES_OK;
162 }
163
164 template<class Ops>
165 forceinline

Callers

nothing calls this directly

Calls 8

fnrootMethod · 0.80
cnrootMethod · 0.80
tpowMethod · 0.80
minMethod · 0.45
maxMethod · 0.45
lqMethod · 0.45
gqMethod · 0.45
leMethod · 0.45

Tested by

no test coverage detected