10 #ifndef SACADO_ELRCACHEFAD_GENERALFADEXPR_HPP
11 #define SACADO_ELRCACHEFAD_GENERALFADEXPR_HPP
17 namespace ELRCacheFad {
26 template <
typename T,
typename Storage>
38 static const int num_args = 1;
41 static const bool is_linear =
true;
72 Expr(
const int sz,
const int i,
const T &
x) :
136 #endif // SACADO_ELRCACHEFAD_GENERALFADEXPR_HPP
SACADO_INLINE_FUNCTION Expr(const int sz, const T &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz and value x.
SACADO_INLINE_FUNCTION ~Expr()
Destructor.
#define SACADO_ENABLE_VALUE_CTOR_DECL
SACADO_INLINE_FUNCTION bool isLinear() const
Return whether expression is linear.
SACADO_INLINE_FUNCTION Expr(const Expr< S > &x, SACADO_ENABLE_EXPR_CTOR_DECL)
Copy constructor from any Expression object.
SACADO_INLINE_FUNCTION Expr()
Default constructor.
RemoveConst< T >::type value_type
Typename of values.
#define SACADO_ENABLE_EXPR_CTOR_DECL
SACADO_INLINE_FUNCTION Expr(const int sz, const int i, const T &x)
Constructor with size sz, index i, and value x.
SACADO_INLINE_FUNCTION Expr(const Expr &x)
Copy constructor.
SACADO_INLINE_FUNCTION bool isActive() const
Return whether argument is active.
Meta-function for determining concrete base expression.
SACADO_INLINE_FUNCTION const value_type * getDx(int j) const
Get dx array.
GeneralFad< T, Storage >::scalar_type scalar_type
Wrapper for a generic expression template.
SACADO_INLINE_FUNCTION T getTangent(int i) const
Return tangent component i of argument Arg.
DerivInit
Enum use to signal whether the derivative array should be initialized in AD object constructors...
SACADO_INLINE_FUNCTION void getTangents(int i, value_type dots[]) const
Return tangent component i of arguments.
ScalarType< value_type >::type scalar_type
Typename of scalar's (which may be different from T)
expr expr expr fastAccessDx(i)) FAD_UNARYOP_MACRO(exp
Forward-mode AD class templated on the storage for the derivative array.
BaseExpr< GeneralFad< T, Storage > >::type base_expr_type
Typename of base-expressions.
Initialize the derivative array.
GeneralFad< T, Storage >::value_type value_type
#define SACADO_INLINE_FUNCTION
SACADO_INLINE_FUNCTION Expr(const S &x, SACADO_ENABLE_VALUE_CTOR_DECL)
Constructor with supplied value x.
SACADO_INLINE_FUNCTION Expr(const Storage &s)
Constructor with supplied storage s.
SACADO_INLINE_FUNCTION void computePartials(const T &bar, value_type partials[]) const
Return partials w.r.t. arguments.