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

Function neg

gecode/float/arithmetic/mult.hpp:46–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 /// Test whether \a x is negative
45 template<class View>
46 forceinline bool
47 neg(const View& x) {
48 return x.max() <= 0.0;
49 }
50 /// Test whether \a x is neither positive nor negative
51 template<class View>
52 forceinline bool

Callers 5

propagateMethod · 0.70
postMethod · 0.70
p_int_CMP_reifFunction · 0.50
p_int_lin_CMP_reifFunction · 0.50
p_bool_lin_CMP_reifFunction · 0.50

Calls 1

maxMethod · 0.45

Tested by

no test coverage detected