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

Function neg

gecode/int/arithmetic/mult.hpp:75–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 /// Test whether \a x is negative
74 template<class View>
75 forceinline bool
76 neg(const View& x) {
77 return x.max() < 0;
78 }
79 /// Test whether \a x is neither positive nor negative
80 template<class View>
81 forceinline bool

Callers 10

propagateMethod · 0.70
postMethod · 0.70
propagateMethod · 0.70
postMethod · 0.70
postMethod · 0.50
postMethod · 0.50
postMethod · 0.50
postFunction · 0.50
propagateMethod · 0.50
postMethod · 0.50

Calls 1

maxMethod · 0.45

Tested by

no test coverage detected