Generated on Mon May 5 05:54:07 2008 for Gecode by doxygen 1.5.5

mult.icc File Reference

(Revision: 6288)

#include <cmath>
#include <climits>

Go to the source code of this file.

Namespaces

namespace  Gecode
namespace  Gecode::Int
namespace  Gecode::Int::Arithmetic

Functions

template<class Val>
Val Gecode::Int::Arithmetic::m (int x, int y)
 Multiply x and y as type Val.
template<class Val>
int Gecode::Int::Arithmetic::c_d_p (int x, int y)
 Compute $\lceil x/y\rceil$ where x and y are non-negative.
template<class Val>
int Gecode::Int::Arithmetic::f_d_p (int x, int y)
 Compute $\lfloor x/y\rfloor$ where x and y are non-negative.
template<>
int Gecode::Int::Arithmetic::c_d_p< int > (int x, int y)
template<>
int Gecode::Int::Arithmetic::c_d_p< double > (int x, int y)
template<>
int Gecode::Int::Arithmetic::f_d_p< int > (int x, int y)
template<>
int Gecode::Int::Arithmetic::f_d_p< double > (int x, int y)
int Gecode::Int::Arithmetic::f_d (int x, int y)
 Compute $\lfloor x/y\rfloor$.
int Gecode::Int::Arithmetic::c_d (int x, int y)
 Compute $\lceil x/y\rceil$.
template<class View>
bool Gecode::Int::Arithmetic::p (const View &x)
 Test whether x is postive.
template<class View>
bool Gecode::Int::Arithmetic::n (const View &x)
 Test whether x is negative.
template<class View>
bool Gecode::Int::Arithmetic::x (const View &x)
 Test whether x is neither positive nor negative.