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

Method cost

gecode/float/rel/eq.hpp:151–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149
150 template<class View>
151 PropCost
152 NaryEq<View>::cost(const Space&, const ModEventDelta& med) const {
153 if (View::me(med) == ME_FLOAT_VAL)
154 return PropCost::unary(PropCost::LO);
155 else
156 return PropCost::linear(PropCost::LO, x.size());
157 }
158
159 template<class View>
160 ExecStatus

Callers

nothing calls this directly

Calls 3

unaryFunction · 0.85
linearFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected