FLOPC++
Classes | Namespaces | Functions
MP_constant.cpp File Reference
#include <float.h>
#include <cmath>
#include <sstream>
#include "MP_constant.hpp"
#include "MP_data.hpp"
#include "MP_domain.hpp"
#include "MP_index.hpp"

Go to the source code of this file.

Classes

class  flopc::Constant_index
class  flopc::Constant_double
class  flopc::Constant_abs
class  flopc::Constant_pos
class  flopc::Constant_ceil
class  flopc::Constant_floor
class  flopc::Constant_exp
class  flopc::Constant_min_2
class  flopc::Constant_max_2
class  flopc::Constant_plus
class  flopc::Constant_minus
class  flopc::Constant_unary_minus
class  flopc::Constant_mult
class  flopc::Constant_div
class  flopc::Constant_if
class  flopc::Constant_max
class  flopc::Constant_max::MaxFunctor
class  flopc::Constant_min
class  flopc::Constant_sum
class  flopc::Constant_product

Namespaces

namespace  flopc
 

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


Functions

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+ (MP_index &a, MP_index &b)
 returns a Constant as a result of addition of two MP_index values.
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- (MP_index &a, MP_index &b)
 returns a Constant as a result of a difference of two MP_index values.
Constant flopc::operator- (const Constant &a)
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.