#include <Evaluation7.hpp>

Public Types

typedef ValueT ValueType
 field type More...
 

Public Member Functions

constexpr int size () const
 number of derivatives More...
 
 Evaluation ()
 default constructor More...
 
 Evaluation (const Evaluation &other)=default
 copy other function evaluation More...
 
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 = 7
 

Protected Member Functions

constexpr int length_ () const
 length of internal data vector More...
 
constexpr int valuepos_ () const
 position index for value More...
 
constexpr int dstart_ () const
 start index for derivatives More...
 
constexpr int dend_ () const
 end+1 index for derivatives More...
 
void checkDefined_ () const
 

Member Typedef Documentation

◆ ValueType

template<class ValueT >
typedef ValueT Opm::DenseAd::Evaluation< ValueT, 7 >::ValueType

field type

Constructor & Destructor Documentation

◆ Evaluation() [1/4]

template<class ValueT >
Opm::DenseAd::Evaluation< ValueT, 7 >::Evaluation ( )
inline

default constructor

◆ Evaluation() [2/4]

template<class ValueT >
Opm::DenseAd::Evaluation< ValueT, 7 >::Evaluation ( const Evaluation< ValueT, 7 > &  other)
default

copy other function evaluation

◆ Evaluation() [3/4]

◆ Evaluation() [4/4]

Member Function Documentation

◆ checkDefined_()

template<class ValueT >
void Opm::DenseAd::Evaluation< ValueT, 7 >::checkDefined_ ( ) const
inlineprotected

instruct valgrind to check that the value and all derivatives of the Evaluation object are well-defined.

References Opm::Valgrind::CheckDefined().

◆ clearDerivatives()

template<class ValueT >
void Opm::DenseAd::Evaluation< ValueT, 7 >::clearDerivatives ( )
inline

◆ copyDerivatives()

template<class ValueT >
void Opm::DenseAd::Evaluation< ValueT, 7 >::copyDerivatives ( const Evaluation< ValueT, 7 > &  other)
inline

◆ createBlank()

template<class ValueT >
static Evaluation Opm::DenseAd::Evaluation< ValueT, 7 >::createBlank ( const Evaluation< ValueT, 7 > &  )
inlinestatic

◆ createConstant() [1/3]

template<class ValueT >
template<class RhsValueType >
static Evaluation Opm::DenseAd::Evaluation< ValueT, 7 >::createConstant ( const Evaluation< ValueT, 7 > &  ,
const RhsValueType &  value 
)
inlinestatic

◆ createConstant() [2/3]

template<class ValueT >
template<class RhsValueType >
static Evaluation Opm::DenseAd::Evaluation< ValueT, 7 >::createConstant ( const RhsValueType &  value)
inlinestatic

◆ createConstant() [3/3]

template<class ValueT >
template<class RhsValueType >
static Evaluation Opm::DenseAd::Evaluation< ValueT, 7 >::createConstant ( int  nVars,
const RhsValueType &  value 
)
inlinestatic

◆ createConstantOne()

template<class ValueT >
static Evaluation Opm::DenseAd::Evaluation< ValueT, 7 >::createConstantOne ( const Evaluation< ValueT, 7 > &  )
inlinestatic

◆ createConstantZero()

template<class ValueT >
static Evaluation Opm::DenseAd::Evaluation< ValueT, 7 >::createConstantZero ( const Evaluation< ValueT, 7 > &  )
inlinestatic

◆ createVariable() [1/3]

template<class ValueT >
template<class RhsValueType >
static Evaluation Opm::DenseAd::Evaluation< ValueT, 7 >::createVariable ( const Evaluation< ValueT, 7 > &  ,
const RhsValueType &  value,
int  varPos 
)
inlinestatic

◆ createVariable() [2/3]

template<class ValueT >
template<class RhsValueType >
static Evaluation Opm::DenseAd::Evaluation< ValueT, 7 >::createVariable ( const RhsValueType &  value,
int  varPos 
)
inlinestatic

◆ createVariable() [3/3]

template<class ValueT >
template<class RhsValueType >
static Evaluation Opm::DenseAd::Evaluation< ValueT, 7 >::createVariable ( int  nVars,
const RhsValueType &  value,
int  varPos 
)
inlinestatic

◆ dend_()

template<class ValueT >
constexpr int Opm::DenseAd::Evaluation< ValueT, 7 >::dend_ ( ) const
inlineconstexprprotected

◆ derivative()

◆ dstart_()

template<class ValueT >
constexpr int Opm::DenseAd::Evaluation< ValueT, 7 >::dstart_ ( ) const
inlineconstexprprotected

start index for derivatives

◆ length_()

template<class ValueT >
constexpr int Opm::DenseAd::Evaluation< ValueT, 7 >::length_ ( ) const
inlineconstexprprotected

length of internal data vector

References Opm::DenseAd::Evaluation< ValueT, numDerivs, staticSize >::size().

◆ operator!=() [1/2]

template<class ValueT >
bool Opm::DenseAd::Evaluation< ValueT, 7 >::operator!= ( const Evaluation< ValueT, 7 > &  other) const
inline

◆ operator!=() [2/2]

template<class ValueT >
template<class RhsValueType >
bool Opm::DenseAd::Evaluation< ValueT, 7 >::operator!= ( const RhsValueType &  other) const
inline

◆ operator*() [1/2]

template<class ValueT >
Evaluation Opm::DenseAd::Evaluation< ValueT, 7 >::operator* ( const Evaluation< ValueT, 7 > &  other) const
inline

◆ operator*() [2/2]

template<class ValueT >
template<class RhsValueType >
Evaluation Opm::DenseAd::Evaluation< ValueT, 7 >::operator* ( const RhsValueType &  other) const
inline

◆ operator*=() [1/2]

◆ operator*=() [2/2]

template<class ValueT >
template<class RhsValueType >
Evaluation & Opm::DenseAd::Evaluation< ValueT, 7 >::operator*= ( const RhsValueType &  other)
inline

◆ operator+() [1/2]

template<class ValueT >
Evaluation Opm::DenseAd::Evaluation< ValueT, 7 >::operator+ ( const Evaluation< ValueT, 7 > &  other) const
inline

◆ operator+() [2/2]

template<class ValueT >
template<class RhsValueType >
Evaluation Opm::DenseAd::Evaluation< ValueT, 7 >::operator+ ( const RhsValueType &  other) const
inline

◆ operator+=() [1/2]

template<class ValueT >
Evaluation & Opm::DenseAd::Evaluation< ValueT, 7 >::operator+= ( const Evaluation< ValueT, 7 > &  other)
inline

◆ operator+=() [2/2]

template<class ValueT >
template<class RhsValueType >
Evaluation & Opm::DenseAd::Evaluation< ValueT, 7 >::operator+= ( const RhsValueType &  other)
inline

◆ operator-() [1/3]

template<class ValueT >
Evaluation Opm::DenseAd::Evaluation< ValueT, 7 >::operator- ( ) const
inline

◆ operator-() [2/3]

template<class ValueT >
Evaluation Opm::DenseAd::Evaluation< ValueT, 7 >::operator- ( const Evaluation< ValueT, 7 > &  other) const
inline

◆ operator-() [3/3]

template<class ValueT >
template<class RhsValueType >
Evaluation Opm::DenseAd::Evaluation< ValueT, 7 >::operator- ( const RhsValueType &  other) const
inline

◆ operator-=() [1/2]

template<class ValueT >
Evaluation & Opm::DenseAd::Evaluation< ValueT, 7 >::operator-= ( const Evaluation< ValueT, 7 > &  other)
inline

◆ operator-=() [2/2]

template<class ValueT >
template<class RhsValueType >
Evaluation & Opm::DenseAd::Evaluation< ValueT, 7 >::operator-= ( const RhsValueType &  other)
inline

◆ operator/() [1/2]

template<class ValueT >
Evaluation Opm::DenseAd::Evaluation< ValueT, 7 >::operator/ ( const Evaluation< ValueT, 7 > &  other) const
inline

◆ operator/() [2/2]

template<class ValueT >
template<class RhsValueType >
Evaluation Opm::DenseAd::Evaluation< ValueT, 7 >::operator/ ( const RhsValueType &  other) const
inline

◆ operator/=() [1/2]

◆ operator/=() [2/2]

template<class ValueT >
template<class RhsValueType >
Evaluation & Opm::DenseAd::Evaluation< ValueT, 7 >::operator/= ( const RhsValueType &  other)
inline

◆ operator<() [1/2]

template<class ValueT >
bool Opm::DenseAd::Evaluation< ValueT, 7 >::operator< ( const Evaluation< ValueT, 7 > &  other) const
inline

◆ operator<() [2/2]

template<class ValueT >
template<class RhsValueType >
bool Opm::DenseAd::Evaluation< ValueT, 7 >::operator< ( RhsValueType  other) const
inline

◆ operator<=() [1/2]

template<class ValueT >
bool Opm::DenseAd::Evaluation< ValueT, 7 >::operator<= ( const Evaluation< ValueT, 7 > &  other) const
inline

◆ operator<=() [2/2]

template<class ValueT >
template<class RhsValueType >
bool Opm::DenseAd::Evaluation< ValueT, 7 >::operator<= ( RhsValueType  other) const
inline

◆ operator=() [1/2]

template<class ValueT >
Evaluation & Opm::DenseAd::Evaluation< ValueT, 7 >::operator= ( const Evaluation< ValueT, 7 > &  other)
default

◆ operator=() [2/2]

template<class ValueT >
template<class RhsValueType >
Evaluation & Opm::DenseAd::Evaluation< ValueT, 7 >::operator= ( const RhsValueType &  other)
inline

◆ operator==() [1/2]

template<class ValueT >
bool Opm::DenseAd::Evaluation< ValueT, 7 >::operator== ( const Evaluation< ValueT, 7 > &  other) const
inline

◆ operator==() [2/2]

template<class ValueT >
template<class RhsValueType >
bool Opm::DenseAd::Evaluation< ValueT, 7 >::operator== ( const RhsValueType &  other) const
inline

◆ operator>() [1/2]

template<class ValueT >
bool Opm::DenseAd::Evaluation< ValueT, 7 >::operator> ( const Evaluation< ValueT, 7 > &  other) const
inline

◆ operator>() [2/2]

template<class ValueT >
template<class RhsValueType >
bool Opm::DenseAd::Evaluation< ValueT, 7 >::operator> ( RhsValueType  other) const
inline

◆ operator>=() [1/2]

template<class ValueT >
bool Opm::DenseAd::Evaluation< ValueT, 7 >::operator>= ( const Evaluation< ValueT, 7 > &  other) const
inline

◆ operator>=() [2/2]

template<class ValueT >
template<class RhsValueType >
bool Opm::DenseAd::Evaluation< ValueT, 7 >::operator>= ( RhsValueType  other) const
inline

◆ print()

◆ setDerivative()

template<class ValueT >
void Opm::DenseAd::Evaluation< ValueT, 7 >::setDerivative ( int  varIdx,
const ValueType derVal 
)
inline

◆ setValue()

template<class ValueT >
template<class RhsValueType >
void Opm::DenseAd::Evaluation< ValueT, 7 >::setValue ( const RhsValueType &  val)
inline

◆ size()

template<class ValueT >
constexpr int Opm::DenseAd::Evaluation< ValueT, 7 >::size ( ) const
inlineconstexpr

number of derivatives

◆ value()

template<class ValueT >
const ValueType & Opm::DenseAd::Evaluation< ValueT, 7 >::value ( ) const
inline

◆ valuepos_()

template<class ValueT >
constexpr int Opm::DenseAd::Evaluation< ValueT, 7 >::valuepos_ ( ) const
inlineconstexprprotected

position index for value

Member Data Documentation

◆ numVars

template<class ValueT >
const int Opm::DenseAd::Evaluation< ValueT, 7 >::numVars = 7
static

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


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