33 #ifndef SACADO_ELRCACHEFAD_EXPRESSION_HPP
34 #define SACADO_ELRCACHEFAD_EXPRESSION_HPP
40 namespace ELRCacheFad {
57 template <
typename ExprT>
68 static const unsigned value = 0;
80 static const bool value =
false;
92 template <
typename ConstT>
168 template <
typename T>
173 template <
typename T>
182 #endif // SACADO_ELRCACHEFAD_EXPRESSION_HPP
ConstT base_expr_type
Typename of base-expressions.
ELRCacheFad::Expr< T >::base_expr_type type
SACADO_INLINE_FUNCTION ConstExpr(const ConstT &constant)
Constructor.
SACADO_INLINE_FUNCTION value_type val() const
Return value of operation.
Constant expression template.
ScalarType< value_type >::type scalar_type
Typename of scalar's (which may be different from ConstT)
Meta-function for determining concrete base expression.
static const unsigned value
SACADO_INLINE_FUNCTION value_type getTangent(int i) const
Return tangent component i of argument Arg.
Get the base Fad type from a view/expression.
const ConstT & constant_
The constant.
Wrapper for a generic expression template.
Meta-function for determining nesting with an expression.
static const int num_args
Number of arguments.
SACADO_INLINE_FUNCTION int size() const
Return size of the derivative array of the operation.
SACADO_INLINE_FUNCTION void getTangents(int i, value_type dots[]) const
Rturn tangent component i of arguments.
const ConstExpr< T > type
SACADO_INLINE_FUNCTION void computePartials(const value_type &bar, value_type partials[]) const
Return partials w.r.t. arguments.
Determine whether a given type is an expression.
SACADO_INLINE_FUNCTION void cache() const
Cache values.
SACADO_INLINE_FUNCTION bool isLinear() const
Return whether expression is linear.
SACADO_INLINE_FUNCTION bool isActive() const
Return whether argument is active.
#define SACADO_INLINE_FUNCTION
ConstT value_type
Typename of argument values.
SACADO_INLINE_FUNCTION bool updateValue() const
Return whether value should be updated.