FLOPC++
Classes | Namespaces | Functions
MP_constant.hpp File Reference
#include "MP_utilities.hpp"

Go to the source code of this file.

Classes

class  flopc::Constant_base
 Base class for all "constant" types of data. More...
class  flopc::Constant
 Reference counted class for all "constant" types of data. More...

Namespaces

namespace  flopc
 

All flopc++ code is contained within the flopc namespace.


Functions

Constant flopc::operator- (const Constant &a)
Constant flopc::abs (const Constant &c)
 for computing the absolute value of a constant value.This is used in the normal formation of an expression such as abs(-5)
Constant flopc::pos (const Constant &c)
 for returning non-negative value of the constant.This is used in the formation of an expression. It is used to return a non-negative value..
Constant flopc::ceil (const Constant &c)
 The ceiling integral value of the input constant.This is used in the formation of an expression. It is used to "round up" a numeric constant which is potentially non-integer.
Constant flopc::floor (const Constant &c)
 The floor integral value of the input constant.This is used in the formation of an expression. It is used to "truncate" a numeric constant which is potentially non-integer.
Constant flopc::minimum (const Constant &a, const Constant &b)
 Returns the smaller of two constants.This is used in the formation of an expression.
Constant flopc::maximum (const Constant &a, const Constant &b)
 Returns the larger of two constants.This is used in the formation of an expression.
Constant flopc::operator+ (const Constant &a, const Constant &b)
 Returns the sum of two constants.This is used in the formation of an expression.
Constant flopc::operator- (const Constant &a, const Constant &b)
 Returns the difference of two constants.This is used in the formation of an expression.
Constant flopc::operator* (const Constant &a, const Constant &b)
 Returns the product of two constants.This is used in the formation of an expression.
Constant flopc::operator/ (const Constant &a, const Constant &b)
 Returns the quotient of two constants.This is used in the formation of an expression.
Constant flopc::mpif (const MP_boolean &c, const Constant &a, const Constant &b)
Constant flopc::maximum (const MP_domain &i, const Constant &e)
 Returns the maximum over the domain of the constant.
Constant flopc::minimum (const MP_domain &i, const Constant &e)
 Returns the sum of two constants.
Constant flopc::sum (const MP_domain &i, const Constant &e)
 Returns the sum of two constants.
Constant flopc::product (const MP_domain &i, const Constant &e)
 Returns the sum of two constants.