Public Types |
typedef ValueT | ValueType |
| field type
|
Public Member Functions |
| Evaluation () |
| default constructor
|
| Evaluation (const Evaluation &other) |
| copy other function evaluation
|
template<class RhsValueType > |
| Evaluation (const RhsValueType &c) |
template<class RhsValueType > |
| Evaluation (const RhsValueType &c, int varPos) |
void | clearDerivatives () |
void | print (std::ostream &os=std::cout) const |
void | copyDerivatives (const Evaluation &other) |
Evaluation & | operator+= (const Evaluation &other) |
template<class RhsValueType > |
Evaluation & | operator+= (const RhsValueType &other) |
Evaluation & | operator-= (const Evaluation &other) |
template<class RhsValueType > |
Evaluation & | operator-= (const RhsValueType &other) |
Evaluation & | operator*= (const Evaluation &other) |
template<class RhsValueType > |
Evaluation & | operator*= (const RhsValueType &other) |
Evaluation & | operator/= (const Evaluation &other) |
template<class RhsValueType > |
Evaluation & | operator/= (const RhsValueType &other) |
Evaluation | operator+ (const Evaluation &other) const |
template<class RhsValueType > |
Evaluation | operator+ (const RhsValueType &other) const |
Evaluation | operator- (const Evaluation &other) const |
template<class RhsValueType > |
Evaluation | operator- (const RhsValueType &other) const |
Evaluation | operator- () const |
Evaluation | operator* (const Evaluation &other) const |
template<class RhsValueType > |
Evaluation | operator* (const RhsValueType &other) const |
Evaluation | operator/ (const Evaluation &other) const |
template<class RhsValueType > |
Evaluation | operator/ (const RhsValueType &other) const |
template<class RhsValueType > |
Evaluation & | operator= (const RhsValueType &other) |
Evaluation & | operator= (const Evaluation &other) |
template<class RhsValueType > |
bool | operator== (const RhsValueType &other) const |
bool | operator== (const Evaluation &other) const |
bool | operator!= (const Evaluation &other) const |
template<class RhsValueType > |
bool | operator> (RhsValueType other) const |
bool | operator> (const Evaluation &other) const |
template<class RhsValueType > |
bool | operator< (RhsValueType other) const |
bool | operator< (const Evaluation &other) const |
template<class RhsValueType > |
bool | operator>= (RhsValueType other) const |
bool | operator>= (const Evaluation &other) const |
template<class RhsValueType > |
bool | operator<= (RhsValueType other) const |
bool | operator<= (const Evaluation &other) const |
const ValueType & | value () const |
template<class RhsValueType > |
void | setValue (const RhsValueType &val) |
const ValueType & | derivative (int varIdx) const |
void | setDerivative (int varIdx, const ValueType &derVal) |
Static Public Member Functions |
template<class RhsValueType > |
static Evaluation | createVariable (const RhsValueType &value, int varPos) |
template<class RhsValueType > |
static Evaluation | createConstant (const RhsValueType &value) |
Static Public Attributes |
static constexpr int | size = 2 |
| number of derivatives
|
Static Protected Attributes |
static constexpr int | length_ = size + 1 |
| length of internal data vector
|
static constexpr int | valuepos_ = 0 |
| position index for value
|
static constexpr int | dstart_ = 1 |
| start index for derivatives
|
static constexpr int | dend_ = length_ |
| end+1 index for derivatives
|