My Project
Opm::DenseAd::Evaluation< ValueT, 1 > Class Template Reference

Public Types

typedef ValueT ValueType
 field type
 

Public Member Functions

constexpr int size () const
 number of derivatives
 
 Evaluation ()
 default constructor
 
 Evaluation (const Evaluation &other)=default
 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)
 
Evaluationoperator+= (const Evaluation &other)
 
template<class RhsValueType >
Evaluationoperator+= (const RhsValueType &other)
 
Evaluationoperator-= (const Evaluation &other)
 
template<class RhsValueType >
Evaluationoperator-= (const RhsValueType &other)
 
Evaluationoperator*= (const Evaluation &other)
 
template<class RhsValueType >
Evaluationoperator*= (const RhsValueType &other)
 
Evaluationoperator/= (const Evaluation &other)
 
template<class RhsValueType >
Evaluationoperator/= (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 >
Evaluationoperator= (const RhsValueType &other)
 
Evaluationoperator= (const Evaluation &other)=default
 
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!= (const RhsValueType &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 ValueTypevalue () const
 
template<class RhsValueType >
void setValue (const RhsValueType &val)
 
const ValueTypederivative (int varIdx) const
 
void setDerivative (int varIdx, const ValueType &derVal)
 

Static Public Member Functions

static Evaluation createBlank (const Evaluation &)
 
static Evaluation createConstantZero (const Evaluation &)
 
static Evaluation createConstantOne (const Evaluation &)
 
template<class RhsValueType >
static Evaluation createVariable (const RhsValueType &value, int varPos)
 
template<class RhsValueType >
static Evaluation createVariable (int nVars, const RhsValueType &value, int varPos)
 
template<class RhsValueType >
static Evaluation createVariable (const Evaluation &, const RhsValueType &value, int varPos)
 
template<class RhsValueType >
static Evaluation createConstant (int nVars, const RhsValueType &value)
 
template<class RhsValueType >
static Evaluation createConstant (const RhsValueType &value)
 
template<class RhsValueType >
static Evaluation createConstant (const Evaluation &, const RhsValueType &value)
 

Static Public Attributes

static const int numVars = 1
 the template argument which specifies the number of derivatives (-1 == "DynamicSize" means runtime determined)
 

Protected Member Functions

constexpr int length_ () const
 length of internal data vector
 
constexpr int valuepos_ () const
 position index for value
 
constexpr int dstart_ () const
 start index for derivatives
 
constexpr int dend_ () const
 end+1 index for derivatives
 
void checkDefined_ () const
 instruct valgrind to check that the value and all derivatives of the Evaluation object are well-defined.
 

The documentation for this class was generated from the following file: