33 #ifndef SACADO_CACHEFAD_EXPRESSION_HPP
34 #define SACADO_CACHEFAD_EXPRESSION_HPP
57 template <
typename ExprT>
68 static const unsigned value = 0;
80 static const bool value =
false;
92 template <
typename ConstT>
143 template <
typename T>
148 template <
typename T>
157 #endif // SACADO_CACHEFAD_EXPRESSION_HPP
Determine whether a given type is an expression.
const ConstT & constant_
The constant.
ConstT base_expr_type
Typename of base-expressions.
SACADO_INLINE_FUNCTION value_type dx(int i) const
Return derivative component i of operation.
Constant expression template.
Meta-function for determining concrete base expression.
ConstT value_type
Typename of argument values.
CacheFad::Expr< T >::base_expr_type type
Get the base Fad type from a view/expression.
SACADO_INLINE_FUNCTION value_type val() const
Return value of operation.
SACADO_INLINE_FUNCTION bool hasFastAccess() const
Return if operation has fast access.
static const unsigned value
SACADO_INLINE_FUNCTION value_type fastAccessDx(int i) const
Return derivative component i of operation.
SACADO_INLINE_FUNCTION int size() const
Return size of the derivative array of the operation.
ScalarType< value_type >::type scalar_type
Typename of scalar's (which may be different from ConstT)
#define SACADO_INLINE_FUNCTION
SACADO_INLINE_FUNCTION ConstExpr(const ConstT &constant)
Constructor.
SACADO_INLINE_FUNCTION void cache() const
Cache values.
Wrapper for a generic expression template.
Meta-function for determining nesting with an expression.