9 #ifndef _MP_constant_hpp_
10 #define _MP_constant_hpp_
63 Constant
abs(
const Constant& c);
73 Constant
pos(
const Constant& c);
82 Constant
ceil(
const Constant& c);
91 Constant
floor(
const Constant& c);
100 Constant
minimum(
const Constant& a,
const Constant& b);
109 Constant
maximum(
const Constant& a,
const Constant& b);
117 Constant
operator+(
const Constant& a,
const Constant& b);
125 Constant
operator-(
const Constant& a,
const Constant& b);
133 Constant
operator*(
const Constant& a,
const Constant& b);
141 Constant
operator/(
const Constant& a,
const Constant& b);
149 Constant
maximum(
const MP_domain& i,
const Constant& e);
156 Constant
minimum(
const MP_domain& i,
const Constant& e);
163 Constant
sum(
const MP_domain& i,
const Constant& e);
170 Constant
product(
const MP_domain& i,
const Constant& e);
Constant product(const MP_domain &i, const Constant &e)
Returns the sum of two constants.
Constant operator*(const Constant &a, const Constant &b)
Returns the product of two constants.
Constant maximum(const Constant &a, const Constant &b)
Returns the larger of two constants.
Constant sum(const MP_domain &i, const Constant &e)
Returns the sum of two constants.
virtual double evaluate() const =0
virtual int stage() const
Utility for doing reference counted pointers.
Constant minimum(const Constant &a, const Constant &b)
Returns the smaller of two constants.
Constant pos(const Constant &c)
for returning non-negative value of the constant.
Constant abs(const Constant &c)
for computing the absolute value of a constant value.
Reference to a set of data.
Constant ceil(const Constant &c)
The ceiling integral value of the input constant.
Representation of an expression involving an index.
Reference counted class for all "constant" types of data.
Constant operator+(const Constant &a, const Constant &b)
Returns the sum of two constants.
Base class for all "constant" types of data.
virtual int getStage() const
Range over which some other constuct is defined.
Constant operator/(const Constant &a, const Constant &b)
Returns the quotient of two constants.
Constant(Constant_base *r)
Constant operator-(const Constant &a, const Constant &b)
Returns the difference of two constants.
Constant floor(const Constant &c)
The floor integral value of the input constant.