Sacado Package Browser (Single Doxygen Collection)
Version of the Day
|
Constant expression template. More...
#include <Sacado_CacheFad_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 | hasFastAccess () const |
Return if operation has fast access. 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 value_type | dx (int i) const |
Return derivative component i of operation. More... | |
SACADO_INLINE_FUNCTION value_type | fastAccessDx (int i) const |
Return derivative component i of operation. 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_CacheFad_Expression.hpp.
typedef ConstT Sacado::CacheFad::ConstExpr< ConstT >::value_type |
Typename of argument values.
Definition at line 98 of file Sacado_CacheFad_Expression.hpp.
typedef ScalarType<value_type>::type Sacado::CacheFad::ConstExpr< ConstT >::scalar_type |
Typename of scalar's (which may be different from ConstT)
Definition at line 101 of file Sacado_CacheFad_Expression.hpp.
typedef ConstT Sacado::CacheFad::ConstExpr< ConstT >::base_expr_type |
Typename of base-expressions.
Definition at line 104 of file Sacado_CacheFad_Expression.hpp.
|
inline |
Constructor.
Definition at line 108 of file Sacado_CacheFad_Expression.hpp.
|
inline |
Return size of the derivative array of the operation.
Definition at line 112 of file Sacado_CacheFad_Expression.hpp.
|
inline |
Return if operation has fast access.
Definition at line 116 of file Sacado_CacheFad_Expression.hpp.
|
inline |
Cache values.
Definition at line 120 of file Sacado_CacheFad_Expression.hpp.
|
inline |
Return value of operation.
Definition at line 124 of file Sacado_CacheFad_Expression.hpp.
|
inline |
Return derivative component i
of operation.
Definition at line 128 of file Sacado_CacheFad_Expression.hpp.
|
inline |
Return derivative component i
of operation.
Definition at line 132 of file Sacado_CacheFad_Expression.hpp.
|
protected |
The constant.
Definition at line 137 of file Sacado_CacheFad_Expression.hpp.