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