Class MEAL::ScalarMath

class ScalarMath

Convenience interface to building expressions from elements.

Public Functions

ScalarMath(double value = 0.0)

Default construct from a scalar value.

explicit ScalarMath(const Estimate<double> &value)

Construct from a scalar value.

ScalarMath(const ScalarMath &s)

Copy constructor.

ScalarMath(const Reference::To<Scalar> &s)

Construct from a Reference::To<Scalar>.

ScalarMath(Scalar &s)

Construct from a pointer to Scalar.

const ScalarMath operator=(const ScalarMath &s)

Assignment operator.

const ScalarMath operator+=(const ScalarMath &b)

Addition operator.

const ScalarMath operator-=(const ScalarMath &b)

Subtraction operator.

const ScalarMath operator*=(const ScalarMath &b)

Multiplication operator.

const ScalarMath operator/=(const ScalarMath &b)

Division operator.

double evaluate() const

Evaluate the expression.

Estimate<double> get_Estimate() const

Evaluate the expression and its estimated error.

inline Scalar *get_expression() const

Access the expression.