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

Function abs

gecode/minimodel/float-arith.cpp:327–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325namespace Gecode {
326
327 LinFloatExpr
328 abs(const LinFloatExpr& e) {
329 using namespace MiniModel;
330 if (hasType(e, ArithNonLinFloatExpr::ANLFE_ABS))
331 return e;
332 ArithNonLinFloatExpr* ae =
333 new ArithNonLinFloatExpr(ArithNonLinFloatExpr::ANLFE_ABS,1);
334 ae->a[0] = e;
335 return LinFloatExpr(ae);
336 }
337
338 LinFloatExpr
339 min(const LinFloatExpr& e0, const LinFloatExpr& e1) {

Callers 1

postFunction · 0.70

Calls 2

LinFloatExprClass · 0.85
hasTypeFunction · 0.70

Tested by

no test coverage detected