|
Sacado Package Browser (Single Doxygen Collection)
Version of the Day
|
Go to the documentation of this file.
52 #ifndef SACADO_ELRCACHEFAD_EXPRESSION_HPP
53 #define SACADO_ELRCACHEFAD_EXPRESSION_HPP
59 namespace ELRCacheFad {
76 template <
typename ExprT>
87 static const unsigned value = 0;
99 static const bool value =
false;
102 template <
typename T>
111 template <
typename ConstT>
187 template <
typename T>
192 template <
typename T>
201 #endif // SACADO_ELRCACHEFAD_EXPRESSION_HPP
static const int num_args
Number of arguments.
#define KOKKOS_INLINE_FUNCTION
KOKKOS_INLINE_FUNCTION ConstExpr(const ConstT &constant)
Constructor.
static const unsigned value
KOKKOS_INLINE_FUNCTION bool isActive() const
Return whether argument is active.
const typedef ConstExpr< T > type
const ConstT & constant_
The constant.
KOKKOS_INLINE_FUNCTION bool isLinear() const
Return whether expression is linear.
Determine whether a given type is an expression.
Wrapper for a generic expression template.
ConstT value_type
Typename of argument values.
KOKKOS_INLINE_FUNCTION value_type getTangent(int i) const
Return tangent component i of argument Arg.
KOKKOS_INLINE_FUNCTION void computePartials(const value_type &bar, value_type partials[]) const
Return partials w.r.t. arguments.
ConstT base_expr_type
Typename of base-expressions.
ELRCacheFad::Expr< T >::base_expr_type type
Meta-function for determining concrete base expression.
Meta-function for determining nesting with an expression.
Get the base Fad type from a view/expression.
KOKKOS_INLINE_FUNCTION void getTangents(int i, value_type dots[]) const
Rturn tangent component i of arguments.
KOKKOS_INLINE_FUNCTION void cache() const
Cache values.
KOKKOS_INLINE_FUNCTION bool updateValue() const
Return whether value should be updated.
Constant expression template.
KOKKOS_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)
KOKKOS_INLINE_FUNCTION value_type val() const
Return value of operation.