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

Function div

gecode/third-party/boost/numeric/interval/arith3.hpp:55–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55template<class I> inline
56I div(const typename I::base_type& x, const typename I::base_type& y)
57{
58 typedef typename I::traits_type Policies;
59 if (detail::test_input<typename I::base_type, Policies>(x, y) || user::is_zero(y))
60 return I::empty();
61 typename Policies::rounding rnd;
62 return I(rnd.div_down(x, y), rnd.div_up(x, y), true);
63}
64
65} // namespace interval_lib
66} // namespace numeric

Callers

nothing calls this directly

Calls 4

is_zeroFunction · 0.85
emptyFunction · 0.70
div_downMethod · 0.45
div_upMethod · 0.45

Tested by

no test coverage detected