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

Function add

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

Source from the content-addressed store, hash-verified

23namespace interval_lib {
24
25template<class I> inline
26I add(const typename I::base_type& x, const typename I::base_type& y)
27{
28 typedef typename I::traits_type Policies;
29 if (detail::test_input<typename I::base_type, Policies>(x, y))
30 return I::empty();
31 typename Policies::rounding rnd;
32 return I(rnd.add_down(x, y), rnd.add_up(x, y), true);
33}
34
35template<class I> inline
36I sub(const typename I::base_type& x, const typename I::base_type& y)

Callers 15

NimFiboOptionsMethod · 0.85
MatrixGameOptionsMethod · 0.85
RndQCSPOptionsMethod · 0.85
BakerOptionsMethod · 0.85
QBFOptionsMethod · 0.85
ConnectFourOptionsMethod · 0.85
QDimacsOptionsMethod · 0.85
HammingOptionsMethod · 0.85
JobShopOptionsMethod · 0.85
QCPOptionsMethod · 0.85
GolfOptionsMethod · 0.85
ColoredMatrixOptionsMethod · 0.85

Calls 3

emptyFunction · 0.70
add_downMethod · 0.45
add_upMethod · 0.45

Tested by

no test coverage detected