30 #ifndef SACADO_CACHEFAD_GENERALFADEXPR_HPP
31 #define SACADO_CACHEFAD_GENERALFADEXPR_HPP
45 template <
typename T,
typename Storage>
88 Expr(
const int sz,
const int i,
const T & x) :
102 template <
typename S>
119 #endif // SACADO_CACHEFAD_GENERALFADEXPR_HPP
KOKKOS_INLINE_FUNCTION Expr(const int sz, const int i, const T &x)
Constructor with size sz, index i, and value x.
KOKKOS_INLINE_FUNCTION Expr(const int sz, const T &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz and value x.
Forward-mode AD class templated on the storage for the derivative array.
KOKKOS_INLINE_FUNCTION Expr(const Storage &s)
Constructor with supplied storage s.
#define SACADO_ENABLE_VALUE_CTOR_DECL
RemoveConst< T >::type value_type
Typename of values.
#define SACADO_ENABLE_EXPR_CTOR_DECL
Meta-function for determining concrete base expression.
#define KOKKOS_INLINE_FUNCTION
KOKKOS_INLINE_FUNCTION Expr(const Expr &x)
Copy constructor.
KOKKOS_INLINE_FUNCTION Expr()
Default constructor.
KOKKOS_INLINE_FUNCTION Expr(const Expr< S > &x, SACADO_ENABLE_EXPR_CTOR_DECL)
Copy constructor from any Expression object.
ScalarType< value_type >::type scalar_type
Typename of scalar's (which may be different from T)
KOKKOS_INLINE_FUNCTION Expr(const S &x, SACADO_ENABLE_VALUE_CTOR_DECL)
Constructor with supplied value x.
KOKKOS_INLINE_FUNCTION ~Expr()
Destructor.
GeneralFad< T, Storage >::value_type value_type
Typename of values.
BaseExpr< GeneralFad< T, Storage > >::type base_expr_type
Typename of base-expressions.
GeneralFad< T, Storage >::scalar_type scalar_type
Typename of scalar's (which may be different from value_type)
DerivInit
Enum use to signal whether the derivative array should be initialized in AD object constructors...
Initialize the derivative array.
Wrapper for a generic expression template.