Opm::DenseAd::Evaluation< ValueT, numDerivs > Class Template Reference

Represents a function evaluation and its derivatives w.r.t. More...

#include <Evaluation.hpp>

Public Types

typedef ValueT ValueType
 field type
 

Public Member Functions

 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> (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

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 = numDerivs
 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
 

Detailed Description

template<class ValueT, int numDerivs>
class Opm::DenseAd::Evaluation< ValueT, numDerivs >

Represents a function evaluation and its derivatives w.r.t.

a fixed set of variables.


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