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

Function div_zero

gecode/third-party/boost/numeric/interval/detail/division.hpp:136–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136template<class T, class Policies> inline
137interval<T, Policies> div_zero(const interval<T, Policies>& x)
138{
139 if (::gecode_boost::numeric::interval_lib::user::is_zero(x.lower()) &&
140 ::gecode_boost::numeric::interval_lib::user::is_zero(x.upper()))
141 return x;
142 else return interval<T, Policies>::whole();
143}
144
145template<class T, class Policies> inline
146interval<T, Policies> div_zero(const T& x)

Callers 1

operator/Function · 0.85

Calls 3

is_zeroFunction · 0.85
lowerMethod · 0.45
upperMethod · 0.45

Tested by

no test coverage detected