Sacado Package Browser (Single Doxygen Collection)
Version of the Day
|
Constant expression template. More...
#include <Sacado_ELRCacheFad_Expression.hpp>
Public Types | |
typedef ConstT | value_type |
Typename of argument values. More... | |
typedef ScalarType< value_type > ::type | scalar_type |
Typename of scalar's (which may be different from ConstT) More... | |
typedef ConstT | base_expr_type |
Typename of base-expressions. More... | |
Public Member Functions | |
SACADO_INLINE_FUNCTION | ConstExpr (const ConstT &constant) |
Constructor. More... | |
SACADO_INLINE_FUNCTION int | size () const |
Return size of the derivative array of the operation. More... | |
SACADO_INLINE_FUNCTION bool | updateValue () const |
Return whether value should be updated. More... | |
SACADO_INLINE_FUNCTION void | cache () const |
Cache values. More... | |
SACADO_INLINE_FUNCTION value_type | val () const |
Return value of operation. More... | |
SACADO_INLINE_FUNCTION void | computePartials (const value_type &bar, value_type partials[]) const |
Return partials w.r.t. arguments. More... | |
SACADO_INLINE_FUNCTION void | getTangents (int i, value_type dots[]) const |
Rturn tangent component i of arguments. More... | |
template<int Arg> | |
SACADO_INLINE_FUNCTION value_type | getTangent (int i) const |
Return tangent component i of argument Arg . More... | |
template<int Arg> | |
SACADO_INLINE_FUNCTION bool | isActive () const |
Return whether argument is active. More... | |
SACADO_INLINE_FUNCTION bool | isLinear () const |
Return whether expression is linear. More... | |
Static Public Attributes | |
static const int | num_args = 0 |
Number of arguments. More... | |
Protected Attributes | |
const ConstT & | constant_ |
The constant. More... | |
Constant expression template.
This template class represents a constant expression.
Definition at line 93 of file Sacado_ELRCacheFad_Expression.hpp.
typedef ConstT Sacado::ELRCacheFad::ConstExpr< ConstT >::value_type |
Typename of argument values.
Definition at line 98 of file Sacado_ELRCacheFad_Expression.hpp.
typedef ScalarType<value_type>::type Sacado::ELRCacheFad::ConstExpr< ConstT >::scalar_type |
Typename of scalar's (which may be different from ConstT)
Definition at line 101 of file Sacado_ELRCacheFad_Expression.hpp.
typedef ConstT Sacado::ELRCacheFad::ConstExpr< ConstT >::base_expr_type |
Typename of base-expressions.
Definition at line 104 of file Sacado_ELRCacheFad_Expression.hpp.
|
inline |
Constructor.
Definition at line 111 of file Sacado_ELRCacheFad_Expression.hpp.
|
inline |
Return size of the derivative array of the operation.
Definition at line 115 of file Sacado_ELRCacheFad_Expression.hpp.
|
inline |
Return whether value should be updated.
Definition at line 119 of file Sacado_ELRCacheFad_Expression.hpp.
|
inline |
Cache values.
Definition at line 123 of file Sacado_ELRCacheFad_Expression.hpp.
|
inline |
Return value of operation.
Definition at line 127 of file Sacado_ELRCacheFad_Expression.hpp.
|
inline |
Return partials w.r.t. arguments.
Definition at line 131 of file Sacado_ELRCacheFad_Expression.hpp.
|
inline |
Rturn tangent component i
of arguments.
Definition at line 136 of file Sacado_ELRCacheFad_Expression.hpp.
|
inline |
Return tangent component i
of argument Arg
.
Definition at line 141 of file Sacado_ELRCacheFad_Expression.hpp.
|
inline |
Return whether argument is active.
Definition at line 146 of file Sacado_ELRCacheFad_Expression.hpp.
|
inline |
Return whether expression is linear.
Definition at line 150 of file Sacado_ELRCacheFad_Expression.hpp.
|
static |
Number of arguments.
Definition at line 107 of file Sacado_ELRCacheFad_Expression.hpp.
|
protected |
The constant.
Definition at line 155 of file Sacado_ELRCacheFad_Expression.hpp.