|
|
void * | var |
| |
|
struct ADvari_head * | next |
| |
|
int | gcgen |
| |
|
int | opno |
| |
The documentation for this struct was generated from the following file:
void print(std::ostream &os, bool print_values=false) const
Print the family.
Definition: Sacado_ParameterFamilyBaseImp.hpp:183
~CacheTaylorImplementation()
Destructor.
Definition: Sacado_Tay_CacheTaylor.hpp:92
const KOKKOS_INLINE_FUNCTION T & val() const
Returns value.
Definition: Sacado_Fad_Exp_VectorDynamicStorage.hpp:243
const U & fastAccessDx(int i) const
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_VectorDynamicStorage.hpp:258
static void copy(const T *src, T *dest, int sz)
Copy array from src to dest of length sz.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:159
CacheTaylorImplementation()
Default constructor.
Definition: Sacado_Tay_CacheTaylor.hpp:70
T & val()
Returns value.
Definition: Sacado_Tay_CacheTaylor.hpp:115
Base traits definition mapping evaluation types to value types.
Definition: Sacado_ScalarParameterEntry.hpp:58
LogicalSparse()
Default constructor.
Definition: Sacado_LFad_LogicalSparse.hpp:633
Definition: Sacado_tradvec.hpp:108
KOKKOS_INLINE_FUNCTION void expand(int sz)
Expand derivative array to size sz.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:160
static const int num_args
Number of arguments.
Definition: Sacado_ELRCacheFad_Expression.hpp:126
ExprType::value_type value_type
Typename of values.
Definition: Sacado_Fad_SLFad_tmpl.hpp:68
Definition: Sacado_CacheFad_Ops.hpp:136
CacheTaylor< T > base_expr_type
Typename of base-expressions.
Definition: Sacado_Tay_CacheTaylor.hpp:200
LogicalSparse(const Expr< S > &x, SACADO_ENABLE_EXPR_CTOR_DECL)
Copy constructor from any Expression object.
Definition: Sacado_LFad_LogicalSparse.hpp:666
bool updateValue() const
Return whether this Fad object has an updated value.
Definition: Sacado_CacheFad_SFad.hpp:225
ScalarType< T >::type scalar_type
Typename of scalar's (which may be different from ValueT)
Definition: Sacado_Tay_CacheTaylor.hpp:236
bool hasFastAccess() const
Returns true if derivative array is not empty.
Definition: Sacado_ELRCacheFad_SFad.hpp:299
Definition: Sacado_Fad_Ops.hpp:249
void resizeAndZero(int sz)
Resize the derivative array to sz.
Definition: Sacado_Fad_MemPoolStorage.hpp:274
bool operator!=(const TemplateIterator &t) const
Not equal operator.
Definition: Sacado_TemplateIterator.hpp:67
Definition: Sacado_Tay_Taylor.hpp:245
Definition: Sacado_mpl_apply.hpp:59
T * val_
Value.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:214
static void copy(const T *src, T *dest, int sz)
Copy array from src to dest of length sz.
Definition: Sacado_Fad_MemPoolStorage.hpp:111
int availableSize() const
Returns number of derivative components that can be stored without reallocation.
Definition: Sacado_ELRFad_SFad.hpp:293
KOKKOS_INLINE_FUNCTION GeneralFad(const int sz, const int i, const value_type &x)
Constructor with size sz, index i, and value x.
Definition: Sacado_Fad_Exp_GeneralFad.hpp:117
DstType::value_type value_type
Typename of values.
Definition: Sacado_Fad_Exp_ExprAssign.hpp:67
Definition: Sacado_ELRFad_Ops.hpp:281
KOKKOS_INLINE_FUNCTION void zero()
Zero out derivative array.
Definition: Sacado_Fad_Exp_StaticStorage.hpp:173
StaticFixedStorage()=default
Default constructor.
Definition: Sacado_mpl_type_wrap.hpp:51
DVFad(const Expr< S > &x, typename mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, void * >::type=0)
Copy constructor from any Expression object.
Definition: Sacado_Fad_DVFad.hpp:151
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, GeneralFad & >::type operator/=(const S &v)
Division-assignment operator with constant right-hand-side.
Definition: Sacado_ELRFad_GeneralFad.hpp:393
Definition: Sacado_Fad_Exp_Ops.hpp:963
Definition: Sacado_rad.hpp:492
static MemPool * defaultPool_
Default memory pool.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:356
const_iterator end() const
Iterator pointing at end of vector.
Definition: Sacado_ParameterVectorBase.hpp:118
Definition: Sacado_LFad_LogicalSparseOps.hpp:119
Taylor< T > operator+() const
Unary-plus operator.
Definition: Sacado_Tay_TaylorImp.hpp:236
Chunk * chunks
Pointer to memory chunks.
Definition: Sacado_Fad_MemPool.hpp:99
OrdinalType size() const
Vector size.
Definition: Sacado_Fad_Vector.hpp:137
bool updateValue() const
Return whether value should be updated.
Definition: Sacado_ELRFad_Expression.hpp:138
Determine whether a given type is an expression.
Definition: Sacado_ELRFad_Expression.hpp:98
int degree() const
Returns degree of polynomial.
Definition: Sacado_Tay_Taylor.hpp:175
Definition: Sacado_rad2.hpp:442
MemPoolStorage & operator=(const MemPoolStorage &x)
Assignment.
Definition: Sacado_Fad_MemPoolStorage.hpp:230
LogicalSparse< ValT, LogT > base_expr_type
Typename of base-expressions.
Definition: Sacado_LFad_LogicalSparse.hpp:555
KOKKOS_INLINE_FUNCTION SFad(const SFad &x)
Copy constructor.
Definition: Sacado_Fad_SFad_tmpl.hpp:118
const T & val() const
Returns value.
Definition: Sacado_Fad_ViewStorage.hpp:162
const KOKKOS_INLINE_FUNCTION T & val() const
Returns value.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:170
DMFad(const S &x, typename Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, void * >::type=0)
Constructor with supplied value x convertible to ValueT.
Definition: Sacado_Fad_DMFad.hpp:109
const T & val() const
Return the current value.
Definition: Sacado_ScalarFlopCounter.hpp:252
void resize(int sz)
Resize derivative array to length sz.
Definition: Sacado_CacheFad_SFad.hpp:200
const T * coeff() const
Returns Taylor coefficient array.
Definition: Sacado_Tay_Taylor.hpp:181
KOKKOS_INLINE_FUNCTION int length() const
Returns array length.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:130
ExprT::scalar_type scalar_type
Typename of scalar's (which may be different from value_type)
Definition: Sacado_Tay_CacheTaylorExpr.hpp:151
Definition: Sacado_Fad_BLAS.hpp:45
Sacado::ValueType< FadType >::type ValueType
Typename of values.
Definition: Sacado_Fad_Vector.hpp:59
Definition: Sacado_mpl_quote.hpp:76
const T & fastAccessDx(int i) const
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_ViewStorage.hpp:186
Definition: Sacado_rad2.hpp:303
bool operator==(const TemplateIterator &t) const
Equal operator.
Definition: Sacado_TemplateIterator.hpp:62
Definition: Sacado_ELRFad_Ops.hpp:825
unsigned int size() const
Return number of parameters in vector.
Definition: Sacado_ParameterVectorBase.hpp:100
const ConstT & constant_
The constant.
Definition: Sacado_ELRFad_Expression.hpp:170
Turn ViewFad into a meta-function class usable with mpl::apply.
Definition: Sacado_Fad_ViewFad_tmpl.hpp:83
int size() const
Return size of the derivative array of the operation.
Definition: Sacado_ELRCacheFad_Expression.hpp:134
ExprT expr_
Expression.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:84
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, DMFad & >::type operator/=(const S &x)
Division-assignment operator with constant right-hand-side.
Definition: Sacado_Fad_DMFad.hpp:195
TaylorData()
Default constructor.
Definition: Sacado_Tay_TaylorImp.hpp:44
Definition: Sacado_rad2.hpp:143
Definition: Sacado_LFad_LogicalSparseOps.hpp:137
const KOKKOS_INLINE_FUNCTION T & fastAccessDx(int i) const
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_Exp_StaticFixedStorage.hpp:194
void SCAL(const OrdinalType n, const FadType &alpha, FadType *x, const OrdinalType incx) const
Scale the std::vector x by the constant alpha.
Definition: Sacado_Fad_BLASImp.hpp:620
Definition: Sacado_Tay_CacheTaylor.hpp:40
Definition: Sacado_mpl_next.hpp:39
Taylor< T > & operator+=(const T &x)
Addition-assignment operator with constant right-hand-side.
Definition: Sacado_Tay_TaylorImp.hpp:259
Definition: Sacado_trad.hpp:211
Definition: Sacado_ELRFad_Ops.hpp:900
static T * get(int sz)
Get memory for new array of length sz.
Definition: Sacado_DynamicArrayTraits.hpp:263
Definition: Sacado_trad2.hpp:151
ScalarType< T >::type scalar_type
Typename of scalar's (which may be different from ValueT)
Definition: Sacado_Tay_CacheTaylor.hpp:67
RemoveConst< T >::type value_type
Typename of values.
Definition: Sacado_ScalarFlopCounter.hpp:204
Definition: Sacado_mpl_begin.hpp:42
GeneralFad(const S &x, typename Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, void * >::type=0)
Constructor with supplied value x.
Definition: Sacado_Fad_GeneralFad.hpp:110
Taylor< T > & operator/=(const T &x)
Division-assignment operator with constant right-hand-side.
Definition: Sacado_Tay_TaylorImp.hpp:296
Fad specializations for Teuchos::BLAS wrappers.
Definition: Sacado_Fad_BLAS.hpp:184
unsigned int num_fad
Number of Fad objects per chunk.
Definition: Sacado_Fad_MemPoolManager.hpp:69
Definition: Sacado_ELRCacheFad_Ops.hpp:166
MemPoolStorage(const int sz, const T &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz.
Definition: Sacado_Fad_MemPoolStorage.hpp:209
Definition: Sacado_CacheFad_SLFadTraits.hpp:39
Turn ADvar into a meta-function class usable with mpl::apply.
Definition: Sacado_trad2.hpp:737
DMFad(const Expr< S > &x, typename mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, void * >::type=0)
Copy constructor from any Expression object.
Definition: Sacado_Fad_DMFad.hpp:134
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, DVFad & >::type operator+=(const S &x)
Addition-assignment operator with constant right-hand-side.
Definition: Sacado_Fad_DVFad.hpp:183
Derivative array storage class using static, fixed memory allocation.
Definition: Sacado_Fad_Exp_StaticFixedStorage.hpp:49
Expr(int d, const T &x)
Constructor with degree d and value x.
Definition: Sacado_Tay_CacheTaylor.hpp:215
Sacado::ConstTemplateIterator< BaseT >::reference operator*() const
Dereference operator.
Definition: Sacado_TemplateIterator.hpp:141
Expr & operator=(const Expr &x)
Assignment with Expr right-hand-side.
Definition: Sacado_ELRFad_SFad.hpp:367
Constant expression template.
Definition: Sacado_CacheFad_Expression.hpp:112
Turn MemPoolStorage into a meta-function class usable with mpl::apply.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:187
KOKKOS_INLINE_FUNCTION DynamicStorage & operator=(const DynamicStorage &x)
Assignment.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:104
Definition: Sacado_mpl_apply_wrap.hpp:42
Definition: Sacado_CacheFad_Ops.hpp:463
int size() const
Returns number of derivative components.
Definition: Sacado_Fad_DynamicStorage.hpp:122
void resizeAndZero(int sz)
Resize the derivative array to sz.
Definition: Sacado_Fad_DynamicStorage.hpp:149
void ROT(const OrdinalType n, FadType *dx, const OrdinalType incx, FadType *dy, const OrdinalType incy, MagnitudeType *c, FadType *s) const
Applies a Givens plane rotation.
Definition: Sacado_Fad_BLAS.hpp:218
const KOKKOS_INLINE_FUNCTION T & fastAccessDx(int i) const
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:194
SimpleFad(const S &x, typename Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, void * >::type=0)
Constructor with supplied value x convertible to ValueT.
Definition: Sacado_Fad_SimpleFad.hpp:92
Definition: Sacado_LFad_LogicalSparseOps.hpp:164
Definition: Sacado_Fad_SFad.hpp:100
const KOKKOS_INLINE_FUNCTION T * dx() const
Returns derivative array.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:178
bool isPassive() const
Returns true if derivative array is empty.
Definition: Sacado_CacheFad_GeneralFad.hpp:217
Turn DynamicStorage into a meta-function class usable with mpl::apply.
Definition: Sacado_Fad_Exp_VectorDynamicStorage.hpp:55
int size() const
Return size of the derivative array of the operation.
Definition: Sacado_ELRFad_Expression.hpp:134
Definition: Sacado_Fad_Exp_Expression.hpp:115
Expr()
Default constructor.
Definition: Sacado_ELRFad_GeneralFadExpr.hpp:67
Fad specializations for Teuchos::LAPACK wrappers.
Definition: Sacado_Fad_LAPACK.hpp:93
Definition: Sacado_mpl_enable_if.hpp:46
Expr()
Default constructor.
Definition: Sacado_ELRFad_SFad.hpp:106
DynamicStorage & operator=(const DynamicStorage &x)
Assignment.
Definition: Sacado_Fad_DynamicStorage.hpp:100
Definition: Sacado_LFad_LogicalSparseOps.hpp:467
std::string getTypeName() const
Returns a string representation of type EntryType.
Definition: Sacado_ParameterFamilyBaseImp.hpp:201
value_type fastAccessCoeff(unsigned int i) const
Return degree i term of expression.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:311
Expr< GeneralFad< Storage > > ExprType
Expression type.
Definition: Sacado_Fad_Exp_GeneralFad.hpp:62
SFad< value_type, Num > base_expr_type
Typename of base-expressions.
Definition: Sacado_ELRFad_SFad.hpp:91
KOKKOS_INLINE_FUNCTION U dx(int i) const
Returns derivative component i with bounds checking.
Definition: Sacado_Fad_Exp_VectorDynamicStorage.hpp:255
virtual double getRealValue() const =0
Get real parameter value.
Definition: Sacado_Tay_CacheTaylorOps.hpp:1848
const T & fastAccessDx(int i) const
Returns derivative component i without bounds checking.
Definition: Sacado_CacheFad_SFad.hpp:302
Definition: Sacado_ELRFad_DFadTraits.hpp:57
const T * dx() const
Returns derivative array.
Definition: Sacado_Fad_ViewStorage.hpp:170
void setRealValue(double value)
Set real parameter value.
Definition: Sacado_ScalarParameterFamily.hpp:73
Expr(const Expr &x)
Copy constructor.
Definition: Sacado_ELRCacheFad_GeneralFadExpr.hpp:102
GeneralFad & operator=(const GeneralFad &x)
Assignment with GeneralFad right-hand-side.
Definition: Sacado_Fad_GeneralFad.hpp:255
Definition: Sacado_mpl_if.hpp:45
DVFad & operator=(const DVFad &x)
Assignment operator with DVFad right-hand-side.
Definition: Sacado_Fad_DVFad.hpp:167
Expr(const Expr< S > &x, SACADO_ENABLE_EXPR_CTOR_DECL)
Copy constructor from any Expression object.
Definition: Sacado_LFad_LogicalSparse.hpp:591
KOKKOS_INLINE_FUNCTION T & val()
Returns value.
Definition: Sacado_Fad_Exp_StaticStorage.hpp:181
ExprType::scalar_type scalar_type
Typename of scalar's (which may be different from value_type)
Definition: Sacado_Fad_DMFad.hpp:81
Expr(const Expr< S > &x, typename mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, void * >::type=0)
Copy constructor from any Expression object.
Definition: Sacado_CacheFad_GeneralFadExpr.hpp:104
Definition: Sacado_rad.hpp:122
int sz_
Derivative array size.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:239
constexpr KOKKOS_INLINE_FUNCTION int size() const
Returns number of derivative components.
Definition: Sacado_Fad_Exp_StaticFixedStorage.hpp:128
Definition: Sacado_mpl_quote.hpp:69
const T * dx() const
Returns derivative array.
Definition: Sacado_Fad_SFad.hpp:319
Definition: Sacado_mpl_find.hpp:52
iterator begin()
Iterator pointing at beginning of vector.
Definition: Sacado_ParameterVectorBase.hpp:109
ScalarType< value_type >::type scalar_type
Typename of scalar's (which may be different from ConstT)
Definition: Sacado_CacheFad_Expression.hpp:120
Expr & operator=(const Expr &x)
Assignment with Expr right-hand-side.
Definition: Sacado_ELRCacheFad_SFad.hpp:369
Definition: Sacado_ParameterFamilyBase.hpp:47
Definition: Sacado_Tay_CacheTaylorOps.hpp:1702
Definition: Sacado_rad.hpp:83
Base template specification for ScalarType.
Definition: Sacado_Traits.hpp:303
static void copy(const T *src, T *dest, int sz)
Copy array from src to dest of length sz.
Definition: Sacado_StaticArrayTraits.hpp:47
Vector(OrdinalType vec_size, OrdinalType deriv_sz, VectorDerivOrientation orient=Row)
Constructor.
Definition: Sacado_Fad_Vector.hpp:62
const T & fastAccessDx(int i) const
Returns derivative component i without bounds checking.
Definition: Sacado_ELRCacheFad_SFad.hpp:323
KOKKOS_INLINE_FUNCTION int size() const
Returns number of derivative components.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:126
~LogicalSparse()
Destructor.
Definition: Sacado_LFad_LogicalSparse.hpp:672
const KOKKOS_INLINE_FUNCTION U & fastAccessDx(int i) const
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_Exp_VectorDynamicStorage.hpp:263
Expr()
Default constructor.
Definition: Sacado_ELRCacheFad_SFad.hpp:106
T & fastAccessDx(int i)
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_ViewStorage.hpp:180
Definition: Sacado_Fad_Ops.hpp:180
Turn SimpleFad into a meta-function class usable with mpl::apply.
Definition: Sacado_Fad_SimpleFad.hpp:71
void setIsConstant(bool is_const)
Set whether variable is constant.
Definition: Sacado_ELRFad_GeneralFad.hpp:258
ExprType::value_type value_type
Typename of values.
Definition: Sacado_LFad_LogicalSparse.hpp:613
int size() const
Returns number of derivative components.
Definition: Sacado_Fad_VectorDynamicStorage.hpp:140
T coeff(int i) const
Returns degree i term with bounds checking.
Definition: Sacado_Tay_Taylor.hpp:187
MemPool * myPool_
Memory pool.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:361
KOKKOS_INLINE_FUNCTION DFad(const int sz, const ValueT &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz and value x.
Definition: Sacado_Fad_DFad_tmpl.hpp:108
Definition: Sacado_Fad_SLFad_tmpl.hpp:41
bool updateValue() const
Return whether this Fad object has an updated value.
Definition: Sacado_Fad_GeneralFad.hpp:188
static void zero(T *dest, int sz)
Zero out array dest of length sz.
Definition: Sacado_StaticArrayTraits.hpp:81
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, DVFad & >::type operator-=(const S &x)
Subtraction-assignment operator with constant right-hand-side.
Definition: Sacado_Fad_DVFad.hpp:191
void setUpdateValue(bool update_val)
Set whether this Fad object should update values.
Definition: Sacado_ELRFad_SFad.hpp:240
CacheTaylor< T > & operator-=(const T &x)
Subtraction-assignment operator with constant right-hand-side.
Definition: Sacado_Tay_CacheTaylorImp.hpp:117
KOKKOS_INLINE_FUNCTION StaticStorage(const int sz, const T &x, const DerivInit zero_out)
Constructor with size sz.
Definition: Sacado_Fad_Exp_StaticStorage.hpp:84
Base template specification for ValueType.
Definition: Sacado_Traits.hpp:320
void setUpdateValue(bool update_val)
Set whether this Fad object should update values.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:212
Teuchos::RCP< BaseT > rcp() const
Returns a reference counted pointer object.
Definition: Sacado_TemplateIterator.hpp:97
Definition: Sacado_rad.hpp:91
void resize(int d, bool keep_coeffs)
Resize polynomial to degree d.
Definition: Sacado_Tay_CacheTaylor.hpp:99
void Fad_TRSM(Teuchos::ESide side, Teuchos::EUplo uplo, Teuchos::ETransp transa, Teuchos::EDiag diag, const OrdinalType m, const OrdinalType n, const alpha_type &alpha, const OrdinalType n_alpha_dot, const alpha_type *alpha_dot, const A_type *A, const OrdinalType lda, const OrdinalType n_A_dot, const A_type *A_dot, const OrdinalType lda_dot, ValueType *B, const OrdinalType ldb, const OrdinalType n_B_dot, ValueType *B_dot, const OrdinalType ldb_dot, const OrdinalType n_dot) const
Implementation of TRMM.
Definition: Sacado_Fad_BLASImp.hpp:1836
KOKKOS_INLINE_FUNCTION void resize(int sz)
Resize the derivative array to sz.
Definition: Sacado_Fad_Exp_StaticFixedStorage.hpp:136
int size() const
Returns number of derivative components.
Definition: Sacado_Fad_ViewStorage.hpp:124
const T & fastAccessDx(int i) const
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_MemPoolStorage.hpp:327
KOKKOS_INLINE_FUNCTION MemPoolStorage()
Default constructor.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:199
Definition: Sacado_ELRFad_Ops.hpp:206
static void strided_zero(T *dest, int stride, int sz)
Zero out array dest of length sz.
Definition: Sacado_DynamicArrayTraits.hpp:803
GeneralFad(const int sz, const T &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz and value x.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:104
const T & fastAccessDx(int i) const
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_SFad.hpp:331
Definition: Sacado_Tay_CacheTaylorOps.hpp:738
const KOKKOS_INLINE_FUNCTION T * dx() const
Returns derivative array.
Definition: Sacado_Fad_Exp_StaticStorage.hpp:185
Meta-function for determining nesting with an expression.
Definition: Sacado_ELRFad_Expression.hpp:86
Definition: Sacado_ELRCacheFad_Ops.hpp:615
Base template specification for string names of types.
Definition: Sacado_Traits.hpp:376
Definition: Sacado_mpl_if.hpp:39
VectorDynamicStorage< ValueT > StorageType
Base classes.
Definition: Sacado_Fad_DVFad.hpp:73
ScalarType< ValueT >::type ScalarT
Typename of scalar's (which may be different from ValueT)
Definition: Sacado_Fad_ViewFad_tmpl.hpp:76
GeneralFad()
Default constructor.
Definition: Sacado_CacheFad_GeneralFad.hpp:92
const T & operator*() const
Dereference.
Definition: Sacado_Handle.hpp:92
const mpl::integral_nonzero_constant< int, static_stride > stride_
Derivative array stride.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:211
Expr(const int sz, const T &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz and value x.
Definition: Sacado_ELRCacheFad_GeneralFadExpr.hpp:82
void val(const T &a)
Set the current value.
Definition: Sacado_ScalarFlopCounter.hpp:255
GeneralFad(const Storage &s)
Constructor with supplied storage s.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:121
void setRealValue(const std::string &name, double value)
Set real parameter to value value.
Definition: Sacado_ScalarParameterLibrary.hpp:134
Definition: Sacado_mpl_bind.hpp:69
Definition: Sacado_rad.hpp:510
static void copy(const T *src, T *dest, int sz)
Copy array from src to dest of length sz.
Definition: Sacado_Fad_MemPoolStorage.hpp:176
Specialization of Sacado::ParameterVectorBase for scalar parameters.
Definition: Sacado_ScalarParameterVector.hpp:42
Definition: Sacado_LFad_LogicalSparseOps.hpp:167
Definition: Sacado_Fad_Ops.hpp:156
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, DVFad & >::type operator*=(const S &x)
Multiplication-assignment operator with constant right-hand-side.
Definition: Sacado_Fad_DVFad.hpp:199
void resize(int sz)
Resize the derivative array to sz.
Definition: Sacado_Fad_DynamicStorage.hpp:133
Definition: Sacado_ELRFad_Ops.hpp:227
Definition: Sacado_mpl_type_wrap.hpp:44
ParameterVectorBase(const ParameterVectorBase &source)
Copy constructor.
Definition: Sacado_ParameterVectorBase.hpp:83
Memory pool.
Definition: Sacado_Fad_MemPool.hpp:40
Definition: Sacado_ELRFad_Ops.hpp:220
KOKKOS_INLINE_FUNCTION void resizeAndZero(int sz)
Resize the derivative array to sz.
Definition: Sacado_Fad_Exp_StaticStorage.hpp:144
const T & dx(int i) const
Returns derivative component i with bounds checking.
Definition: Sacado_Fad_SFad.hpp:323
Definition: Sacado_LFad_LogicalSparseOps.hpp:116
Definition: Sacado_Fad_Exp_MathFunctions.hpp:73
Definition: Sacado_Fad_Ops.hpp:640
static unsigned int flopGranularity
The number of flops to accumulate as an integer before converting to a double.
Definition: Sacado_ScalarFlopCounter.hpp:125
GeneralFad & operator=(const GeneralFad &x)
Assignment with Expr right-hand-side.
Definition: Sacado_CacheFad_GeneralFad.hpp:245
Definition: Sacado_trad2.hpp:224
KOKKOS_INLINE_FUNCTION ViewStorage(T *arg_dx, T *arg_val, const int arg_size=0, const int arg_stride=0)
Constructor.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:102
Definition: Sacado_mpl_enable_if.hpp:58
bool hasFastAccess(int d) const
Returns true if polynomial has degree >= d.
Definition: Sacado_Tay_CacheTaylor.hpp:128
virtual ~BLAS()
Destructor.
Definition: Sacado_Fad_BLASImp.hpp:613
OrdinalType deriv_stride() const
Derivative array stride.
Definition: Sacado_Fad_Vector.hpp:143
KOKKOS_INLINE_FUNCTION T & fastAccessDx(int i)
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_Exp_StaticFixedStorage.hpp:190
T value_type
Typename of values.
Definition: Sacado_Tay_Taylor.hpp:62
bool isParameterForType(const std::string &name) const
Determine if parameter of name name has type type.
Definition: Sacado_ParameterLibraryBaseImp.hpp:59
Definition: Sacado_ELRFad_SLFadTraits.hpp:39
value_type val() const
Return value of operation.
Definition: Sacado_CacheFad_Expression.hpp:143
KOKKOS_INLINE_FUNCTION DFad(const DFad &x)
Copy constructor.
Definition: Sacado_Fad_DFad_tmpl.hpp:123
Definition: Sacado_trad2.hpp:145
bool hasFastAccess(unsigned int d) const
Return if expression has fast access.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:68
MemPoolStorage(const S &x, SACADO_ENABLE_VALUE_CTOR_DECL)
Default constructor.
Definition: Sacado_Fad_MemPoolStorage.hpp:202
void diff(const int ith, const int n)
Set GeneralFad object as the ith independent variable.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:201
DMFad(const DMFad &x)
Copy constructor.
Definition: Sacado_Fad_DMFad.hpp:129
Definition: Sacado_ELRFad_Ops.hpp:259
ViewStorage(const ViewStorage &x)
Copy constructor.
Definition: Sacado_Fad_ViewStorage.hpp:100
Taylor()
Default constructor.
Definition: Sacado_Tay_TaylorImp.hpp:120
const unsigned int n
Number of elements per chunk.
Definition: Sacado_Fad_MemPool.hpp:93
DVFad(const int sz, const ValueT &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz and value x.
Definition: Sacado_Fad_DVFad.hpp:116
Represents a memory chunk.
Definition: Sacado_Fad_MemPool.hpp:83
void getTangents(int i, value_type dots[]) const
Return tangent component i of arguments.
Definition: Sacado_ELRFad_SFad.hpp:331
KOKKOS_INLINE_FUNCTION void expand(int sz)
Expand derivative array to size sz.
Definition: Sacado_Fad_Exp_VectorDynamicStorage.hpp:198
double flopCounts[NUM_OPS]
Individual flop counts.
Definition: Sacado_ScalarFlopCounter.hpp:128
Turn CacheTaylor into a meta-function class usable with mpl::apply.
Definition: Sacado_Tay_CacheTaylor.hpp:240
T & val()
Returns value.
Definition: Sacado_Fad_ViewStorage.hpp:166
bool hasFastAccess() const
Returns true if derivative array is not empty.
Definition: Sacado_ELRFad_SFad.hpp:297
Expr(const int sz, const T &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz and value x.
Definition: Sacado_CacheFad_SFad.hpp:117
ExprType::scalar_type scalar_type
Typename of scalar's (which may be different from value_type)
Definition: Sacado_LFad_LogicalSparse.hpp:616
std::string getName() const
Get the name of the family.
Definition: Sacado_ParameterFamilyBaseImp.hpp:53
T * coeff_
Taylor polynomial coefficients.
Definition: Sacado_Tay_Taylor.hpp:248
EvalMap::iterator iterator
Iterator for EvalMap.
Definition: Sacado_ParameterFamilyBase.hpp:109
void Fad_GER(const OrdinalType m, const OrdinalType n, const alpha_type &alpha, const OrdinalType n_alpha_dot, const alpha_type *alpha_dot, const x_type *x, const OrdinalType incx, const OrdinalType n_x_dot, const x_type *x_dot, const OrdinalType incx_dot, const y_type *y, const OrdinalType incy, const OrdinalType n_y_dot, const y_type *y_dot, const OrdinalType incy_dot, ValueType *A, const OrdinalType lda, const OrdinalType n_A_dot, ValueType *A_dot, const OrdinalType lda_dot, const OrdinalType n_dot) const
Implementation of GER.
Definition: Sacado_Fad_BLASImp.hpp:1445
KOKKOS_INLINE_FUNCTION ViewStorage(T *v, const int arg_size=0, const int arg_stride=0)
Constructor.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:97
static T * get_and_fill(const T *src, int sz)
Get memory for new array of length sz and fill with entries from src.
Definition: Sacado_DynamicArrayTraits.hpp:292
Abstract interface for all entries in Sacado::ScalarParameterFamily.
Definition: Sacado_ScalarParameterEntry.hpp:64
MagnitudeType NRM2(const OrdinalType n, const FadType *x, const OrdinalType incx) const
Compute the 2-norm of the std::vector x.
Definition: Sacado_Fad_BLASImp.hpp:794
Definition: Sacado_tradvec.hpp:129
bool hasFastAccess(unsigned int d) const
Return if operation has fast access.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:241
Expr(const T &x)
Constructor with supplied value x.
Definition: Sacado_Tay_CacheTaylor.hpp:209
Implementation class for computing the logical sparsity of a derivative using forward-mode AD.
Definition: Sacado_LFad_LogicalSparse.hpp:85
Definition: Sacado_Fad_Ops.hpp:195
Definition: Sacado_ELRFad_Ops.hpp:266
Definition: Sacado_mpl_none.hpp:39
void expand(int sz)
Expand derivative array to size sz.
Definition: Sacado_ELRFad_SFad.hpp:232
bool isLinear() const
Return whether expression is linear.
Definition: Sacado_ELRCacheFad_GeneralFadExpr.hpp:137
Definition: Sacado_tradvec.hpp:134
Definition: Sacado_ELRFad_Expression.hpp:174
KOKKOS_INLINE_FUNCTION void resize(int sz)
Resize the derivative array to sz.
Definition: Sacado_Fad_Exp_StaticStorage.hpp:130
virtual ~ScalarParameterVector()
Destructor.
Definition: Sacado_ScalarParameterVector.hpp:55
Abstract class that provides access to a parameter value in a code for the parameter library....
Definition: Sacado_ParameterAccessor.hpp:50
int availableSize() const
Returns number of derivative components that can be stored without reallocation.
Definition: Sacado_ELRFad_GeneralFad.hpp:246
Definition: Sacado_ELRCacheFad_ViewFadTraits.hpp:57
void setRealValueForAllTypes(double value)
Set paramter value using a real number.
Definition: Sacado_ScalarParameterFamily.hpp:64
ScalarType< value_type >::type scalar_type
Typename of scalar's (which may be different from T)
Definition: Sacado_Fad_Exp_GeneralFad.hpp:71
Definition: Sacado_Fad_Ops.hpp:666
KOKKOS_INLINE_FUNCTION StaticFixedStorage(const int sz, const T &x, const DerivInit zero_out)
Constructor with size sz.
Definition: Sacado_Fad_Exp_StaticFixedStorage.hpp:84
Definition: Sacado_Tay_CacheTaylorOps.hpp:281
void diff(const int ith, const int n)
Set Fad object as the ith independent variable.
Definition: Sacado_Fad_SFad.hpp:213
void resizeAndZero(int sz)
Resize the derivative array to sz.
Definition: Sacado_Fad_VectorDynamicStorage.hpp:171
void resizeAndZero(int sz)
Resize the derivative array to sz.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:284
Definition: Sacado_mpl_size.hpp:39
Definition: Sacado_CacheFad_Ops.hpp:427
T & val()
Returns value.
Definition: Sacado_CacheFad_SFad.hpp:256
virtual ~AbstractScalarParameterEntry()
Destructor.
Definition: Sacado_ScalarParameterEntry.hpp:71
Derivative array storage class using static memory allocation.
Definition: Sacado_Fad_Exp_StaticStorage.hpp:49
ConstExpr< typename ExprT2::value_type > ExprT1
Typename of constant expression.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:280
CacheTaylorImplementation(const CacheTaylorImplementation &x)
Copy constructor.
Definition: Sacado_Tay_CacheTaylor.hpp:88
Definition: Sacado_CacheFad_Ops.hpp:1432
KOKKOS_INLINE_FUNCTION SFad(const int sz, const int i, const ValueT &x)
Constructor with size sz, index i, and value x.
Definition: Sacado_Fad_SFad_tmpl.hpp:113
KOKKOS_INLINE_FUNCTION void diff(const int ith, const int n)
Set GeneralFad object as the ith independent variable.
Definition: Sacado_Fad_Exp_GeneralFad.hpp:153
Definition: Sacado_ELRFad_Ops.hpp:325
void setValue(const std::string &name, const typename EvalTypeTraits::template apply< EvalType >::type &value)
Set parameter to value value.
Definition: Sacado_ScalarParameterLibrary.hpp:149
U dx(int i) const
Returns derivative component i with bounds checking.
Definition: Sacado_Fad_VectorDynamicStorage.hpp:250
KOKKOS_INLINE_FUNCTION DFad(const int sz, const int i, const ValueT &x)
Constructor with size sz, index i, and value x.
Definition: Sacado_Fad_DFad_tmpl.hpp:118
Definition: Sacado_trad.hpp:216
Definition: Sacado_mpl_enable_if.hpp:50
Definition: Sacado_CacheFad_Ops.hpp:1185
Base template specification for Value.
Definition: Sacado_Traits.hpp:354
UnaryExpr(const ExprT &expr)
Constructor.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:157
value_type coeff(unsigned int i) const
Return degree i term of expression.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:121
ParameterLibraryBase()
Default constructor.
Definition: Sacado_ParameterLibraryBaseImp.hpp:34
LogicalSparseImp(const LogicalSparseImp &x)
Copy constructor.
Definition: Sacado_LFad_LogicalSparse.hpp:136
Replace static derivative length.
Definition: Sacado_Fad_Exp_VectorDynamicStorage.hpp:61
T & val()
Returns value.
Definition: Sacado_Fad_DynamicStorage.hpp:193
static T * get(int sz, MemPool *pool)
Get memory for new array of length sz.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:52
KOKKOS_INLINE_FUNCTION void resize(int sz)
Resize the derivative array to sz.
Definition: Sacado_Fad_Exp_VectorDynamicStorage.hpp:156
Expr(const Expr &x)
Copy constructor.
Definition: Sacado_ELRFad_SFad.hpp:156
Definition: Sacado_Fad_Exp_MathFunctions.hpp:69
virtual void setValue(const ScalarT &value)=0
Set parameter this object represents to value.
virtual ~Fad_LAPACK()
Destructor.
Definition: Sacado_Fad_LAPACKImp.hpp:170
void Fad_GEMM(Teuchos::ETransp transa, Teuchos::ETransp transb, const OrdinalType m, const OrdinalType n, const OrdinalType k, const alpha_type &alpha, const OrdinalType n_alpha_dot, const alpha_type *alpha_dot, const A_type *A, const OrdinalType lda, const OrdinalType n_A_dot, const A_type *A_dot, const OrdinalType lda_dot, const B_type *B, const OrdinalType ldb, const OrdinalType n_B_dot, const B_type *B_dot, const OrdinalType ldb_dot, const beta_type &beta, const OrdinalType n_beta_dot, const beta_type *beta_dot, ValueType *C, const OrdinalType ldc, const OrdinalType n_C_dot, ValueType *C_dot, const OrdinalType ldc_dot, const OrdinalType n_dot) const
Implementation of GEMM.
Definition: Sacado_Fad_BLASImp.hpp:1500
bool addParameterFamily(const std::string &name, bool supports_ad, bool supports_analytic)
Create a new parameter family.
Definition: Sacado_ParameterLibraryBaseImp.hpp:75
Definition: Sacado_mpl_placeholders.hpp:84
Definition: Sacado_CacheFad_Ops.hpp:475
virtual const ScalarT & getValue() const =0
Get parameter value this object represents.
const mpl::integral_nonzero_constant< int, static_length > sz_
Derivative array size.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:208
Definition: Sacado_LFad_LogicalSparseOps.hpp:455
std::map< unsigned int, MemPool * > MapType
Typename of memory pool map.
Definition: Sacado_Fad_MemPoolManager.hpp:72
static KOKKOS_INLINE_FUNCTION void assign_divide_equal(DstType &dst, const SrcType &x)
Implementation of dst /= x.
Definition: Sacado_Fad_Exp_ExprAssign.hpp:323
Definition: Sacado_trad.hpp:213
T & val()
Returns value.
Definition: Sacado_Fad_MemPoolStorage.hpp:315
ScalarType< ValueT >::type ScalarT
Typename of scalar's (which may be different from ValueT)
Definition: Sacado_Fad_DVFad.hpp:84
GeneralFad< T, Storage >::value_type value_type
Typename of values.
Definition: Sacado_Fad_GeneralFadExpr.hpp:51
Definition: Sacado_LFad_LogicalSparseOps.hpp:170
RemoveConst< T >::type value_type
Typename of values.
Definition: Sacado_CacheFad_GeneralFad.hpp:80
ExprT2::value_type value_type
Typename of the second argument value.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:283
const ConstT & constant_
The constant.
Definition: Sacado_ELRCacheFad_Expression.hpp:174
KOKKOS_INLINE_FUNCTION SFad(const int sz, const ValueT &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz and value x.
Definition: Sacado_Fad_SFad_tmpl.hpp:103
Turn Taylor into a meta-function class usable with mpl::apply.
Definition: Sacado_Tay_Taylor.hpp:57
const T * dx() const
Returns derivative array.
Definition: Sacado_Fad_MemPoolStorage.hpp:318
void getTangents(int i, value_type dots[]) const
Return tangent component i of arguments.
Definition: Sacado_ELRCacheFad_SFad.hpp:333
Definition: Sacado_mpl_is_same.hpp:38
~MemPoolStorage()
Destructor.
Definition: Sacado_Fad_MemPoolStorage.hpp:224
virtual double getRealValue() const
Get real parameter value.
Definition: Sacado_ScalarParameterEntry.hpp:113
ExprT1::scalar_type scalar_type_1
Typename of the expression scalars.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:212
Base template specification for marking constants.
Definition: Sacado_Traits.hpp:370
Definition: Sacado_mpl_bind.hpp:61
KOKKOS_INLINE_FUNCTION StaticFixedStorage(const StaticFixedStorage &x)
Copy constructor.
Definition: Sacado_Fad_Exp_StaticFixedStorage.hpp:101
KOKKOS_INLINE_FUNCTION SLFad(const S &x, SACADO_ENABLE_VALUE_CTOR_DECL)
Constructor with supplied value x convertible to ValueT.
Definition: Sacado_Fad_SLFad_tmpl.hpp:110
ExprT2 expr2_
Right argument.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:383
bool operator!=(const ConstTemplateIterator &t) const
Not equal operator.
Definition: Sacado_TemplateIterator.hpp:135
Handle & operator=(const Handle &h)
Assignment operator.
Definition: Sacado_Handle.hpp:78
Definition: Sacado_Fad_Ops.hpp:202
Static array allocation class that works for any type.
Definition: Sacado_StaticArrayTraits.hpp:43
Definition: Sacado_mpl_apply_wrap.hpp:73
Definition: Sacado_mpl_bind.hpp:139
Specialization of Sacado::ParameterLibraryBase for scalar parameters.
Definition: Sacado_ScalarParameterLibrary.hpp:46
Get view type for any Fad type.
Definition: Sacado_Fad_Exp_ViewFad.hpp:104
T * dx_
Derivative array.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:217
void allocateCache(unsigned int d) const
Allocate coefficient cache.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:354
void fillVector(const Teuchos::Array< std::string > &names, const Teuchos::Array< BaseValueType > &values, ParameterVectorBase< FamilyType, BaseValueType > &pv)
Fill a vector with the supplied parameter names and values.
Definition: Sacado_ParameterLibraryBaseImp.hpp:157
OrdinalType deriv_stride() const
Derivative array stride.
Definition: Sacado_Fad_Vector.hpp:89
void resizeCoeffs(int len)
Resize coefficient array to new size.
Definition: Sacado_Tay_TaylorImp.hpp:490
A generic handle class.
Definition: Sacado_Handle.hpp:41
Teuchos::RCP< typename Sacado::mpl::apply< ObjectT, ScalarT >::type > getAsObject()
Get RCP to object corrensponding to ScalarT as ObjectT<ScalarT>
Definition: Sacado_TemplateManagerImp.hpp:88
Definition: Sacado_Tay_CacheTaylorOps.hpp:156
FlopCounts()
Default constructor.
Definition: Sacado_ScalarFlopCounter.cpp:93
void computePartials(const T &bar, value_type partials[]) const
Return partials w.r.t. arguments.
Definition: Sacado_ELRCacheFad_SFad.hpp:327
bool isPassive() const
Returns true if derivative array is empty.
Definition: Sacado_ELRCacheFad_SFad.hpp:303
LogT logical_type
Logical type (i.e., type for derivative array components (e.g., bool)
Definition: Sacado_LFad_LogicalSparse.hpp:99
Definition: Sacado_CacheFad_Ops.hpp:479
static void destroy_and_release(T *m, int sz, MemPool *pool)
Destroy array elements and release memory.
Definition: Sacado_Fad_MemPoolStorage.hpp:187
DVFad(const DVFad &x)
Copy constructor.
Definition: Sacado_Fad_DVFad.hpp:146
DVFad()
Default constructor.
Definition: Sacado_Fad_DVFad.hpp:101
Definition: Sacado_Fad_Exp_MathFunctions.hpp:72
ExprT::value_type value_type
Typename of values.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:50
bool isActive() const
Return whether argument is active.
Definition: Sacado_ELRFad_SFad.hpp:338
void resizeAndZero(int sz)
Resize the derivative array to sz.
Definition: Sacado_Fad_ViewStorage.hpp:148
Definition: Sacado_Fad_Ops.hpp:255
Definition: Sacado_mpl_quote.hpp:81
static T * get_and_fill(const T *src, int sz, MemPool *pool)
Get memory for new array of length sz and fill with entries from src.
Definition: Sacado_Fad_MemPoolStorage.hpp:98
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, SimpleFad & >::type operator-=(const S &x)
Subtraction-assignment operator with constant right-hand-side.
Definition: Sacado_Fad_SimpleFad.hpp:161
ScalarType< value_type >::type scalar_type
Typename of scalar's (which may be different from ConstT)
Definition: Sacado_Fad_Expression.hpp:134
void increment(EFlopType ft)
Increment an individual flop counter.
Definition: Sacado_ScalarFlopCounter.cpp:126
Expr(const S &x, SACADO_ENABLE_VALUE_CTOR_DECL)
Constructor with supplied value x.
Definition: Sacado_LFad_LogicalSparse.hpp:566
Taylor< T > & operator-=(const T &x)
Subtraction-assignment operator with constant right-hand-side.
Definition: Sacado_Tay_TaylorImp.hpp:271
void filterParameters(ParameterVectorBase &ad, ParameterVectorBase &analytic, ParameterVectorBase &other, std::vector< int > &index_ad, std::vector< int > &index_analytic, std::vector< int > &index_other)
Filter vector into types.
Definition: Sacado_ParameterVectorBase.hpp:122
RemoveConst< T >::type value_type
Typename of values.
Definition: Sacado_Fad_SFad.hpp:115
Definition: Sacado_trad.hpp:623
Definition: Sacado_Fad_Ops.hpp:208
Definition: Kokkos_ViewFactory.hpp:46
Definition: Sacado_trad2.hpp:146
KOKKOS_INLINE_FUNCTION ViewStorage & operator=(const ViewStorage &x)
Assignment.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:117
Definition: Sacado_mpl_bind.hpp:116
void diff(const int ith, const int n)
Set Fad object as the ith independent variable.
Definition: Sacado_ELRCacheFad_SFad.hpp:205
void resize(int sz)
Resize derivative array to length sz.
Definition: Sacado_Fad_SFad.hpp:229
KOKKOS_INLINE_FUNCTION T dx(int i) const
Returns derivative component i with bounds checking.
Definition: Sacado_Fad_Exp_StaticFixedStorage.hpp:186
DVFad(const int sz, ValueT *x, ValueT *dx, bool zero_out=false)
Constructor with supplied memory.
Definition: Sacado_Fad_DVFad.hpp:133
Definition: Sacado_ELRFad_Ops.hpp:299
void cache() const
Cache values.
Definition: Sacado_ELRFad_GeneralFad.hpp:220
ValueType * workspace
Workspace for holding contiguous values/derivatives.
Definition: Sacado_Fad_BLAS.hpp:173
Dynamic array allocation class that works for any type.
Definition: Sacado_DynamicArrayTraits.hpp:259
T & val()
Returns value.
Definition: Sacado_Tay_Taylor.hpp:165
Forward-mode AD class templated on the storage for the derivative array.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:71
ConstExpr(const ConstT &constant)
Constructor.
Definition: Sacado_Fad_Expression.hpp:141
ParameterAccessor< EvalType, EvalTypeTraits > * access
Pointer to source function.
Definition: Sacado_ParameterRegistration.hpp:104
RemoveConst< T >::type value_type
Typename of values.
Definition: Sacado_ELRFad_SFad.hpp:85
Definition: Sacado_trad2.hpp:128
Derivative array storage class using static memory allocation.
Definition: Sacado_Fad_StaticStorage.hpp:63
void cache() const
Cache values.
Definition: Sacado_CacheFad_SFad.hpp:229
DynamicStorage(const DynamicStorage &x)
Copy constructor.
Definition: Sacado_Fad_DynamicStorage.hpp:86
Definition: Sacado_mpl_apply.hpp:56
bool updateValue() const
Return whether value should be updated.
Definition: Sacado_ELRCacheFad_Expression.hpp:138
KOKKOS_INLINE_FUNCTION DFad(const S &x, SACADO_ENABLE_VALUE_CTOR_DECL)
Constructor with supplied value x convertible to ValueT.
Definition: Sacado_Fad_DFad_tmpl.hpp:100
Definition: Sacado_Fad_Exp_Ops.hpp:146
Determine whether a given type is an expression.
Definition: Sacado_ELRCacheFad_Expression.hpp:98
value_type getTangent(int i) const
Return tangent component i of argument Arg.
Definition: Sacado_ELRFad_Expression.hpp:156
KOKKOS_INLINE_FUNCTION T & fastAccessDx(int i)
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:188
static void zero(T *dest, int sz)
Zero out array dest of length sz.
Definition: Sacado_Fad_MemPoolStorage.hpp:181
Definition: Sacado_CacheFad_Ops.hpp:205
SimpleFad(const SimpleFad &x, const ValueT &v, const ValueT &partial)
Tangent copy constructor.
Definition: Sacado_Fad_SimpleFad.hpp:116
T & fastAccessDx(int i)
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_MemPoolStorage.hpp:324
Wrapper for a generic expression template.
Definition: Sacado_ELRCacheFad_Expression.hpp:77
Definition: Sacado_trad2.hpp:152
Definition: Sacado_rad.hpp:237
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, GeneralFad & >::type operator-=(const S &v)
Subtraction-assignment operator with constant right-hand-side.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:378
Definition: Sacado_mpl_has_type.hpp:41
Definition: RAD_Const_Warn.c:36
Replace static derivative length.
Definition: Sacado_Fad_DFad_tmpl.hpp:77
Definition: Sacado_rad2.hpp:514
Definition: Sacado_mpl_quote.hpp:95
Binary expression template.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:201
GeneralFad(const S &x, typename Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, void * >::type=0)
Constructor with supplied value x.
Definition: Sacado_ELRFad_GeneralFad.hpp:98
KOKKOS_INLINE_FUNCTION void setIsConstant(bool is_const)
Set whether variable is constant.
Definition: Sacado_Fad_Exp_GeneralFad.hpp:197
Taylor< T > & operator*=(const T &x)
Multiplication-assignment operator with constant right-hand-side.
Definition: Sacado_Tay_TaylorImp.hpp:283
ExprT1 expr1_
Left argument.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:256
Derivative array storage class using dynamic memory allocation.
Definition: Sacado_Fad_Exp_VectorDynamicStorage.hpp:45
Fad::DynamicStorage< ValueT > StorageType
Base classes.
Definition: Sacado_Fad_DFad_tmpl.hpp:56
void GESV(const OrdinalType n, const OrdinalType nrhs, FadType *A, const OrdinalType lda, OrdinalType *IPIV, FadType *B, const OrdinalType ldb, OrdinalType *info) const
Computes the solution to a real system of linear equations.
Definition: Sacado_Fad_LAPACKImp.hpp:177
bool hasFastAccess() const
Returns true if derivative array is not empty.
Definition: Sacado_ELRFad_GeneralFad.hpp:250
~GeneralFad()
Destructor.
Definition: Sacado_Fad_GeneralFad.hpp:164
Definition: Sacado_Fad_Exp_MathFunctions.hpp:63
const T * dx() const
Returns derivative array.
Definition: Sacado_CacheFad_SFad.hpp:290
void diff(const int ith, const int n)
Set GeneralFad object as the ith independent variable.
Definition: Sacado_CacheFad_GeneralFad.hpp:165
Expr< SFadExprTag< ValueT, Num > > ExprType
Base classes.
Definition: Sacado_Fad_SFad_tmpl.hpp:53
Definition: Sacado_CacheFad_Ops.hpp:68
Vector(const Vector &fv)
Copy constructor.
Definition: Sacado_Fad_Vector.hpp:70
KOKKOS_INLINE_FUNCTION StaticStorage()
Default constructor.
Definition: Sacado_Fad_Exp_StaticStorage.hpp:71
Definition: Sacado_trad.hpp:196
const_iterator end() const
Iterator pointing at end of library.
Definition: Sacado_ParameterLibraryBase.hpp:121
const T & val() const
Returns value.
Definition: Sacado_CacheFad_SFad.hpp:252
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, Expr & >::type operator=(const S &v)
Assignment operator with constant right-hand-side.
Definition: Sacado_ELRFad_SFad.hpp:359
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:1015
Class storing flop counts and summary flop counts.
Definition: Sacado_ScalarFlopCounter.hpp:46
virtual ~ParameterVectorBase()
Destructor.
Definition: Sacado_ParameterVectorBase.hpp:87
Definition: Sacado_mpl_vector_size_spec.hpp:38
const T * dx() const
Returns derivative array.
Definition: Sacado_ELRFad_SFad.hpp:309
Definition: Sacado_trad.hpp:220
Definition: Sacado_mpl_quote.hpp:89
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, GeneralFad & >::type operator-=(const S &v)
Subtraction-assignment operator with constant right-hand-side.
Definition: Sacado_CacheFad_GeneralFad.hpp:301
void expand(int sz)
Expand derivative array to size sz.
Definition: Sacado_Fad_DynamicStorage.hpp:167
void cache() const
Cache values.
Definition: Sacado_CacheFad_GeneralFad.hpp:183
CacheTaylor(const CacheTaylor &x)
Copy constructor.
Definition: Sacado_Tay_CacheTaylor.hpp:274
Expr()
Default constructor.
Definition: Sacado_Fad_GeneralFadExpr.hpp:61
GeneralFad(const GeneralFad &x)
Copy constructor.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:125
Definition: Sacado_mpl_size.hpp:42
void setIsConstant(bool is_const)
Set whether variable is constant.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:258
ExprT1::value_type value_type_1
Typename of the expression values.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:206
BinaryExpr(const ExprT1 &expr1, const ExprT2 &expr2)
Constructor.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:288
~SimpleFad()
Destructor.
Definition: Sacado_Fad_SimpleFad.hpp:125
void setUpdateValue(bool update_val)
Set whether this Fad object should update values.
Definition: Sacado_ELRCacheFad_SFad.hpp:242
Derivative array storage class using dynamic memory allocation.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:45
ScalarType< value_type >::type scalar_type
Typename of scalar's (which may be different from ConstT)
Definition: Sacado_Tay_CacheTaylorExpr.hpp:101
Definition: Sacado_ELRFad_ViewFadTraits.hpp:57
TaylorData & operator=(const TaylorData &x)
Assignment operator.
Definition: Sacado_Tay_TaylorImp.hpp:102
FadType & operator[](OrdinalType i)
Array access.
Definition: Sacado_Fad_Vector.hpp:95
mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, bool >::type isEqualTo(const Expr< S > &x) const
Returns whether two Fad objects have the same values.
Definition: Sacado_CacheFad_SFad.hpp:234
Definition: Sacado_tradvec.hpp:132
Turn StaticFixedStorage into a meta-function class usable with mpl::apply.
Definition: Sacado_Fad_Exp_StaticFixedStorage.hpp:59
KOKKOS_INLINE_FUNCTION DynamicStorage(const int sz, const T &x, const DerivInit zero_out)
Constructor with size sz.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:80
Definition: Sacado_mpl_bind.hpp:75
Definition: Sacado_CacheFad_SFad.hpp:69
RemoveConst< T >::type value_type
Typename of values.
Definition: Sacado_ELRCacheFad_SFad.hpp:85
Definition: Sacado_CacheFad_Ops.hpp:504
ScalarFlopCounter()
Construct to uninitialized.
Definition: Sacado_ScalarFlopCounter.hpp:245
void Fad_SYMM(Teuchos::ESide side, Teuchos::EUplo uplo, const OrdinalType m, const OrdinalType n, const alpha_type &alpha, const OrdinalType n_alpha_dot, const alpha_type *alpha_dot, const A_type *A, const OrdinalType lda, const OrdinalType n_A_dot, const A_type *A_dot, const OrdinalType lda_dot, const B_type *B, const OrdinalType ldb, const OrdinalType n_B_dot, const B_type *B_dot, const OrdinalType ldb_dot, const beta_type &beta, const OrdinalType n_beta_dot, const beta_type *beta_dot, ValueType *C, const OrdinalType ldc, const OrdinalType n_C_dot, ValueType *C_dot, const OrdinalType ldc_dot, const OrdinalType n_dot) const
Implementation of SYMM.
Definition: Sacado_Fad_BLASImp.hpp:1619
void SYMM(Teuchos::ESide side, Teuchos::EUplo uplo, const OrdinalType m, const OrdinalType n, const alpha_type &alpha, const A_type *A, const OrdinalType lda, const B_type *B, const OrdinalType ldb, const beta_type &beta, FadType *C, const OrdinalType ldc) const
Performs the matrix-matrix operation: C <- alpha*A*B+beta*C or C <- alpha*B*A+beta*C where A is an m ...
Definition: Sacado_Fad_BLASImp.hpp:1101
ExprT1::base_expr_type base_expr_type_1
Typename of the base expression.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:218
Op< ExprT1, ExprT2 > op_
Operator.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:262
static KOKKOS_INLINE_FUNCTION void assign_minus_equal(DstType &dst, const SrcType &x)
Implementation of dst -= x.
Definition: Sacado_Fad_Exp_ExprAssign.hpp:137
virtual ~ParameterFamilyBase()
Destructor.
Definition: Sacado_ParameterFamilyBaseImp.hpp:46
static KOKKOS_INLINE_FUNCTION void assign_minus_equal(DstType &dst, const SrcType &x)
Implementation of dst -= x.
Definition: Sacado_Fad_Exp_ExprAssign.hpp:299
U dx(int i) const
Returns derivative component i with bounds checking.
Definition: Sacado_Fad_DynamicStorage.hpp:217
Definition: Sacado_mpl_placeholders.hpp:64
Definition: Sacado_ELRFad_Ops.hpp:185
Expr(const Expr< S > &x, typename mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, void * >::type=0)
Copy constructor from any Expression object.
Definition: Sacado_ELRCacheFad_SFad.hpp:165
LogicalSparseImp()
Default constructor.
Definition: Sacado_LFad_LogicalSparse.hpp:107
Fad::ViewStorage< ValueT, length, stride, BaseFadT > StorageType
Base classes.
Definition: Sacado_Fad_ViewFad_tmpl.hpp:65
Definition: Sacado_MathFunctions.hpp:425
Definition: Sacado_mpl_range_c.hpp:63
EvalMap::const_iterator const_iterator
Const iterator for EvalMap.
Definition: Sacado_ParameterFamilyBase.hpp:106
Definition: Sacado_ELRCacheFad_Ops.hpp:639
int length() const
Returns array length.
Definition: Sacado_Fad_ViewStorage.hpp:128
VectorDynamicStorage(const int sz, T *x, U *dx_p, const int stride, bool zero_out)
Constructor with supplied memory.
Definition: Sacado_Fad_VectorDynamicStorage.hpp:87
Taylor polynomial class.
Definition: Sacado_MathFunctions.hpp:115
StaticStorage(const S &x, SACADO_ENABLE_VALUE_CTOR_DECL)
Default constructor.
Definition: Sacado_Fad_StaticStorage.hpp:72
const_iterator begin() const
Iterator pointing at beginning of library.
Definition: Sacado_ParameterLibraryBase.hpp:115
void setIsConstant(bool is_const)
Set whether variable is constant.
Definition: Sacado_Fad_SFad.hpp:315
Expr()
Default constructor.
Definition: Sacado_Tay_CacheTaylor.hpp:203
FamilyMap::iterator iterator
Iterator typename.
Definition: Sacado_ParameterLibraryBase.hpp:60
Sacado::TemplateIterator< BaseT >::pointer operator->() const
-> operator
Definition: Sacado_TemplateIterator.hpp:79
KOKKOS_INLINE_FUNCTION T & val()
Returns value.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:197
ExprT::base_expr_type base_expr_type
Typename of base-expressions.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:56
OrdinalType stride_
Derivative array stride.
Definition: Sacado_Fad_Vector.hpp:175
Definition: Sacado_ELRFad_Ops.hpp:273
Definition: Sacado_ELRFad_GeneralFad.hpp:1003
GeneralFad(const S &x, typename Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, void * >::type=0)
Constructor with supplied value x.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:96
Container for parameter entries.
Definition: Sacado_ParameterVectorBase.hpp:52
Definition: Sacado_Tay_CacheTaylorOps.hpp:97
Definition: Sacado_mpl_bind.hpp:145
CacheTaylor()
Default constructor.
Definition: Sacado_Tay_CacheTaylor.hpp:250
ConstT base_expr_type
Typename of base-expressions.
Definition: Sacado_ELRFad_Expression.hpp:123
std::valarray< T > coeff_
Taylor polynomial coefficients.
Definition: Sacado_Tay_CacheTaylor.hpp:185
GeneralFad()
Default constructor.
Definition: Sacado_Fad_GeneralFad.hpp:102
void setMemory(int sz, T *x, U *dx_p, int stride)
Set value/derivative array memory.
Definition: Sacado_Fad_VectorDynamicStorage.hpp:219
Definition: Sacado_tradvec.hpp:106
~DVFad()
Destructor.
Definition: Sacado_Fad_DVFad.hpp:157
void zero()
Zero out the derivative array.
Definition: Sacado_ELRFad_SFad.hpp:236
LogicalSparse(const LogicalSparse &x)
Copy constructor.
Definition: Sacado_LFad_LogicalSparse.hpp:661
U & fastAccessDx(int i)
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_VectorDynamicStorage.hpp:254
Turn ScalarFlopCounter into a meta-function class usable with mpl::apply.
Definition: Sacado_ScalarFlopCounter.hpp:211
unsigned int numChunks() const
Return number of allocated chunks.
Definition: Sacado_Fad_MemPool.hpp:62
ExprType::scalar_type scalar_type
Typename of scalar's (which may be different from value_type)
Definition: Sacado_Fad_SLFad_tmpl.hpp:71
void zero()
Zero out derivative array.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:317
Op< ExprT1, ExprT2 > op_
Operator.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:324
~MemPool()
Destructor.
Definition: Sacado_Fad_MemPoolImp.hpp:51
Turn DynamicStorage into a meta-function class usable with mpl::apply.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:55
const T * dx() const
Returns derivative array.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:328
Replace static derivative length (interpreted as a fixed length)
Definition: Sacado_Fad_Exp_StaticStorage.hpp:65
Definition: Sacado_mpl_is_convertible.hpp:64
Definition: Sacado_Tay_CacheTaylorOps.hpp:491
ParameterRegistration(const std::string &name_, ParameterAccessor< EvalType, EvalTypeTraits > *access_, const Teuchos::RCP< ParamLib > ¶mLib)
Constructor: Registers the parameter with the Parameter Library.
Definition: Sacado_ParameterRegistration.hpp:70
void cache() const
Cache values.
Definition: Sacado_ELRFad_SFad.hpp:248
static KOKKOS_INLINE_FUNCTION void assign_plus_equal(DstType &dst, const SrcType &x)
Implementation of dst += x.
Definition: Sacado_Fad_Exp_ExprAssign.hpp:288
ConstT value_type
Typename of argument values.
Definition: Sacado_Fad_Expression.hpp:131
GeneralFad()
Default constructor.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:88
VectorDynamicStorage(const int sz, const T &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz.
Definition: Sacado_Fad_VectorDynamicStorage.hpp:77
std::vector< FadType > vec_
Vector of Fad's.
Definition: Sacado_Fad_Vector.hpp:178
unsigned int degree() const
Return degree of polynomial.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:65
void getTangents(int i, value_type dots[]) const
Return tangent component i of arguments.
Definition: Sacado_ELRCacheFad_GeneralFadExpr.hpp:123
Determine whether a given type is an expression.
Definition: Sacado_Fad_Expression.hpp:112
static void strided_zero(T *dest, int stride, int sz)
Zero out array dest of length sz.
Definition: Sacado_DynamicArrayTraits.hpp:348
static void zero(T *dest, int sz)
Zero out array dest of length sz.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:100
Teuchos::LAPACK< OrdinalType, ValueType > lapack
LAPACK for values.
Definition: Sacado_Fad_LAPACK.hpp:129
static T * get_and_fill(int sz, MemPool *pool)
Get memory for new array of length sz and fill with zeros.
Definition: Sacado_Fad_MemPoolStorage.hpp:82
void setIsConstant(bool is_const)
Set whether variable is constant.
Definition: Sacado_CacheFad_SFad.hpp:286
ScalarFlopCounter(const S &v, typename Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, void * >::type=0)
Construct to scalar value.
Definition: Sacado_ScalarFlopCounter.hpp:249
const T * get() const
Return pointer to underlying data.
Definition: Sacado_Handle.hpp:57
RAD_NO_USING_STDCC.
Definition: Sacado_trad2.hpp:126
Meta-function for determining concrete base expression.
Definition: Sacado_CacheFad_Expression.hpp:69
A tag for specializing Expr for SFad expressions.
Definition: Sacado_ELRCacheFad_SFad.hpp:67
KOKKOS_INLINE_FUNCTION SACADO_EXP_ENABLE_EXPR_FUNC(bool) isEqualTo(const Expr< S > &xx) const
Returns whether two Fad objects have the same values.
Definition: Sacado_Fad_Exp_GeneralFad.hpp:164
Definition: Sacado_Fad_Exp_MathFunctions.hpp:65
~GeneralFad()
Destructor.
Definition: Sacado_ELRFad_GeneralFad.hpp:191
Definition: Sacado_CacheFad_DFadTraits.hpp:57
Definition: Sacado_ELRCacheFad_SLFadTraits.hpp:39
value_type coeff(unsigned int i) const
Return degree i term of expression.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:307
Definition: Sacado_rad.hpp:387
static void finalizeCounters()
Finalize total flop count after block of computations.
Definition: Sacado_ScalarFlopCounter.hpp:222
Definition: Sacado_Tay_CacheTaylorOps.hpp:1490
ScalarType< value_type >::type scalar_type
Typename of scalar's (which may be different from T)
Definition: Sacado_ELRFad_GeneralFad.hpp:81
virtual ScalarT & getValue(const std::string &n)=0
Definition: Sacado_rad2.hpp:316
Definition: Sacado_mpl_end.hpp:42
Definition: Sacado_Tay_CacheTaylorOps.hpp:843
Definition: Sacado_LFad_LogicalSparseOps.hpp:155
T * dx_
Derivative array.
Definition: Sacado_Fad_ViewStorage.hpp:202
T dx_[Num]
Derivative array.
Definition: Sacado_Fad_Exp_StaticFixedStorage.hpp:202
Expr< UnaryExpr< CacheTaylor< T >, UnaryPlusOp > > operator+() const
Unary-plus operator.
Definition: Sacado_Tay_CacheTaylor.hpp:317
Definition: Sacado_mpl_bind.hpp:55
Forward-mode AD class templated on the storage for the derivative array.
Definition: Sacado_Fad_Exp_GeneralFad.hpp:51
~VectorDynamicStorage()
Destructor.
Definition: Sacado_Fad_VectorDynamicStorage.hpp:105
void * alloc()
Allocate a new element.
Definition: Sacado_Fad_MemPoolImp.hpp:62
int length() const
Return length of array.
Definition: Sacado_Tay_Taylor.hpp:238
static T * get(int sz, MemPool *pool)
Get memory for new array of length sz.
Definition: Sacado_Fad_MemPoolStorage.hpp:69
Definition: Sacado_Traits.hpp:508
SimpleFad & operator=(const SimpleFad &x)
Assignment operator with SimpleFad right-hand-side.
Definition: Sacado_Fad_SimpleFad.hpp:145
Definition: Kokkos_LayoutNatural.hpp:61
const T & dx(int i) const
Returns derivative component i with bounds checking.
Definition: Sacado_ELRFad_SFad.hpp:313
ScalarType< ValueT >::type ScalarT
Typename of scalar's (which may be different from ValueT)
Definition: Sacado_Fad_SFad_tmpl.hpp:62
GeneralFad(const Expr< S > &x, typename mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, void * >::type=0)
Copy constructor from any Expression object.
Definition: Sacado_CacheFad_GeneralFad.hpp:135
Definition: Sacado_mpl_bind.hpp:93
ConstT value_type
Typename of argument values.
Definition: Sacado_ELRCacheFad_Expression.hpp:117
Definition: Sacado_mpl_range_c.hpp:47
KOKKOS_INLINE_FUNCTION DynamicStorage(const DynamicStorage &x)
Copy constructor.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:90
Definition: Sacado_Tay_CacheTaylorOps.hpp:1828
Turn DFad into a meta-function class usable with mpl::apply.
Definition: Sacado_Fad_DFad_tmpl.hpp:71
static void zero(T *dest, int sz)
Zero out array dest of length sz.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:164
const T & val() const
Returns value.
Definition: Sacado_ELRCacheFad_SFad.hpp:273
GeneralFad(const int sz, const T &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz and value x.
Definition: Sacado_Fad_GeneralFad.hpp:118
int len_
Length of allocated polynomial array.
Definition: Sacado_Tay_Taylor.hpp:254
Meta-function for determining nesting with an expression.
Definition: Sacado_LFad_LogicalSparse.hpp:56
Definition: Sacado_mpl_quote.hpp:99
bool supportsAD() const
Indicates whether parameter supports AD derivatives.
Definition: Sacado_ParameterFamilyBaseImp.hpp:61
Definition: Sacado_Fad_ViewFad_tmpl.hpp:45
Definition: Sacado_LFad_LogicalSparseOps.hpp:125
void getTangents(int i, value_type dots[]) const
Rturn tangent component i of arguments.
Definition: Sacado_ELRFad_Expression.hpp:151
GeneralFadType::scalar_type scalar_type
Typename of scalar's (which may be different from value_type)
Definition: Sacado_Fad_SimpleFad.hpp:64
Definition: Sacado_rad2.hpp:600
Turn LogicalSparse into a meta-function class usable with mpl::apply.
Definition: Sacado_LFad_LogicalSparse.hpp:620
Definition: Sacado_trad2.hpp:149
VectorDerivOrientation deriv_orientation() const
Derivative array orientation.
Definition: Sacado_Fad_Vector.hpp:92
Definition: Sacado_tradvec.hpp:131
const mpl::integral_nonzero_constant< int, static_stride > stride_
Derivative array stride.
Definition: Sacado_Fad_ViewStorage.hpp:196
KOKKOS_INLINE_FUNCTION ViewFad(const StorageType &s)
Constructor with supplied storage s.
Definition: Sacado_Fad_ViewFad_tmpl.hpp:100
bool hasFastAccess(unsigned int d) const
Return if operation has fast access.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:303
ScalarType< value_type >::type scalar_type
Typename of scalar's (which may be different from ConstT)
Definition: Sacado_ELRFad_Expression.hpp:120
U & fastAccessDx(int i)
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_DynamicStorage.hpp:221
VectorDerivOrientation orient_
Derivative array orientation.
Definition: Sacado_Fad_Vector.hpp:172
virtual void setValue(const ScalarT &value)
Set parameter values using ParameterAccessor.
Definition: Sacado_ParameterRegistration.hpp:92
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, GeneralFad & >::type operator/=(const S &v)
Division-assignment operator with constant right-hand-side.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:397
void makeOwnCopy()
Make handle have its own copy of rep.
Definition: Sacado_Handle.hpp:67
ScalarType< value_type >::type scalar_type
Typename of scalar's (which may be different from ValT)
Definition: Sacado_LFad_LogicalSparse.hpp:96
Expr()
Default constructor.
Definition: Sacado_ELRCacheFad_GeneralFadExpr.hpp:65
Constant expression template.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:93
ExprType::value_type value_type
Typename of values.
Definition: Sacado_Fad_DFad_tmpl.hpp:61
Link * head
Pointer to first free link.
Definition: Sacado_Fad_MemPool.hpp:102
mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, bool >::type isEqualTo(const Expr< S > &x) const
Returns whether two Fad objects have the same values.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:225
ScalarType< value_type >::type scalar_type
Typename of scalar's (which may be different from T)
Definition: Sacado_CacheFad_GeneralFad.hpp:83
ConstExpr(const ConstT &constant)
Constructor.
Definition: Sacado_ELRCacheFad_Expression.hpp:130
Unary expression template.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:143
KOKKOS_INLINE_FUNCTION VectorDynamicStorage()
Default constructor.
Definition: Sacado_Fad_Exp_VectorDynamicStorage.hpp:67
Definition: Kokkos_LayoutContiguous.hpp:59
GeneralFad(const Storage &s)
Constructor with supplied storage s.
Definition: Sacado_ELRFad_GeneralFad.hpp:123
void allocateCache(unsigned int d) const
Allocate coefficient cache.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:160
Definition: Sacado_trad2.hpp:150
KOKKOS_INLINE_FUNCTION void resizeAndZero(int sz)
Resize the derivative array to sz.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:156
Definition: Sacado_rad2.hpp:551
ScalarType< value_type >::type scalar_type
Typename of scalar's (which may be different from T)
Definition: Sacado_Fad_GeneralFad.hpp:93
virtual ~ScalarParameterLibrary()
Destructor.
Definition: Sacado_ScalarParameterLibrary.hpp:61
~Handle()
Destroy handle.
Definition: Sacado_Handle.hpp:51
RemoveConst< T >::type value_type
Typename of values.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:76
T & val()
Returns value.
Definition: Sacado_ELRCacheFad_SFad.hpp:277
Definition: Sacado_Fad_Ops.hpp:261
unsigned int degree() const
Return degree of polynomial.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:298
Wrapper for a generic expression template.
Definition: Sacado_CacheFad_Expression.hpp:77
Definition: Sacado_CacheFad_Ops.hpp:443
Definition: Sacado_rad2.hpp:86
bool updateValue() const
Return whether this Fad object has an updated value.
Definition: Sacado_CacheFad_GeneralFad.hpp:179
static void destroy_and_release(T *m, int sz, MemPool *pool)
Destroy array elements and release memory.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:170
Expr(const Expr &x)
Copy constructor.
Definition: Sacado_Tay_CacheTaylor.hpp:218
KOKKOS_INLINE_FUNCTION SFad(const Expr< S > &x, SACADO_ENABLE_EXPR_CTOR_DECL)
Copy constructor from any Expression object.
Definition: Sacado_Fad_SFad_tmpl.hpp:124
ViewStorage(T *v, const int arg_size=0, const int arg_stride=0)
Constructor.
Definition: Sacado_Fad_ViewStorage.hpp:89
Definition: Sacado_mpl_push_back.hpp:39
mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, Expr & >::type operator=(const Expr< S > &x)
Assignment operator with any expression right-hand-side.
Definition: Sacado_CacheFad_SFad.hpp:337
static MemPool * defaultPool_
Default memory pool.
Definition: Sacado_Fad_MemPoolStorage.hpp:346
Definition: Sacado_mpl_apply.hpp:50
Definition: Sacado_Fad_Ops.hpp:174
Definition: Sacado_mpl_is_convertible.hpp:57
double getRealValue() const
Get real parameter value.
Definition: Sacado_ScalarParameterFamily.hpp:89
Definition: Sacado_ELRCacheFad_Ops.hpp:595
Definition: Sacado_mpl_bind.hpp:44
int length() const
Returns array length.
Definition: Sacado_Fad_StaticStorage.hpp:122
KOKKOS_INLINE_FUNCTION ViewStorage(const T &x)
Constructor with value (needed to satisfy interface)
Definition: Sacado_Fad_Exp_ViewStorage.hpp:87
bool supportsAnalytic() const
Indicates whether parameter supports analytic derivatives.
Definition: Sacado_ParameterFamilyBaseImp.hpp:69
StaticStorage(const int sz, const T &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz.
Definition: Sacado_Fad_StaticStorage.hpp:80
MemPool(unsigned int elem_size, unsigned int n_elem, unsigned int pre_alloc=0)
Constructor. elem_size is the size of elements, n_elem is the number of elements per chunk....
Definition: Sacado_Fad_MemPoolImp.hpp:35
Definition: Sacado_CacheFad_Ops.hpp:455
virtual void print(std::ostream &os) const =0
Print entry.
Definition: Sacado_ELRCacheFad_Expression.hpp:178
Entry & operator[](int i)
Element access.
Definition: Sacado_ParameterVectorBase.hpp:103
Definition: Sacado_mpl_type_wrap.hpp:48
Expr()
Disallow default constructor.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:81
void TRSM(Teuchos::ESide side, Teuchos::EUplo uplo, Teuchos::ETransp transa, Teuchos::EDiag diag, const OrdinalType m, const OrdinalType n, const alpha_type &alpha, const A_type *A, const OrdinalType lda, FadType *B, const OrdinalType ldb) const
Solves the matrix equations: op(A)*X=alpha*B or X*op(A)=alpha*B where X and B are m by n matrices,...
Definition: Sacado_Fad_BLASImp.hpp:1234
Definition: Sacado_trad2.hpp:153
Expr(const Expr< S > &x, typename mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, void * >::type=0)
Copy constructor from any Expression object.
Definition: Sacado_ELRFad_GeneralFadExpr.hpp:110
T dx(int i) const
Returns derivative component i with bounds checking.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:331
ScalarType< ValueT >::type ScalarT
Typename of scalar's (which may be different from ValueT)
Definition: Sacado_Fad_DFad_tmpl.hpp:67
EntryVector::iterator iterator
Iterator typename.
Definition: Sacado_ParameterVectorBase.hpp:74
Definition: Sacado_mpl_disable_if.hpp:50
Expr(const Expr &x)
Copy constructor.
Definition: Sacado_LFad_LogicalSparse.hpp:586
T & fastAccessDx(int i)
Returns derivative component i without bounds checking.
Definition: Sacado_CacheFad_SFad.hpp:298
bool hasFastAccess() const
Returns true if derivative array is not empty.
Definition: Sacado_CacheFad_GeneralFad.hpp:213
iterator begin()
Iterator pointing at beginning of library.
Definition: Sacado_ParameterLibraryBase.hpp:112
Expr(const Storage &s)
Constructor with supplied storage s.
Definition: Sacado_CacheFad_GeneralFadExpr.hpp:93
Constant expression template.
Definition: Sacado_Fad_Expression.hpp:126
~Expr()
Destructor.
Definition: Sacado_ELRFad_GeneralFadExpr.hpp:115
VectorDynamicStorage & operator=(const VectorDynamicStorage &x)
Assignment.
Definition: Sacado_Fad_VectorDynamicStorage.hpp:114
void cache() const
Cache values.
Definition: Sacado_ELRCacheFad_SFad.hpp:250
void setUpdateValue(bool update_val)
Set whether this Fad object should update values.
Definition: Sacado_CacheFad_SFad.hpp:221
ScalarParameterVector()
Default constructor.
Definition: Sacado_ScalarParameterVector.hpp:48
KOKKOS_INLINE_FUNCTION ~VectorDynamicStorage()
Destructor.
Definition: Sacado_Fad_Exp_VectorDynamicStorage.hpp:110
mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, DMFad & >::type operator=(const Expr< S > &x)
Assignment operator with any expression right-hand-side.
Definition: Sacado_Fad_DMFad.hpp:157
CacheTaylor< T > diff(const CacheTaylor< T > &x, int n=1)
Compute Taylor series of n-th derivative of x.
Definition: Sacado_Tay_CacheTaylorOps.hpp:2009
const U & fastAccessDx(int i) const
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_DynamicStorage.hpp:225
void resize(int sz)
Resize derivative array to length sz.
Definition: Sacado_ELRCacheFad_SFad.hpp:221
Definition: Sacado_rad.hpp:250
int availableSize() const
Returns number of derivative components that can be stored without reallocation.
Definition: Sacado_Fad_GeneralFad.hpp:219
Wrapper for a generic expression template.
Definition: Sacado_LFad_ExpressionTraits.hpp:38
void resizeCoeffs(int dnew)
Resize coefficient array to new size.
Definition: Sacado_Tay_CacheTaylor.hpp:166
CacheTaylor< T > & operator+=(const T &x)
Addition-assignment operator with constant right-hand-side.
Definition: Sacado_Tay_CacheTaylorImp.hpp:108
void resize(int sz)
Resize the derivative array to sz.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:268
int len_
Derivative array length.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:242
T val_
Value.
Definition: Sacado_ELRCacheFad_SFad.hpp:601
static const char * summaryFlopCountsNames[NUM_SUMMARY_OPS]
Names for summary operation categories.
Definition: Sacado_ScalarFlopCounter.hpp:114
Teuchos::RCP< typename Sacado::mpl::apply< EntryType, EvalType >::type > getEntry(const std::string &name)
Return parameter entry.
Definition: Sacado_ParameterLibraryBaseImp.hpp:117
Turn DVFad into a meta-function class usable with mpl::apply.
Definition: Sacado_Fad_DVFad.hpp:88
T val_
Value.
Definition: Sacado_ELRFad_SFad.hpp:592
Sacado::ConstTemplateIterator< BaseT >::pointer operator->() const
-> operator
Definition: Sacado_TemplateIterator.hpp:147
Definition: Sacado_rad2.hpp:560
Definition: Sacado_trad2.hpp:159
Definition: Sacado_tradvec.hpp:133
MemPool * getMemoryPool(unsigned int dim)
Get memory pool for supplied dimension dim.
Definition: Sacado_Fad_MemPoolManagerImp.hpp:51
const T & fastAccessCoeff(int i) const
Returns degree i term without bounds checking.
Definition: Sacado_Tay_Taylor.hpp:194
Definition: Sacado_mpl_apply_wrap.hpp:49
static void setDefaultPool(MemPool *pool)
Set the default memory pool for new objects.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:253
Expr(const int sz, const ValT &x)
Constructor with size sz and value x.
Definition: Sacado_LFad_LogicalSparse.hpp:573
A class to store the active parameters in a code in an ordered fashion, along with their "base" value...
Definition: Sacado_ParameterVectorBase.hpp:47
Sacado::TemplateManager< TypeSeq, BaseT, ObjectT >::iterator end()
Return an iterator that points one past the last type object.
Definition: Sacado_TemplateManagerImp.hpp:123
void diff(const int ith, const int n)
Set GeneralFad object as the ith independent variable.
Definition: Sacado_ELRFad_GeneralFad.hpp:201
Teuchos::RCP< typename Sacado::mpl::apply< EntryType, EvalType >::type > getEntry()
Gets the entry corresponding to type EvalType.
Definition: Sacado_ParameterFamilyBaseImp.hpp:124
bool hasFastAccess(unsigned int d) const
Return if operation has fast access.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:116
GeneralFad(const Storage &s)
Constructor with supplied storage s.
Definition: Sacado_Fad_GeneralFad.hpp:135
GeneralFad< T, Storage >::value_type value_type
Typename of values.
Definition: Sacado_CacheFad_GeneralFadExpr.hpp:51
KOKKOS_INLINE_FUNCTION void resizeAndZero(int sz)
Resize the derivative array to sz.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:153
KOKKOS_INLINE_FUNCTION SLFad(const int sz, const ValueT &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz and value x.
Definition: Sacado_Fad_SLFad_tmpl.hpp:118
Definition: Sacado_mpl_vector_at_spec.hpp:37
Definition: Sacado_Fad_Exp_Ops.hpp:559
void zero()
Zero out the derivative array.
Definition: Sacado_CacheFad_SFad.hpp:217
ScalarType< value_type >::type scalar_type
Typename of scalar's (which may be different from T)
Definition: Sacado_CacheFad_SFad.hpp:87
Definition: Sacado_trad.hpp:219
KOKKOS_INLINE_FUNCTION T & fastAccessDx(int i)
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_Exp_StaticStorage.hpp:193
Forward-mode AD class using static memory allocation with long arrays and expression templates.
Definition: Sacado_Fad_SLFad_tmpl.hpp:57
static void destroy_and_release(T *m, int sz, MemPool *pool)
Destroy array elements and release memory.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:106
KOKKOS_INLINE_FUNCTION ~DynamicStorage()
Destructor.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:97
Definition: Sacado_Fad_Exp_MathFunctions.hpp:61
T val_
Value.
Definition: Sacado_Fad_SFad.hpp:503
void expand(int sz)
Expand derivative array to size sz.
Definition: Sacado_ELRCacheFad_SFad.hpp:234
ParameterVectorBase()
Default constructor.
Definition: Sacado_ParameterVectorBase.hpp:80
T & fastAccessDx(int i)
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:334
Base class for Sacado types to control overload resolution.
Definition: Sacado_Base.hpp:46
void resize(int sz)
Resize the derivative array to sz.
Definition: Sacado_Fad_ViewStorage.hpp:137
std::map< string, Teuchos::RCP< FamilyType > > FamilyMap
Map of all parameter families.
Definition: Sacado_ParameterLibraryBase.hpp:55
GeneralFad(const Expr< S > &x, typename mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, void * >::type=0)
Copy constructor from any Expression object.
Definition: Sacado_ELRFad_GeneralFad.hpp:133
Expr< UnaryExpr< CacheTaylor< T >, UnaryMinusOp > > operator-() const
Unary-minus operator.
Definition: Sacado_Tay_CacheTaylor.hpp:324
Definition: Sacado_rad2.hpp:102
DMFad(const int sz, const ValueT &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz and value x.
Definition: Sacado_Fad_DMFad.hpp:116
Definition: Sacado_LFad_LogicalSparseOps.hpp:134
Definition: Kokkos_LayoutContiguous.hpp:41
Definition: Sacado_trad2.hpp:156
CacheTaylor< T > & operator=(const T &v)
Assignment operator with constant right-hand-side.
Definition: Sacado_Tay_CacheTaylorImp.hpp:53
bool addEntry(const std::string &name, const Teuchos::RCP< typename Sacado::mpl::apply< EntryType, EvalType >::type > &entry, const bool allow_overwrite=false)
Add a new parameter using custom entry.
Definition: Sacado_ParameterLibraryBaseImp.hpp:95
Expr(const S &x, typename Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, void * >::type=0)
Constructor with supplied value x.
Definition: Sacado_ELRFad_GeneralFadExpr.hpp:76
Definition: Sacado_Fad_Exp_ViewFad.hpp:51
virtual void setValue(const std::string &n, const ScalarT &v)
Definition: Sacado_ParameterAccessor.hpp:66
Sacado::TemplateIterator< BaseT >::reference operator*() const
Dereference operator.
Definition: Sacado_TemplateIterator.hpp:73
friend ADvar & ADvar_operatoreq(ADvar *, const ADVari &)
Definition: Sacado_trad2.hpp:1543
BaseExpr< GeneralFad< T, Storage > >::type base_expr_type
Typename of base-expressions.
Definition: Sacado_CacheFad_GeneralFadExpr.hpp:57
ScalarType< ValueT >::type ScalarT
Typename of scalar's (which may be different from ValueT)
Definition: Sacado_Fad_DMFad.hpp:84
KOKKOS_INLINE_FUNCTION void zero()
Zero out derivative array.
Definition: Sacado_Fad_Exp_StaticFixedStorage.hpp:170
static const int num_args
Number of arguments.
Definition: Sacado_ELRFad_Expression.hpp:126
KOKKOS_INLINE_FUNCTION void expand(int sz)
Expand derivative array to size sz.
Definition: Sacado_Fad_Exp_StaticStorage.hpp:160
Definition: Sacado_Fad_Exp_MathFunctions.hpp:67
unsigned int degree() const
Return degree of polynomial.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:113
Meta-function for determining nesting with an expression.
Definition: Sacado_Fad_Exp_Expression.hpp:93
void computePartials(const T &bar, value_type partials[]) const
Return partials w.r.t. arguments.
Definition: Sacado_ELRFad_GeneralFadExpr.hpp:119
Derivative array storage class using dynamic memory allocation.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:177
ExprType::scalar_type scalar_type
Typename of scalar's (which may be different from value_type)
Definition: Sacado_Fad_SFad_tmpl.hpp:59
bool updateValue() const
Return whether this Fad object has an updated value.
Definition: Sacado_ELRCacheFad_SFad.hpp:246
Definition: Sacado_ELRFad_SFad.hpp:70
mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, GeneralFad & >::type operator=(const Expr< S > &x)
Assignment operator with any expression right-hand-side.
Definition: Sacado_CacheFad_GeneralFad.hpp:254
static void destroy_and_release(T *m, int sz)
Destroy array elements and release memory.
Definition: Sacado_DynamicArrayTraits.hpp:357
Definition: Sacado_Fad_BLAS.hpp:180
CacheTaylor< T > & operator=(const typename dummy< value_type, scalar_type >::type &val)
Assignment operator with constant right-hand-side.
Definition: Sacado_Tay_CacheTaylor.hpp:298
T & fastAccessDx(int i)
Returns derivative component i without bounds checking.
Definition: Sacado_ELRFad_SFad.hpp:317
Definition: Sacado_mpl_apply.hpp:67
Definition: Sacado_tradvec.hpp:144
virtual ~ParameterRegistration()
Destructor.
Definition: Sacado_ParameterRegistration.hpp:85
ConstT constant_
The constant.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:131
ScalarType< ValueT >::type ScalarT
Typename of scalar's (which may be different from ValueT)
Definition: Sacado_Fad_SimpleFad.hpp:67
mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, bool >::type isEqualTo(const Expr< S > &x) const
Returns whether two Fad objects have the same values.
Definition: Sacado_ELRFad_GeneralFad.hpp:225
Definition: Sacado_mpl_apply.hpp:53
ViewStorage & operator=(const ViewStorage &x)
Assignment.
Definition: Sacado_Fad_ViewStorage.hpp:109
Expr(const int sz, const int i, const T &x)
Constructor with size sz, index i, and value x.
Definition: Sacado_CacheFad_GeneralFadExpr.hpp:88
Extension class for extending interface of its argument.
Definition: Sacado_Fad_Exp_Extender.hpp:42
Definition: Sacado_mpl_placeholders.hpp:42
void zero()
Zero out derivative array.
Definition: Sacado_Fad_VectorDynamicStorage.hpp:213
CacheTaylorImplementation(const T &x)
Constructor with supplied value x.
Definition: Sacado_Tay_CacheTaylor.hpp:76
Definition: Sacado_Tay_CacheTaylor.hpp:41
Base template specification for testing equivalence.
Definition: Sacado_Traits.hpp:381
Definition: Sacado_Fad_Exp_MathFunctions.hpp:126
ExprT2 expr2_
Right argument.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:259
ScalarParameterEntry()
Default constructor.
Definition: Sacado_ScalarParameterEntry.hpp:94
Definition: Sacado_mpl_quote.hpp:44
const T * dx() const
Returns derivative array.
Definition: Sacado_ELRCacheFad_SFad.hpp:311
const T & fastAccessDx(int i) const
Returns derivative component i without bounds checking.
Definition: Sacado_ELRFad_SFad.hpp:321
void fillVector(const Teuchos::Array< std::string > &names, ScalarParameterVector< EvalTypeTraits > &pv)
Fill a vector with the supplied parameter names.
Definition: Sacado_ScalarParameterLibrary.hpp:196
value_type fastAccessCoeff(unsigned int i) const
Return degree i term of expression.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:249
Derivative array storage class that is a view into a contiguous memory allocation....
Definition: Sacado_Fad_ViewStorage.hpp:65
void allocateCache(unsigned int d) const
Allocate coefficient cache.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:62
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, DMFad & >::type operator+=(const S &x)
Addition-assignment operator with constant right-hand-side.
Definition: Sacado_Fad_DMFad.hpp:171
A dummy argument that can be converted to any scalar type.
Definition: Sacado_dummy_arg.hpp:35
void print(std::ostream &os, bool print_values=false) const
Print parameter library.
Definition: Sacado_ParameterLibraryBaseImp.hpp:178
KOKKOS_INLINE_FUNCTION T & val()
Returns value.
Definition: Sacado_Fad_Exp_VectorDynamicStorage.hpp:247
ConstT value_type
Typename of argument values.
Definition: Sacado_ELRFad_Expression.hpp:117
Definition: Sacado_ELRCacheFad_SFad.hpp:70
Definition: Sacado_CacheFad_Ops.hpp:435
Turn StaticStorage into a meta-function class usable with mpl::apply.
Definition: Sacado_Fad_Exp_StaticStorage.hpp:59
void diff(const int ith, const int n)
Set Fad object as the ith independent variable.
Definition: Sacado_ELRFad_SFad.hpp:203
Expr(const Expr &x)
Copy constructor.
Definition: Sacado_ELRFad_GeneralFadExpr.hpp:104
A meta-function that defines U as its type.
Definition: Sacado_dummy_arg.hpp:40
FamilyMap library
Scalar parameter library.
Definition: Sacado_ParameterLibraryBase.hpp:148
Meta-function for determining nesting with an expression.
Definition: Sacado_Fad_Expression.hpp:100
bool isActive() const
Return whether argument is active.
Definition: Sacado_ELRCacheFad_SFad.hpp:340
Expr(const ExprT &expr)
Constructor with given expression expr.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:59
const std::valarray< T > & coeff() const
Returns Taylor coefficient array.
Definition: Sacado_Tay_CacheTaylor.hpp:131
Definition: Sacado_Fad_Ops.hpp:144
void resize(int sz)
Resize the derivative array to sz.
Definition: Sacado_Fad_StaticStorage.hpp:126
Represents a memory element.
Definition: Sacado_Fad_MemPool.hpp:78
Definition: Kokkos_LayoutContiguous.hpp:133
Base template specification for testing whether type is statically sized.
Definition: Sacado_Traits.hpp:387
Definition: Sacado_LFad_LogicalSparseOps.hpp:158
ViewStorage(T *arg_dx, T *arg_val, const int arg_size=0, const int arg_stride=0)
Constructor.
Definition: Sacado_Fad_ViewStorage.hpp:94
Expr(const int sz, const int i, const T &x)
Constructor with size sz, index i, and value x.
Definition: Sacado_Fad_SFad.hpp:165
KOKKOS_INLINE_FUNCTION VectorDynamicStorage(const int sz, T *x, U *dx_p, const int stride, bool zero_out)
Constructor with supplied memory.
Definition: Sacado_Fad_Exp_VectorDynamicStorage.hpp:92
Replace static derivative length.
Definition: Sacado_Fad_SLFad_tmpl.hpp:87
void expand(int sz)
Expand derivative array to size sz.
Definition: Sacado_CacheFad_SFad.hpp:213
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, DVFad & >::type operator=(const S &v)
Assignment operator with constant right-hand-side.
Definition: Sacado_Fad_DVFad.hpp:161
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, GeneralFad & >::type operator*=(const S &v)
Multiplication-assignment operator with constant right-hand-side.
Definition: Sacado_CacheFad_GeneralFad.hpp:309
Definition: Sacado_mpl_at.hpp:39
int size() const
Returns number of derivative components.
Definition: Sacado_ELRCacheFad_SFad.hpp:288
Definition: Kokkos_LayoutContiguous.hpp:70
Sacado::TemplateManager< TypeSeq, BaseT, ObjectT >::iterator begin()
Return an iterator that points to the first type object.
Definition: Sacado_TemplateManagerImp.hpp:107
Definition: Sacado_LFad_LogicalSparseOps.hpp:122
void copyForWrite()
Prepare polynomial for writing.
Definition: Sacado_Tay_Taylor.hpp:124
void addParam(const Teuchos::RCP< FamilyType > &family, BaseValueType baseValue)
Add entry.
Definition: Sacado_ParameterVectorBase.hpp:94
Definition: Sacado_Tay_CacheTaylorOps.hpp:1754
KOKKOS_INLINE_FUNCTION void zero()
Zero out derivative array.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:187
Definition: Sacado_Tay_CacheTaylorOps.hpp:633
Definition: Sacado_Fad_Ops.hpp:227
Definition: Sacado_mpl_disable_if.hpp:58
T & val()
Returns value.
Definition: Sacado_ELRFad_SFad.hpp:275
const FadType & operator[](OrdinalType i) const
Array access.
Definition: Sacado_Fad_Vector.hpp:152
void GEMV(Teuchos::ETransp trans, const OrdinalType m, const OrdinalType n, const alpha_type &alpha, const A_type *A, const OrdinalType lda, const x_type *x, const OrdinalType incx, const beta_type &beta, FadType *y, const OrdinalType incy) const
Performs the matrix-std::vector operation: y <- alpha*A*x+beta*y or y <- alpha*A'*x+beta*y where A ...
Definition: Sacado_Fad_BLASImp.hpp:828
bool hasFastAccess() const
Returns true if derivative array is not empty.
Definition: Sacado_LFad_LogicalSparse.hpp:197
DVFad(const int sz, const int i, const ValueT &x)
Constructor with size sz, index i, and value x.
Definition: Sacado_Fad_DVFad.hpp:125
Definition: Sacado_ELRCacheFad_Ops.hpp:3123
~Expr()
Destructor.
Definition: Sacado_ELRCacheFad_GeneralFadExpr.hpp:113
Definition: Sacado_tradvec.hpp:114
ConstT base_expr_type
Typename of base-expressions.
Definition: Sacado_ELRCacheFad_Expression.hpp:123
ValT value_type
Typename of values (e.g., double)
Definition: Sacado_LFad_LogicalSparse.hpp:93
KOKKOS_INLINE_FUNCTION T dx(int i) const
Returns derivative component i with bounds checking.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:182
DMFad(const int sz, const int i, const ValueT &x)
Constructor with size sz, index i, and value x.
Definition: Sacado_Fad_DMFad.hpp:125
KOKKOS_INLINE_FUNCTION ~StaticStorage()
Destructor.
Definition: Sacado_Fad_Exp_StaticStorage.hpp:105
Definition: Sacado_ELRCacheFad_Ops.hpp:2386
ViewStorage(const S &x, SACADO_ENABLE_VALUE_CTOR_DECL)
Default constructor (needed to satisfy interface)
Definition: Sacado_Fad_ViewStorage.hpp:79
~MemPoolManager()
Destructor.
Definition: Sacado_Fad_MemPoolManagerImp.hpp:42
static void strided_copy(const T *src, int src_stride, T *dest, int dest_stride, int sz)
Copy array from src to dest of length sz.
Definition: Sacado_DynamicArrayTraits.hpp:330
Base template specification for static size.
Definition: Sacado_Traits.hpp:400
Definition: Sacado_CacheFad_Ops.hpp:471
ConstExpr< typename ExprT1::value_type > ExprT2
Typename of constant expression.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:342
Definition: Sacado_rad.hpp:456
MemPoolStorage & operator=(const MemPoolStorage &x)
Assignment.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:231
Taylor< T > & operator=(const T &val)
Assignment operator with constant right-hand-side.
Definition: Sacado_Tay_TaylorImp.hpp:200
~MemPoolStorage()
Destructor.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:225
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, GeneralFad & >::type operator=(const S &v)
Assignment operator with constant right-hand-side.
Definition: Sacado_CacheFad_GeneralFad.hpp:236
EvalMap family
Family of parameter entries.
Definition: Sacado_ParameterFamilyBase.hpp:125
BLAS(bool use_default_impl=true, bool use_dynamic=true, OrdinalType static_workspace_size=0)
Default constructor.
Definition: Sacado_Fad_BLASImp.hpp:592
Replace static derivative length.
Definition: Sacado_Fad_Exp_GeneralFad.hpp:82
Definition: Sacado_Fad_Exp_MathFunctions.hpp:75
Meta-function for determining concrete base expression.
Definition: Sacado_Fad_Expression.hpp:70
Definition: Sacado_Fad_Exp_MathFunctions.hpp:58
KOKKOS_INLINE_FUNCTION VectorDynamicStorage(const T &x)
Constructor with value.
Definition: Sacado_Fad_Exp_VectorDynamicStorage.hpp:73
DMFad()
Default constructor.
Definition: Sacado_Fad_DMFad.hpp:101
void cache() const
Cache values.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:220
Definition: Sacado_LFad_LogicalSparseOps.hpp:128
Definition: Sacado_ELRCacheFad_Ops.hpp:1000
A tag for specializing Expr for SFad expressions.
Definition: Sacado_CacheFad_SFad.hpp:66
std::vector< FadType > vec_
Vector of Fad's.
Definition: Sacado_Fad_Vector.hpp:106
EntryVector::const_iterator const_iterator
Const iterator typename.
Definition: Sacado_ParameterVectorBase.hpp:77
value_type dx(int i) const
Return derivative component i of operation.
Definition: Sacado_CacheFad_Expression.hpp:147
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, SimpleFad & >::type operator=(const S &v)
Assignment operator with constant right-hand-side.
Definition: Sacado_Fad_SimpleFad.hpp:139
Forward-mode AD class using dynamic memory allocation and expression templates.
Definition: Sacado_Fad_DFad_tmpl.hpp:50
Forward-mode AD class templated on the storage for the derivative array.
Definition: Sacado_ELRFad_GeneralFad.hpp:73
KOKKOS_INLINE_FUNCTION SACADO_ENABLE_VALUE_FUNC(GeneralFad &) operator
Assignment operator with constant right-hand-side.
Expr(const Storage &s)
Constructor with supplied storage s.
Definition: Sacado_ELRFad_GeneralFadExpr.hpp:99
OrdinalType size() const
Vector size.
Definition: Sacado_Fad_Vector.hpp:83
BinaryExpr(const ExprT1 &expr1, const ExprT2 &expr2)
Constructor.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:224
static KOKKOS_INLINE_FUNCTION void assign_times_equal(DstType &dst, const SrcType &x)
Implementation of dst *= x.
Definition: Sacado_Fad_Exp_ExprAssign.hpp:310
Definition: Sacado_rad2.hpp:94
Definition: Sacado_mpl_vector_push_back_spec.hpp:38
void ROTG(FadType *da, FadType *db, MagnitudeType *c, FadType *s) const
Computes a Givens plane rotation.
Definition: Sacado_Fad_BLAS.hpp:213
Expr(const S &x, typename Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, void * >::type=0)
Constructor with supplied value x.
Definition: Sacado_Fad_SFad.hpp:139
Definition: Sacado_ELRFad_Ops.hpp:192
Definition: Sacado_Fad_Exp_Ops.hpp:665
Vector & operator=(const Vector &fv)
Assignment.
Definition: Sacado_Fad_Vector.hpp:76
int size() const
Returns number of derivative components.
Definition: Sacado_Fad_StaticStorage.hpp:118
bool isEqualTo(const Expr< S > &x) const
Returns whether two Taylor objects have the same values.
Definition: Sacado_Tay_CacheTaylor.hpp:152
GeneralFad(const int sz, const int i, const T &x)
Constructor with size sz, index i, and value x.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:114
unsigned int degree() const
Return degree of polynomial.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:166
GeneralFad(const int sz, const T &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz and value x.
Definition: Sacado_ELRFad_GeneralFad.hpp:106
T & val()
Returns value.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:325
bool isActive() const
Return whether argument is active.
Definition: Sacado_ELRCacheFad_Expression.hpp:165
T val_
Value.
Definition: Sacado_Fad_Exp_StaticStorage.hpp:202
constexpr KOKKOS_INLINE_FUNCTION int length() const
Returns array length.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:136
GeneralFad & operator=(const GeneralFad &x)
Assignment with Expr right-hand-side.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:282
Definition: Sacado_trad.hpp:188
Definition: Sacado_ELRCacheFad_Ops.hpp:631
Replace static derivative length.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:61
DynamicStorage(const int sz, const T &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz.
Definition: Sacado_Fad_DynamicStorage.hpp:76
T & fastAccessCoeff(int i)
Returns degree i term without bounds checking.
Definition: Sacado_Tay_Taylor.hpp:191
KOKKOS_INLINE_FUNCTION GeneralFad(const Storage &s)
Constructor with supplied storage s.
Definition: Sacado_Fad_Exp_GeneralFad.hpp:124
int sz_
Size of derivative array.
Definition: Sacado_Fad_StaticStorage.hpp:204
void setIsConstant(bool is_const)
Set whether variable is constant.
Definition: Sacado_Fad_GeneralFad.hpp:231
static void destroy_and_release(T *m, int sz)
Destroy array elements and release memory.
Definition: Sacado_DynamicArrayTraits.hpp:812
void expand(int sz)
Expand derivative array to size sz.
Definition: Sacado_Fad_VectorDynamicStorage.hpp:193
GeneralFad(const int sz, const int i, const T &x)
Constructor with size sz, index i, and value x.
Definition: Sacado_CacheFad_GeneralFad.hpp:118
void zero()
Zero out the derivative array.
Definition: Sacado_Fad_SFad.hpp:246
Expr(const Expr< S > &x, typename mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, void * >::type=0)
Copy constructor from any Expression object.
Definition: Sacado_ELRFad_SFad.hpp:165
MemPoolStorage(const int sz, const T &x, const DerivInit zero_out)
Constructor with size sz.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:210
KOKKOS_INLINE_FUNCTION int size() const
Returns number of derivative components.
Definition: Sacado_Fad_Exp_VectorDynamicStorage.hpp:145
KOKKOS_INLINE_FUNCTION StaticStorage & operator=(const StaticStorage &x)
Assignment.
Definition: Sacado_Fad_Exp_StaticStorage.hpp:109
Definition: Sacado_trad2.hpp:154
SimpleFad()
Default constructor.
Definition: Sacado_Fad_SimpleFad.hpp:84
Expr(const int sz, const T &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz and value x.
Definition: Sacado_Fad_GeneralFadExpr.hpp:78
Expr(const int sz, const int i, const T &x)
Constructor with size sz, index i, and value x.
Definition: Sacado_ELRFad_GeneralFadExpr.hpp:94
value_type val() const
Return value of operation.
Definition: Sacado_ELRFad_Expression.hpp:142
Definition: Sacado_Fad_Ops.hpp:235
Forward-mode AD class using dynamic memory allocation and expression templates.
Definition: Sacado_Fad_DFad_tmpl.hpp:291
EFlopType
Enum for operations.
Definition: Sacado_ScalarFlopCounter.hpp:57
static T * get_and_fill(int sz, MemPool *pool)
Get memory for new array of length sz and fill with zeros.
Definition: Sacado_Fad_MemPoolStorage.hpp:149
Meta-function for determining concrete base expression.
Definition: Sacado_ELRCacheFad_Expression.hpp:69
ConstT base_expr_type
Typename of base-expressions.
Definition: Sacado_CacheFad_Expression.hpp:123
Forward-mode AD class templated on the storage for the derivative array.
Definition: Sacado_CacheFad_GeneralFad.hpp:75
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, SimpleFad & >::type operator+=(const S &x)
Addition-assignment operator with constant right-hand-side.
Definition: Sacado_Fad_SimpleFad.hpp:153
void GER(const OrdinalType m, const OrdinalType n, const alpha_type &alpha, const x_type *x, const OrdinalType incx, const y_type *y, const OrdinalType incy, FadType *A, const OrdinalType lda) const
Performs the rank 1 operation: A <- alpha*x*y'+A.
Definition: Sacado_Fad_BLASImp.hpp:963
bool isPassive() const
Returns true if derivative array is empty.
Definition: Sacado_CacheFad_SFad.hpp:282
Definition: Sacado_CacheFad_Ops.hpp:278
void Fad_GESV() const
Implementation of GESV.
Definition: Sacado_Fad_LAPACKImp.hpp:201
Meta-function for determining nesting with an expression.
Definition: Sacado_ELRCacheFad_Expression.hpp:86
KOKKOS_INLINE_FUNCTION StaticStorage(const StaticStorage &x)
Copy constructor.
Definition: Sacado_Fad_Exp_StaticStorage.hpp:96
void zero()
Zero out derivative array.
Definition: Sacado_Fad_DynamicStorage.hpp:183
Expr(const int sz, const T &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz and value x.
Definition: Sacado_Fad_SFad.hpp:149
MemPoolStorage(const MemPoolStorage &x)
Copy constructor.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:219
void resize(int sz)
Resize the derivative array to sz.
Definition: Sacado_Fad_VectorDynamicStorage.hpp:151
Definition: Sacado_tradvec.hpp:128
bool updateValue() const
Return whether this Fad object has an updated value.
Definition: Sacado_Fad_SFad.hpp:254
TemplateIterator(typename std::vector< Teuchos::RCP< BaseT > >::iterator p)
Constructor.
Definition: Sacado_TemplateIterator.hpp:54
BaseValueType baseValue
Base value of parameter family.
Definition: Sacado_ParameterVectorBase.hpp:58
const KOKKOS_INLINE_FUNCTION U * dx() const
Returns derivative array.
Definition: Sacado_Fad_Exp_VectorDynamicStorage.hpp:251
static T * strided_get_and_fill(const T *src, int stride, int sz)
Get memory for new array of length sz and fill with entries from src.
Definition: Sacado_DynamicArrayTraits.hpp:308
Expr(const Storage &s)
Constructor with supplied storage s.
Definition: Sacado_Fad_GeneralFadExpr.hpp:93
static T * get_and_fill(int sz, MemPool *pool)
Get memory for new array of length sz and fill with zeros.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:132
Wrapper for a generic expression template.
Definition: Sacado_Fad_Exp_Expression.hpp:55
Definition: Sacado_ELRCacheFad_Ops.hpp:373
T * operator->() const
Dereference.
Definition: Sacado_Handle.hpp:89
Replace static derivative length.
Definition: Sacado_Fad_Exp_StaticFixedStorage.hpp:65
static T * get_and_fill(const T *src, int sz)
Get memory for new array of length sz and fill with entries from src.
Definition: Sacado_DynamicArrayTraits.hpp:741
GeneralFad()
Default constructor.
Definition: Sacado_ELRFad_GeneralFad.hpp:90
Expr(const Expr &x)
Copy constructor.
Definition: Sacado_CacheFad_SFad.hpp:149
Definition: Sacado_mpl_apply_wrap.hpp:83
LayoutContiguous array_layout
Tag this class as a kokkos array layout.
Definition: Kokkos_LayoutContiguous.hpp:46
Definition: Sacado_mpl_bind.hpp:110
static void setDefaultPool(MemPool *pool)
Set the default memory pool for new objects.
Definition: Sacado_Fad_DMFad.hpp:164
bool hasFastAccess() const
Returns true if derivative array is not empty.
Definition: Sacado_CacheFad_SFad.hpp:278
KOKKOS_INLINE_FUNCTION SLFad(const Expr< S > &x, SACADO_ENABLE_EXPR_CTOR_DECL)
Copy constructor from any Expression object.
Definition: Sacado_Fad_SLFad_tmpl.hpp:139
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, GeneralFad & >::type operator*=(const S &v)
Multiplication-assignment operator with constant right-hand-side.
Definition: Sacado_ELRFad_GeneralFad.hpp:382
const T & getTangent(int i) const
Return tangent component i of argument Arg.
Definition: Sacado_ELRFad_SFad.hpp:343
value_type coeff(unsigned int i) const
Return degree i term of expression.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:369
void zero()
Zero out derivative array.
Definition: Sacado_Fad_StaticStorage.hpp:169
Meta-function for determining concrete base expression.
Definition: Sacado_ELRFad_Expression.hpp:69
Definition: Sacado_ELRFad_Ops.hpp:236
Definition: Sacado_Fad_Ops.hpp:220
Definition: Sacado_ELRCacheFad_Ops.hpp:623
void expand(int sz)
Expand derivative array to size sz.
Definition: Sacado_Fad_StaticStorage.hpp:156
Get the base Fad type from a view/expression.
Definition: Sacado_Traits.hpp:89
VectorDerivOrientation deriv_orientation() const
Derivative array orientation.
Definition: Sacado_Fad_Vector.hpp:146
Definition: Sacado_mpl_push_back.hpp:42
const KOKKOS_INLINE_FUNCTION T & fastAccessDx(int i) const
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_Exp_StaticStorage.hpp:197
Definition: Sacado_trad.hpp:212
const T & fastAccessDx(int i) const
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_StaticStorage.hpp:193
bool hasFastAccess(unsigned int d) const
Return if operation has fast access.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:169
BinaryExpr(const ExprT1 &expr1, const ExprT2 &expr2)
Constructor.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:350
T val_
Value.
Definition: Sacado_Fad_DynamicStorage.hpp:232
LogicalSparse(const int sz, const int i, const ValT &x)
Constructor with size sz, index i, and value x.
Definition: Sacado_LFad_LogicalSparse.hpp:657
static void resetCounters()
Reset static flop counters before starting a block of computations.
Definition: Sacado_ScalarFlopCounter.hpp:219
RemoveConst< T >::type value_type
Typename of values.
Definition: Sacado_Fad_GeneralFad.hpp:90
KOKKOS_INLINE_FUNCTION T & val()
Returns value.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:174
Expr(const int sz, const int i, const ValT &x)
Constructor with size sz, index i, and value x.
Definition: Sacado_LFad_LogicalSparse.hpp:582
Definition: Sacado_mpl_for_each.hpp:68
virtual const ScalarT & getValue() const
Get parameter value using ParameterAccessor.
Definition: Sacado_ParameterRegistration.hpp:97
ParameterRegistration(const std::string &name_, ParameterAccessor< EvalType, EvalTypeTraits > *access_, ParamLib ¶mLib)
Constructor: Registers the parameter with the Parameter Library.
Definition: Sacado_ParameterRegistration.hpp:58
Definition: Sacado_ELRCacheFad_Ops.hpp:668
KOKKOS_INLINE_FUNCTION bool hasFastAccess() const
Returns true if derivative array is not empty.
Definition: Sacado_Fad_Exp_GeneralFad.hpp:193
ConstTemplateIterator operator++(int)
Postfix ++.
Definition: Sacado_TemplateIterator.hpp:158
KOKKOS_INLINE_FUNCTION int availableSize() const
Returns number of derivative components that can be stored without reallocation.
Definition: Sacado_Fad_Exp_GeneralFad.hpp:189
BaseExpr< GeneralFad< T, Storage > >::type base_expr_type
Typename of base-expressions.
Definition: Sacado_ELRCacheFad_GeneralFadExpr.hpp:55
Definition: Kokkos_ViewFactory.hpp:72
Definition: Sacado_tradvec.hpp:124
T & val()
Returns value.
Definition: Sacado_Fad_VectorDynamicStorage.hpp:242
bool use_default_impl
Use custom or default implementation.
Definition: Sacado_Fad_BLAS.hpp:375
Definition: Sacado_rad2.hpp:577
T derived_type
Typename of derived object, returned by derived()
Definition: Sacado_Fad_Exp_Expression.hpp:63
value_type getTangent(int i) const
Return tangent component i of argument Arg.
Definition: Sacado_ELRCacheFad_Expression.hpp:160
void computePartials(const T &bar, value_type partials[]) const
Return partials w.r.t. arguments.
Definition: Sacado_ELRFad_SFad.hpp:325
T val_
Value.
Definition: Sacado_CacheFad_SFad.hpp:484
Expr(const int sz, const int i, const T &x)
Constructor with size sz, index i, and value x.
Definition: Sacado_ELRCacheFad_SFad.hpp:141
void Fad_TRMM(Teuchos::ESide side, Teuchos::EUplo uplo, Teuchos::ETransp transa, Teuchos::EDiag diag, const OrdinalType m, const OrdinalType n, const alpha_type &alpha, const OrdinalType n_alpha_dot, const alpha_type *alpha_dot, const A_type *A, const OrdinalType lda, const OrdinalType n_A_dot, const A_type *A_dot, const OrdinalType lda_dot, ValueType *B, const OrdinalType ldb, const OrdinalType n_B_dot, ValueType *B_dot, const OrdinalType ldb_dot, const OrdinalType n_dot) const
Implementation of TRMM.
Definition: Sacado_Fad_BLASImp.hpp:1730
LogicalSparseImp< ValT, LogT >::scalar_type scalar_type
Typename of scalar's (which may be different from value_type)
Definition: Sacado_LFad_LogicalSparse.hpp:552
static T * get(int sz, MemPool *pool)
Get memory for new array of length sz.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:122
const EvalTypeTraits::template apply< EvalType >::type & getValue() const
Get parameter value.
Definition: Sacado_ScalarParameterFamily.hpp:97
Definition: Sacado_Fad_Exp_MathFunctions.hpp:71
ParameterVectorBase & operator=(const ParameterVectorBase &source)
Assignment.
Definition: Sacado_ParameterVectorBase.hpp:90
int size() const
Returns number of derivative components.
Definition: Sacado_Fad_SFad.hpp:296
Definition: Sacado_mpl_disable_if.hpp:46
const unsigned int csize
Size of memory chunks.
Definition: Sacado_Fad_MemPool.hpp:96
Definition: Sacado_ELRCacheFad_Ops.hpp:607
const ConstT & val(int j) const
Return value of operation.
Definition: Sacado_Fad_Expression.hpp:149
void setIsConstant(bool is_const)
Set whether variable is constant.
Definition: Sacado_LFad_LogicalSparse.hpp:203
static T * get_and_fill(int sz, MemPool *pool)
Get memory for new array of length sz and fill with zeros.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:65
Definition: Sacado_Fad_Exp_MathFunctions.hpp:127
Definition: Sacado_Fad_Ops.hpp:600
value_type coeff(unsigned int i) const
Return degree i term of expression.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:173
const KOKKOS_INLINE_FUNCTION U & fastAccessDx(int i) const
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:229
SFad< value_type, Num > base_expr_type
Typename of base-expressions.
Definition: Sacado_CacheFad_SFad.hpp:90
~StaticStorage()
Destructor.
Definition: Sacado_Fad_StaticStorage.hpp:101
Dynamic array allocation class that works for any type.
Definition: Sacado_Fad_MemPoolStorage.hpp:66
Definition: Sacado_ELRFad_GeneralFad.hpp:983
ConstExpr(const ConstT &constant)
Constructor.
Definition: Sacado_ELRFad_Expression.hpp:130
KOKKOS_INLINE_FUNCTION int size() const
Returns number of derivative components.
Definition: Sacado_Fad_Exp_StaticStorage.hpp:122
T val_
Value.
Definition: Sacado_Fad_StaticStorage.hpp:198
KOKKOS_INLINE_FUNCTION U & fastAccessDx(int i)
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:225
ExprType::scalar_type scalar_type
Typename of scalar's (which may be different from value_type)
Definition: Sacado_Fad_DFad_tmpl.hpp:64
Teuchos::RCP< FamilyType > family
Pointer to family.
Definition: Sacado_ParameterVectorBase.hpp:55
virtual void setRealValue(double value)
Set real parameter value.
Definition: Sacado_ParameterRegistration.hpp:88
Taylor< T > operator-() const
Unary-minus operator.
Definition: Sacado_Tay_TaylorImp.hpp:244
value_type fastAccessCoeff(unsigned int i) const
Return degree i term of expression.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:75
ExprType::value_type value_type
Typename of values.
Definition: Sacado_Fad_DMFad.hpp:78
Definition: Sacado_LFad_LogicalSparseOps.hpp:399
Definition: Sacado_Fad_Exp_Ops.hpp:573
Definition: Sacado_ELRFad_Ops.hpp:307
Class that implements various forms of expression assignments.
Definition: Sacado_Fad_Exp_ExprAssign.hpp:63
Definition: Sacado_trad.hpp:609
bool isPassive() const
Returns true if derivative array is empty.
Definition: Sacado_Fad_SFad.hpp:311
Definition: Sacado_rad2.hpp:543
int availableSize() const
Returns number of derivative components that can be stored without reallocation.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:246
Definition: Sacado_Fad_Exp_MathFunctions.hpp:124
Specialization of Sacado::ParameterFamilyBase for scalar parameters.
Definition: Sacado_ScalarParameterFamily.hpp:42
KOKKOS_INLINE_FUNCTION ViewFadPtr< T, static_length, static_stride, U > operator&() const
Overload of addressof operator.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:200
bool hasFastAccess(unsigned int d) const
Return if operation has fast access.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:365
static T * get_and_fill(const T *src, int sz, MemPool *pool)
Get memory for new array of length sz and fill with entries from src.
Definition: Sacado_Fad_MemPoolStorage.hpp:163
CacheTaylor< T > & operator/=(const T &x)
Division-assignment operator with constant right-hand-side.
Definition: Sacado_Tay_CacheTaylorImp.hpp:135
Teuchos::RCP< BaseT > build() const
Returns a new rcp for an object of type ObjectT<ScalarT>
Definition: Sacado_TemplateManager.hpp:106
Definition: Sacado_mpl_apply.hpp:47
EntryVector params
Parameter vector.
Definition: Sacado_ParameterVectorBase.hpp:153
Definition: Sacado_LFad_LogicalSparseOps.hpp:432
ESummaryFlopType
Enum of summary operation categories.
Definition: Sacado_ScalarFlopCounter.hpp:101
void zero()
Zero out the derivative array.
Definition: Sacado_ELRCacheFad_SFad.hpp:238
mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, bool >::type isEqualTo(const Expr< S > &x) const
Returns whether two Fad objects have the same values.
Definition: Sacado_Fad_SFad.hpp:263
Definition: Sacado_ELRCacheFad_Ops.hpp:69
Turn SFad into a meta-function class usable with mpl::apply.
Definition: Sacado_Fad_SFad_tmpl.hpp:66
Definition: Sacado_ELRCacheFad_Ops.hpp:611
void AXPY(const OrdinalType n, const alpha_type &alpha, const x_type *x, const OrdinalType incx, FadType *y, const OrdinalType incy) const
Perform the operation: y <- y+alpha*x.
Definition: Sacado_Fad_BLASImp.hpp:694
std::vector< ValueType > gemv_Ax
Temporary array for GEMV.
Definition: Sacado_Fad_BLAS.hpp:378
Dynamic array allocation class that works for any type.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:49
ExprType::value_type value_type
Typename of values.
Definition: Sacado_Fad_SFad_tmpl.hpp:56
Definition: Sacado_ELRFad_Ops.hpp:843
Definition: Sacado_ELRCacheFad_Ops.hpp:591
const T & val() const
Returns value.
Definition: Sacado_Fad_SFad.hpp:281
Parameter class for simple registration of a parameter with a Parameter Library. Requires a parameter...
Definition: Sacado_ParameterAccessor.hpp:41
Definition: Sacado_Fad_Exp_MathFunctions.hpp:64
int length() const
Returns array length.
Definition: Sacado_Fad_DynamicStorage.hpp:126
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, GeneralFad & >::type operator*=(const S &v)
Multiplication-assignment operator with constant right-hand-side.
Definition: Sacado_Fad_GeneralFad.hpp:318
Definition: Sacado_rad2.hpp:197
KOKKOS_INLINE_FUNCTION void resize(int sz)
Resize the derivative array to sz.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:137
static T * get_and_fill(int sz)
Get memory for new array of length sz and fill with zeros.
Definition: Sacado_DynamicArrayTraits.hpp:722
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, GeneralFad & >::type operator+=(const S &v)
Addition-assignment operator with constant right-hand-side.
Definition: Sacado_ELRFad_GeneralFad.hpp:366
const T & val() const
Returns value.
Definition: Sacado_Tay_Taylor.hpp:162
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, DVFad & >::type operator/=(const S &x)
Division-assignment operator with constant right-hand-side.
Definition: Sacado_Fad_DVFad.hpp:207
int size() const
Returns number of derivative components.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:258
GeneralFad(const Expr< S > &x, typename mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, void * >::type=0)
Copy constructor from any Expression object.
Definition: Sacado_Fad_GeneralFad.hpp:145
mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, GeneralFad & >::type operator=(const Expr< S > &x)
Assignment operator with any expression right-hand-side.
Definition: Sacado_ELRFad_GeneralFad.hpp:291
int deg_
Degree of polynomial.
Definition: Sacado_Tay_Taylor.hpp:251
void COPY(const OrdinalType n, const FadType *x, const OrdinalType incx, FadType *y, const OrdinalType incy) const
Copy the std::vector x to the std::vector y.
Definition: Sacado_Fad_BLASImp.hpp:666
KOKKOS_INLINE_FUNCTION void resize(int sz)
Resize the derivative array to sz.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:145
Definition: Sacado_Fad_Ops.hpp:612
Definition: Sacado_mpl_enable_if.hpp:38
value_type val() const
Return value of operation.
Definition: Sacado_ELRCacheFad_Expression.hpp:146
Definition: Sacado_Fad_Exp_MathFunctions.hpp:70
Derivative array storage class using dynamic memory allocation.
Definition: Sacado_Fad_MemPoolStorage.hpp:194
KOKKOS_INLINE_FUNCTION GeneralFad(const Expr< S > &x, SACADO_EXP_ENABLE_EXPR_CTOR_DECL)
Copy constructor from any Expression object.
Definition: Sacado_Fad_Exp_GeneralFad.hpp:132
SFad< value_type, Num > base_expr_type
Typename of base-expressions.
Definition: Sacado_ELRCacheFad_SFad.hpp:91
ConstExpr(const ConstT &constant)
Constructor.
Definition: Sacado_CacheFad_Expression.hpp:127
ExprT2 expr2_
Right argument.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:321
bool addEntry(const Teuchos::RCP< typename Sacado::mpl::apply< EntryType, EvalType >::type > &entry, const bool allow_overwrite=false)
Add a new parameter using custom entry.
Definition: Sacado_ParameterFamilyBaseImp.hpp:96
Definition: Sacado_Fad_DFadTraits.hpp:65
Replace static derivative length.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:76
Definition: Sacado_rad2.hpp:291
ExprType::value_type value_type
Typename of values.
Definition: Sacado_Fad_ViewFad_tmpl.hpp:70
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, GeneralFad & >::type operator/=(const S &v)
Division-assignment operator with constant right-hand-side.
Definition: Sacado_CacheFad_GeneralFad.hpp:320
Definition: Sacado_mpl_placeholders.hpp:54
void setRealValueForAllTypes(const std::string &name, double value)
Set paramter value using a real number.
Definition: Sacado_ScalarParameterLibrary.hpp:119
Definition: Sacado_mpl_apply_wrap.hpp:56
U * dx_
Derivative array.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:245
ScalarType< value_type >::type scalar_type
Typename of scalar's (which may be different from T)
Definition: Sacado_ELRFad_SFad.hpp:88
void setValue(const typename EvalTypeTraits::template apply< EvalType >::type &value)
Set parameter to value value treating parameter as a constant.
Definition: Sacado_ScalarParameterFamily.hpp:81
bool hasFastAccess() const
Returns true if derivative array is not empty.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:250
Definition: Sacado_CacheFad_Ops.hpp:952
Expr(const int sz, const int i, const T &x)
Constructor with size sz, index i, and value x.
Definition: Sacado_CacheFad_SFad.hpp:134
GeneralFad(const S &x, typename Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, void * >::type=0)
Constructor with supplied value x.
Definition: Sacado_CacheFad_GeneralFad.hpp:100
Definition: Sacado_mpl_find.hpp:46
value_type fastAccessCoeff(unsigned int i) const
Return derivative component i of operation.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:177
Expr()
Default constructor.
Definition: Sacado_LFad_LogicalSparse.hpp:558
Fad_LAPACK(bool use_default_impl=true, bool use_dynamic=true, OrdinalType static_workspace_size=0)
Default constructor.
Definition: Sacado_Fad_LAPACKImp.hpp:150
KOKKOS_INLINE_FUNCTION GeneralFad(const S &x, SACADO_ENABLE_VALUE_CTOR_DECL)
Constructor with value.
Definition: Sacado_Fad_Exp_GeneralFad.hpp:98
VectorDynamicStorage(const VectorDynamicStorage &x)
Copy constructor.
Definition: Sacado_Fad_VectorDynamicStorage.hpp:97
Expr & operator=(const Expr &x)
Assignment with Expr right-hand-side.
Definition: Sacado_Fad_SFad.hpp:351
int size() const
Returns number of derivative components.
Definition: Sacado_ELRFad_SFad.hpp:286
LogicalSparseImp(const Expr< S > &x, SACADO_ENABLE_EXPR_CTOR_DECL)
Copy constructor from any Expression object.
Definition: Sacado_LFad_LogicalSparse.hpp:141
KOKKOS_INLINE_FUNCTION VectorDynamicStorage(const VectorDynamicStorage &x)
Copy constructor.
Definition: Sacado_Fad_Exp_VectorDynamicStorage.hpp:102
bool isEqualTo(const SimpleFad &x) const
Returns whether two Fad objects have the same values.
Definition: Sacado_Fad_SimpleFad.hpp:128
Definition: Sacado_Fad_Ops.hpp:162
Definition: Sacado_LFad_LogicalSparseOps.hpp:410
SimpleFad(const SimpleFad &x)
Copy constructor.
Definition: Sacado_Fad_SimpleFad.hpp:112
ExprT::value_type value_type
Typename of argument value.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:148
Definition: Sacado_LFad_LogicalSparseOps.hpp:388
value_type fastAccessCoeff(unsigned int i) const
eturn degree i term of expression
Definition: Sacado_Tay_CacheTaylorExpr.hpp:373
ScalarParameterVector & operator=(const ScalarParameterVector &source)
Assignment operator.
Definition: Sacado_ScalarParameterVector.hpp:58
Expr(const S &x, typename Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, void * >::type=0)
Constructor with supplied value x.
Definition: Sacado_ELRCacheFad_SFad.hpp:114
KOKKOS_INLINE_FUNCTION StaticStorage(const T &x)
Constructor with value.
Definition: Sacado_Fad_Exp_StaticStorage.hpp:76
Expr()
Default constructor.
Definition: Sacado_CacheFad_GeneralFadExpr.hpp:61
U * dx_
Derivative array.
Definition: Sacado_Fad_DynamicStorage.hpp:241
Definition: Kokkos_ViewFactory.hpp:133
Definition: Sacado_Fad_SLFadTraits.hpp:47
bool hasFastAccess() const
Returns true if derivative array is not empty.
Definition: Sacado_Fad_GeneralFad.hpp:223
SimpleFad(const int sz, const ValueT &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz and value x.
Definition: Sacado_Fad_SimpleFad.hpp:99
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, Expr & >::type operator=(const S &v)
Assignment operator with constant right-hand-side.
Definition: Sacado_CacheFad_SFad.hpp:314
const value_type * getDx(int j) const
Get dx array.
Definition: Sacado_ELRFad_GeneralFadExpr.hpp:152
static void zero(T *dest, int sz)
Zero out array dest of length sz.
Definition: Sacado_Fad_MemPoolStorage.hpp:117
Expr(const Expr &x)
Copy constructor.
Definition: Sacado_Fad_GeneralFadExpr.hpp:98
Definition: Sacado_mpl_end.hpp:39
bool isLinear() const
Return whether expression is linear.
Definition: Sacado_ELRCacheFad_Expression.hpp:169
Definition: Sacado_MathFunctions.hpp:115
const EvalTypeTraits::template apply< EvalType >::type & getValue(const std::string &name) const
Get parameter value.
Definition: Sacado_ScalarParameterLibrary.hpp:181
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, GeneralFad & >::type operator=(const S &v)
Assignment operator with constant right-hand-side.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:273
KOKKOS_INLINE_FUNCTION DFad()
Default constructor.
Definition: Sacado_Fad_DFad_tmpl.hpp:91
Definition: Sacado_ELRFad_Ops.hpp:291
bool isParameter(const std::string &name) const
Determine if parameter of name name is in the library.
Definition: Sacado_ParameterLibraryBaseImp.hpp:47
~Expr()
Destructor.
Definition: Sacado_ELRCacheFad_SFad.hpp:195
virtual void print(std::ostream &os) const
Print entry.
Definition: Sacado_ScalarParameterEntry.hpp:121
MemPool * myPool_
Memory pool.
Definition: Sacado_Fad_MemPoolStorage.hpp:351
bool isPassive() const
Returns true if derivative array is empty.
Definition: Sacado_Fad_GeneralFad.hpp:227
bool hasFastAccess() const
Returns true if derivative array is not empty.
Definition: Sacado_Fad_SFad.hpp:307
void setUpdateValue(bool update_val)
Set whether this Fad object should update values.
Definition: Sacado_Fad_GeneralFad.hpp:184
OrdinalType deriv_size_
Size of derivative array.
Definition: Sacado_Fad_Vector.hpp:103
LogicalSparseImp(const int sz, const int i, const value_type &x)
Constructor with size sz, index i, and value x.
Definition: Sacado_LFad_LogicalSparse.hpp:130
void setIsConstant(bool is_const)
Set whether variable is constant.
Definition: Sacado_ELRFad_SFad.hpp:305
T & val()
Returns value.
Definition: Sacado_Fad_StaticStorage.hpp:177
FadType DOT(const OrdinalType n, const x_type *x, const OrdinalType incx, const y_type *y, const OrdinalType incy) const
Form the dot product of the vectors x and y.
Definition: Sacado_Fad_BLASImp.hpp:753
~Expr()
Destructor.
Definition: Sacado_CacheFad_SFad.hpp:174
DynamicStorage< ValueT > StorageType
Base classes.
Definition: Sacado_Fad_SimpleFad.hpp:57
Fad::StaticStorage< ValueT, Num > StorageType
Base classes.
Definition: Sacado_Fad_SLFad_tmpl.hpp:63
Definition: Sacado_mpl_quote.hpp:49
BaseExpr< GeneralFad< T, Storage > >::type base_expr_type
Typename of base-expressions.
Definition: Sacado_Fad_GeneralFadExpr.hpp:57
KOKKOS_INLINE_FUNCTION SFad()
Default constructor.
Definition: Sacado_Fad_SFad_tmpl.hpp:86
Definition: Sacado_ELRFad_Ops.hpp:940
Expr(const S &x, typename Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, void * >::type=0)
Constructor with supplied value x.
Definition: Sacado_Fad_GeneralFadExpr.hpp:70
LogicalSparseImp(const int sz, const value_type &x)
Constructor with size sz and value x.
Definition: Sacado_LFad_LogicalSparse.hpp:121
Turn ADvar into a meta-function class usable with mpl::apply.
Definition: Sacado_trad.hpp:858
~TaylorData()
Destructor.
Definition: Sacado_Tay_TaylorImp.hpp:93
CacheTaylor(const T &x)
Constructor with supplied value x.
Definition: Sacado_Tay_CacheTaylor.hpp:256
Definition: Sacado_Tay_CacheTaylorOps.hpp:421
Op< ExprT > op_
Operator.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:187
static T * get(int sz, MemPool *pool)
Get memory for new array of length sz.
Definition: Sacado_Fad_MemPoolStorage.hpp:139
Definition: Sacado_ELRFad_Ops.hpp:920
~Expr()
Destructor.
Definition: Sacado_ELRFad_SFad.hpp:193
Definition: Sacado_Fad_Ops.hpp:150
static KOKKOS_INLINE_FUNCTION void assign_times_equal(DstType &dst, const SrcType &x)
Implementation of dst *= x.
Definition: Sacado_Fad_Exp_ExprAssign.hpp:172
Definition: Sacado_mpl_for_each.hpp:47
~Expr()
Destructor.
Definition: Sacado_LFad_LogicalSparse.hpp:595
OrdinalType deriv_size_
Size of derivative array.
Definition: Sacado_Fad_Vector.hpp:169
KOKKOS_INLINE_FUNCTION int length() const
Returns array length.
Definition: Sacado_Fad_Exp_StaticStorage.hpp:126
Handle(const Handle &h)
Copy handle.
Definition: Sacado_Handle.hpp:48
Wrapper for a generic expression template.
Definition: Sacado_ELRFad_Expression.hpp:77
Definition: Sacado_trad.hpp:170
Definition: Sacado_MathFunctions.hpp:115
Definition: Sacado_LFad_LogicalSparseOps.hpp:149
Definition: Sacado_ELRCacheFad_Ops.hpp:2028
Definition: Sacado_Fad_Exp_MathFunctions.hpp:62
const T & val() const
Returns value.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:322
~Taylor()
Destructor.
Definition: Sacado_Tay_TaylorImp.hpp:162
const_iterator begin() const
Iterator pointing at beginning of vector.
Definition: Sacado_ParameterVectorBase.hpp:112
~TemplateManager()
Destructor.
Definition: Sacado_TemplateManagerImp.hpp:43
GeneralFad< T, Storage >::value_type value_type
Typename of values.
Definition: Sacado_ELRFad_GeneralFadExpr.hpp:51
MemPoolStorage(const MemPoolStorage &x)
Copy constructor.
Definition: Sacado_Fad_MemPoolStorage.hpp:218
Container class to manager template instantiations of a template class.
Definition: Sacado_TemplateManager.hpp:71
Base template specification for IsScalarType.
Definition: Sacado_Traits.hpp:346
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, Expr & >::type operator=(const S &v)
Assignment operator with constant right-hand-side.
Definition: Sacado_Fad_SFad.hpp:343
Definition: Sacado_rad.hpp:112
const KOKKOS_INLINE_FUNCTION T & val() const
Returns value.
Definition: Sacado_Fad_Exp_StaticFixedStorage.hpp:174
void buildObjects()
Build objects for each ScalarT using default builder.
Definition: Sacado_TemplateManagerImp.hpp:59
Turn GeneralFad into a meta-function class usable with mpl::apply.
Definition: Sacado_Fad_Exp_GeneralFad.hpp:75
ScalarType< value_type >::type scalar_type
Typename of scalar's (which may be different from T)
Definition: Sacado_ELRCacheFad_SFad.hpp:88
void diff(const int ith, const int n)
Set GeneralFad object as the ith independent variable.
Definition: Sacado_Fad_GeneralFad.hpp:174
Definition: Sacado_trad.hpp:218
Definition: Sacado_ELRFad_Ops.hpp:316
T dx(int i) const
Returns derivative component i with bounds checking.
Definition: Sacado_Fad_MemPoolStorage.hpp:321
Definition: Sacado_rad.hpp:527
T & fastAccessDx(int i)
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_SFad.hpp:327
Definition: Sacado_ELRCacheFad_Ops.hpp:2759
Expr(const S &x, typename Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, void * >::type=0)
Constructor with supplied value x.
Definition: Sacado_ELRFad_SFad.hpp:114
MemPoolManager(unsigned int nfad)
Constructor.
Definition: Sacado_Fad_MemPoolManagerImp.hpp:34
Definition: Sacado_Tay_CacheTaylorOps.hpp:1807
int len_
Derivative array length.
Definition: Sacado_Fad_DynamicStorage.hpp:238
Definition: Sacado_ELRCacheFad_Ops.hpp:635
KOKKOS_INLINE_FUNCTION void zero()
Zero out derivative array.
Definition: Sacado_Fad_Exp_VectorDynamicStorage.hpp:218
Definition: Sacado_trad.hpp:222
ConstTemplateIterator< BaseT > const_iterator
Typedef for const_iterator.
Definition: Sacado_TemplateManager.hpp:99
KOKKOS_INLINE_FUNCTION T dx(int i) const
Returns derivative component i with bounds checking.
Definition: Sacado_Fad_Exp_StaticStorage.hpp:189
Definition: Sacado_tradvec.hpp:136
static T * get_and_fill(const T *src, int sz, MemPool *pool)
Get memory for new array of length sz and fill with entries from src.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:146
ExprType::value_type value_type
Typename of values.
Definition: Sacado_Fad_DVFad.hpp:78
Definition: Sacado_LFad_LogicalSparseOps.hpp:152
int availableSize() const
Returns number of derivative components that can be stored without reallocation.
Definition: Sacado_CacheFad_SFad.hpp:274
LogicalSparseImp< ValT, LogT > ImplType
Base classes.
Definition: Sacado_LFad_LogicalSparse.hpp:609
KOKKOS_INLINE_FUNCTION ViewFad(ValueT *v, const int arg_size=0, const int arg_stride=0)
View-specific constructor.
Definition: Sacado_Fad_ViewFad_tmpl.hpp:105
Definition: Sacado_Fad_Ops.hpp:699
FamilyMap::const_iterator const_iterator
Const iterator typename.
Definition: Sacado_ParameterLibraryBase.hpp:63
const T & val() const
Returns value.
Definition: Sacado_Tay_CacheTaylor.hpp:112
A tag for specializing Expr for SFad expressions.
Definition: Sacado_Fad_SFad.hpp:97
Base template specification for ScalarValue.
Definition: Sacado_Traits.hpp:364
int size() const
Returns number of derivative components.
Definition: Sacado_Fad_MemPoolStorage.hpp:252
bool updateValue() const
Return whether this Fad object has an updated value.
Definition: Sacado_ELRFad_SFad.hpp:244
Templated flop counter class.
Definition: Sacado_MathFunctions.hpp:115
Expr(const int sz, const T &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz and value x.
Definition: Sacado_ELRCacheFad_SFad.hpp:124
mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, GeneralFad & >::type operator=(const Expr< S > &x)
Assignment operator with any expression right-hand-side.
Definition: Sacado_Fad_GeneralFad.hpp:264
GeneralFad< T, Storage >::scalar_type scalar_type
Typename of scalar's (which may be different from value_type)
Definition: Sacado_CacheFad_GeneralFadExpr.hpp:54
GeneralFad< T, Storage >::scalar_type scalar_type
Typename of scalar's (which may be different from value_type)
Definition: Sacado_Fad_GeneralFadExpr.hpp:54
KOKKOS_INLINE_FUNCTION DFad(const Expr< S > &x, SACADO_ENABLE_EXPR_CTOR_DECL)
Copy constructor from any Expression object.
Definition: Sacado_Fad_DFad_tmpl.hpp:129
Definition: Sacado_Tay_CacheTaylorOps.hpp:351
ExprT::scalar_type scalar_type
Typename of scalar's (which may be different from value_type)
Definition: Sacado_Tay_CacheTaylorExpr.hpp:53
Turn SLFad into a meta-function class usable with mpl::apply.
Definition: Sacado_Fad_SLFad_tmpl.hpp:78
Definition: Sacado_mpl_range_c.hpp:51
void diff(const int ith, const int n)
Set LogicalSparseImp object as the ith independent variable.
Definition: Sacado_LFad_LogicalSparse.hpp:170
TemplateIterator operator++(int)
Postfix ++.
Definition: Sacado_TemplateIterator.hpp:90
CacheTaylorImplementation(int d, const T &x)
Constructor with degree d and value x.
Definition: Sacado_Tay_CacheTaylor.hpp:82
mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, DVFad & >::type operator=(const Expr< S > &x)
Assignment operator with any expression right-hand-side.
Definition: Sacado_Fad_DVFad.hpp:174
A base class for scalar parameter values.
Definition: Sacado_ScalarParameterEntry.hpp:87
const KOKKOS_INLINE_FUNCTION derived_type & derived() const
Return derived object.
Definition: Sacado_Fad_Exp_Expression.hpp:71
bool updateValue() const
Return whether this Fad object has an updated value.
Definition: Sacado_ELRFad_GeneralFad.hpp:216
KOKKOS_INLINE_FUNCTION void expand(int sz)
Expand derivative array to size sz.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:171
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, SimpleFad & >::type operator*=(const S &x)
Multiplication-assignment operator with constant right-hand-side.
Definition: Sacado_Fad_SimpleFad.hpp:169
void free(void *b)
Free an element.
Definition: Sacado_Fad_MemPoolImp.hpp:73
Replace static derivative length.
Definition: Sacado_Fad_SFad_tmpl.hpp:72
DstType::value_type value_type
Typename of values.
Definition: Sacado_Fad_Exp_ExprAssign.hpp:272
bool operator==(const ConstTemplateIterator &t) const
Equal operator.
Definition: Sacado_TemplateIterator.hpp:130
Expr & operator=(const Expr &x)
Assignment with Expr right-hand-side.
Definition: Sacado_CacheFad_SFad.hpp:322
GeneralFad(const GeneralFad &x)
Copy constructor.
Definition: Sacado_ELRFad_GeneralFad.hpp:127
Definition: Sacado_CacheFad_Ops.hpp:2189
bool isPassive() const
Returns true if derivative array is empty.
Definition: Sacado_ELRFad_SFad.hpp:301
T value_type
Typename of values.
Definition: Sacado_Tay_CacheTaylor.hpp:233
IndepADvar(double)
Definition: Sacado_radops.cpp:229
KOKKOS_INLINE_FUNCTION void expand(int sz)
Expand derivative array to size sz.
Definition: Sacado_Fad_Exp_StaticFixedStorage.hpp:160
Definition: Sacado_rad2.hpp:588
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, GeneralFad & >::type operator+=(const S &v)
Addition-assignment operator with constant right-hand-side.
Definition: Sacado_Fad_GeneralFad.hpp:302
ScalarType< value_type >::type scalar_type
Typename of scalar's (which may be different from T)
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:79
Definition: Sacado_Fad_Exp_Ops.hpp:605
Definition: Sacado_Tay_CacheTaylorOps.hpp:1786
Expr(const int sz, const T &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz and value x.
Definition: Sacado_CacheFad_GeneralFadExpr.hpp:78
Teuchos::ScalarTraits< FadType >::magnitudeType ASUM(const OrdinalType n, const FadType *x, const OrdinalType incx) const
Sum the absolute values of the entries of x.
Definition: Sacado_Fad_BLAS.hpp:241
Definition: Sacado_Fad_Expression.hpp:73
Forward-mode AD class using static memory allocation.
Definition: Sacado_Fad_SFad_tmpl.hpp:47
mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, Expr & >::type operator=(const Expr< S > &x)
Assignment operator with any expression right-hand-side.
Definition: Sacado_ELRCacheFad_SFad.hpp:385
static T * get_and_fill(int sz)
Get memory for new array of length sz and fill with zeros.
Definition: Sacado_DynamicArrayTraits.hpp:276
Determine whether a given type is an expression.
Definition: Sacado_CacheFad_Expression.hpp:98
Expr(const Expr< S > &x, typename mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, void * >::type=0)
Copy constructor from any Expression object.
Definition: Sacado_Fad_GeneralFadExpr.hpp:104
static void incrCounter(const FlopCounts::EFlopType &ft)
Increment an individual flop counter.
Definition: Sacado_ScalarFlopCounter.hpp:283
static FlopCounts getCounters()
Get the flop counts after a block of computations.
Definition: Sacado_ScalarFlopCounter.hpp:225
Definition: Sacado_CacheFad_Ops.hpp:1682
void allocateCache(unsigned int d) const
Allocate coefficient cache.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:228
const T & fastAccessCoeff(int i) const
Returns degree i term without bounds checking.
Definition: Sacado_Tay_CacheTaylor.hpp:145
virtual ~ScalarParameterFamily()
Destructor.
Definition: Sacado_ScalarParameterFamily.hpp:61
Expr(const Expr &x)
Copy constructor.
Definition: Sacado_Fad_SFad.hpp:180
Definition: Sacado_Tay_CacheTaylorOps.hpp:1113
DynamicStorage(const S &x, SACADO_ENABLE_VALUE_CTOR_DECL)
Default constructor.
Definition: Sacado_Fad_DynamicStorage.hpp:68
bool isActive() const
Return whether argument is active.
Definition: Sacado_ELRCacheFad_GeneralFadExpr.hpp:133
T & fastAccessDx(int i)
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_StaticStorage.hpp:189
Expr(const int sz, const int i, const T &x)
Constructor with size sz, index i, and value x.
Definition: Sacado_ELRFad_SFad.hpp:141
static KOKKOS_INLINE_FUNCTION void assign_equal(DstType &dst, const SrcType &x)
Implementation of dst = x.
Definition: Sacado_Fad_Exp_ExprAssign.hpp:72
ScalarType< value_type >::type scalar_type
Typename of scalar's (which may be different from T)
Definition: Sacado_Fad_SFad.hpp:118
Expr(const S &x, typename Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, void * >::type=0)
Constructor with supplied value x.
Definition: Sacado_CacheFad_GeneralFadExpr.hpp:70
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, GeneralFad & >::type operator-=(const S &v)
Subtraction-assignment operator with constant right-hand-side.
Definition: Sacado_ELRFad_GeneralFad.hpp:374
SimpleFad(const int sz, const int i, const ValueT &x)
Constructor with size sz, index i, and value x.
Definition: Sacado_Fad_SimpleFad.hpp:108
Definition: Sacado_ELRFad_Ops.hpp:252
ArrayTraits< OrdinalType, FadType > arrayTraits
ArrayTraits for packing/unpacking value/derivative arrays.
Definition: Sacado_Fad_BLAS.hpp:369
T * val_
Value.
Definition: Sacado_Fad_ViewStorage.hpp:199
KOKKOS_INLINE_FUNCTION VectorDynamicStorage & operator=(const VectorDynamicStorage &x)
Assignment.
Definition: Sacado_Fad_Exp_VectorDynamicStorage.hpp:119
LogicalSparse(const int sz, const ValT &x)
Constructor with size sz and value x.
Definition: Sacado_LFad_LogicalSparse.hpp:648
BaseFadT base_fad_type
Fad type view is based on.
Definition: Sacado_Fad_ViewFad_tmpl.hpp:79
static T * strided_get_and_fill(const T *src, int stride, int sz)
Get memory for new array of length sz and fill with entries from src.
Definition: Sacado_DynamicArrayTraits.hpp:756
Definition: Sacado_Tay_CacheTaylorOps.hpp:218
static void strided_copy(const T *src, int src_stride, T *dest, int dest_stride, int sz)
Copy array from src to dest of length sz.
Definition: Sacado_DynamicArrayTraits.hpp:780
bool isLinear() const
Return whether expression is linear.
Definition: Sacado_ELRFad_Expression.hpp:165
const mpl::integral_nonzero_constant< int, static_length > sz_
Derivative array size.
Definition: Sacado_Fad_ViewStorage.hpp:193
GeneralFad(const GeneralFad &x)
Copy constructor.
Definition: Sacado_Fad_GeneralFad.hpp:139
int availableSize() const
Returns number of derivative components that can be stored without reallocation.
Definition: Sacado_Fad_SFad.hpp:303
const T & getTangent(int i) const
Return tangent component i of argument Arg.
Definition: Sacado_ELRFad_GeneralFadExpr.hpp:148
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:995
Definition: Sacado_ELRCacheFad_Ops.hpp:619
double getRealValue(const std::string &name) const
Get parameter value.
Definition: Sacado_ScalarParameterLibrary.hpp:166
const T & val() const
Returns value.
Definition: Sacado_Fad_VectorDynamicStorage.hpp:238
KOKKOS_INLINE_FUNCTION SLFad()
Default constructor.
Definition: Sacado_Fad_SLFad_tmpl.hpp:101
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, GeneralFad & >::type operator=(const S &v)
Assignment operator with constant right-hand-side.
Definition: Sacado_ELRFad_GeneralFad.hpp:273
Definition: Sacado_trad.hpp:217
Is a type an expression.
Definition: Sacado_Traits.hpp:77
mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, bool >::type isEqualTo(const Expr< S > &x) const
Returns whether two Fad objects have the same values.
Definition: Sacado_Fad_GeneralFad.hpp:197
ConstTemplateIterator & operator++()
Prefix ++.
Definition: Sacado_TemplateIterator.hpp:152
void computePartials(const T &bar, value_type partials[]) const
Return partials w.r.t. arguments.
Definition: Sacado_ELRCacheFad_GeneralFadExpr.hpp:117
T val_
Value.
Definition: Sacado_Fad_Exp_StaticFixedStorage.hpp:199
Definition: Sacado_mpl_bind.hpp:87
Definition: Sacado_rad2.hpp:133
const T & fastAccessDx(int i) const
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:337
static const char * flopCountsNames[NUM_OPS]
Names of individual flops.
Definition: Sacado_ScalarFlopCounter.hpp:111
static void copy(const T *src, T *dest, int sz)
Copy array from src to dest of length sz.
Definition: Sacado_DynamicArrayTraits.hpp:768
ScalarParameterVector(const ScalarParameterVector &source)
Copy constructor.
Definition: Sacado_ScalarParameterVector.hpp:51
Definition: Sacado_ELRFad_Ops.hpp:244
Definition: Sacado_ELRCacheFad_Ops.hpp:603
void resize(int sz)
Resize the derivative array to sz.
Definition: Sacado_Fad_MemPoolStorage.hpp:258
Definition: Sacado_rad.hpp:155
Definition: Sacado_CacheFad_Ops.hpp:439
void expand(int sz)
Expand derivative array to size sz.
Definition: Sacado_Fad_ViewStorage.hpp:152
Definition: Sacado_mpl_deref.hpp:39
static KOKKOS_INLINE_FUNCTION void assign_equal(DstType &dst, const SrcType &x)
Implementation of dst = x.
Definition: Sacado_Fad_Exp_ExprAssign.hpp:277
Definition: Sacado_ELRCacheFad_Ops.hpp:627
KOKKOS_INLINE_FUNCTION ~DFad()
Destructor.
Definition: Sacado_Fad_DFad_tmpl.hpp:136
void computePartials(const value_type &bar, value_type partials[]) const
Return partials w.r.t. arguments.
Definition: Sacado_ELRCacheFad_Expression.hpp:150
~DynamicStorage()
Destructor.
Definition: Sacado_Fad_DynamicStorage.hpp:93
KOKKOS_INLINE_FUNCTION DynamicStorage()
Default constructor.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:67
Definition: Sacado_tradvec.hpp:125
void allocateCache(int d) const
Allocate coefficient cache.
Definition: Sacado_Tay_CacheTaylor.hpp:148
Teuchos::RCP< BaseT > getAsBase()
Get RCP to object corrensponding to ScalarT as BaseT.
Definition: Sacado_TemplateManagerImp.hpp:69
VectorDynamicStorage(const S &x, SACADO_ENABLE_VALUE_CTOR_DECL)
Default constructor.
Definition: Sacado_Fad_VectorDynamicStorage.hpp:68
Definition: Sacado_ELRCacheFad_Ops.hpp:647
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, GeneralFad & >::type operator+=(const S &v)
Addition-assignment operator with constant right-hand-side.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:370
unsigned int num_chunks
Number of allocated chunks.
Definition: Sacado_Fad_MemPool.hpp:105
const value_type * getDx(int j) const
Get dx array.
Definition: Sacado_ELRCacheFad_SFad.hpp:349
VectorDerivOrientation
Definition: Sacado_Fad_Vector.hpp:42
~GeneralFad()
Destructor.
Definition: Sacado_CacheFad_GeneralFad.hpp:155
Definition: Sacado_ELRFad_Ops.hpp:199
bool isEqualTo(const Taylor &x) const
Returns whether two Taylor objects have the same values.
Definition: Sacado_Tay_Taylor.hpp:127
const T * dx() const
Returns derivative array.
Definition: Sacado_Fad_StaticStorage.hpp:181
Definition: Sacado_Fad_Expression.hpp:72
std::vector< ValueType > gemm_AB
Temporary array for GEMM.
Definition: Sacado_Fad_BLAS.hpp:381
int length() const
Returns array length.
Definition: Sacado_Fad_VectorDynamicStorage.hpp:144
Expr(const Expr< S > &x, typename mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, void * >::type=0)
Copy constructor from any Expression object.
Definition: Sacado_Fad_SFad.hpp:189
value_type fastAccessCoeff(unsigned int i) const
Return degree i term of expression.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:125
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, GeneralFad & >::type operator=(const S &v)
Assignment operator with constant right-hand-side.
Definition: Sacado_Fad_GeneralFad.hpp:246
Sacado::ScalarParameterEntry< EvalType >::ScalarT getValue(const ScalarParameterFamily< EvalTypeTraits > &spf)
Get the value.
Definition: Sacado_ScalarParameterFamily.hpp:124
bool supports_analytic
Family supports analytic derivatives.
Definition: Sacado_ParameterFamilyBase.hpp:134
Definition: Sacado_rad.hpp:263
Definition: Sacado_CacheFad_Ops.hpp:728
virtual ~ScalarParameterEntry()
Destructor.
Definition: Sacado_ScalarParameterEntry.hpp:97
GeneralFad(const int sz, const int i, const T &x)
Constructor with size sz, index i, and value x.
Definition: Sacado_Fad_GeneralFad.hpp:128
void setUpdateValue(bool update_val)
Set whether this Fad object should update values.
Definition: Sacado_ELRFad_GeneralFad.hpp:212
Definition: Sacado_tradvec.hpp:130
Definition: Sacado_Fad_Ops.hpp:214
Definition: Sacado_trad2.hpp:177
Teuchos::Array< Entry > EntryVector
Vector of all parameter families.
Definition: Sacado_ParameterVectorBase.hpp:69
GeneralFadType::value_type value_type
Typename of values.
Definition: Sacado_Fad_SimpleFad.hpp:61
Definition: Sacado_ELRCacheFad_Ops.hpp:1332
LayoutNatural array_layout
Tag this class as a kokkos array layout.
Definition: Kokkos_LayoutNatural.hpp:45
DMFad & operator=(const DMFad &x)
Assignment operator with DMFad right-hand-side.
Definition: Sacado_Fad_DMFad.hpp:150
KOKKOS_INLINE_FUNCTION SLFad(const int sz, const int i, const ValueT &x)
Constructor with size sz, index i, and value x.
Definition: Sacado_Fad_SLFad_tmpl.hpp:128
int sz_
Derivative array size.
Definition: Sacado_Fad_DynamicStorage.hpp:235
int sz_
Size of derivative array.
Definition: Sacado_Fad_Exp_StaticStorage.hpp:208
KOKKOS_INLINE_FUNCTION T & val()
Returns value.
Definition: Sacado_Fad_Exp_StaticFixedStorage.hpp:178
Derivative array storage class that is a view into a contiguous memory allocation....
Definition: Sacado_Fad_Exp_ViewStorage.hpp:54
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, SimpleFad & >::type operator/=(const S &x)
Division-assignment operator with constant right-hand-side.
Definition: Sacado_Fad_SimpleFad.hpp:177
KOKKOS_INLINE_FUNCTION ~SLFad()
Destructor.
Definition: Sacado_Fad_SLFad_tmpl.hpp:146
LogicalSparseImp(const S &x, SACADO_ENABLE_VALUE_CTOR_DECL)
Constructor with supplied value x.
Definition: Sacado_LFad_LogicalSparse.hpp:114
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, GeneralFad & >::type operator*=(const S &v)
Multiplication-assignment operator with constant right-hand-side.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:386
int size() const
Return size of the derivative array of the operation.
Definition: Sacado_CacheFad_Expression.hpp:131
static T * get(int sz)
Get memory for new array of length sz.
Definition: Sacado_DynamicArrayTraits.hpp:712
T val_
Value.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:236
bool supports_ad
Family supports AD.
Definition: Sacado_ParameterFamilyBase.hpp:131
static void zero(T *dest, int sz)
Zero out array dest of length sz.
Definition: Sacado_DynamicArrayTraits.hpp:791
void resizeAndZero(int sz)
Resize the derivative array to sz.
Definition: Sacado_Fad_StaticStorage.hpp:140
void getTangents(int i, value_type dots[]) const
Return tangent component i of arguments.
Definition: Sacado_ELRFad_GeneralFadExpr.hpp:125
Taylor polynomial class using caching expression templates.
Definition: Sacado_Tay_CacheTaylor.hpp:59
KOKKOS_INLINE_FUNCTION int length() const
Returns array length.
Definition: Sacado_Fad_Exp_VectorDynamicStorage.hpp:149
bool use_dynamic
Use dynamic memory allocation.
Definition: Sacado_Fad_BLAS.hpp:167
Expr(const Storage &s)
Constructor with supplied storage s.
Definition: Sacado_ELRCacheFad_GeneralFadExpr.hpp:97
~CacheTaylor()
Destructor.
Definition: Sacado_Tay_CacheTaylor.hpp:282
void setUpdateValue(bool update_val)
Set whether this Fad object should update values.
Definition: Sacado_Fad_SFad.hpp:250
Definition: Sacado_trad.hpp:230
Derivative array storage class using dynamic memory allocation.
Definition: Sacado_Fad_VectorDynamicStorage.hpp:59
int availableSize() const
Returns number of derivative components that can be stored without reallocation.
Definition: Sacado_ELRCacheFad_SFad.hpp:295
bool isPassive() const
Returns true if derivative array is empty.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:254
void cache() const
Cache values.
Definition: Sacado_CacheFad_Expression.hpp:139
CacheTaylor< T > & operator*=(const T &x)
Multiplication-assignment operator with constant right-hand-side.
Definition: Sacado_Tay_CacheTaylorImp.hpp:126
Definition: Sacado_mpl_at.hpp:42
IndepADvar(double)
Definition: Sacado_radops2.cpp:264
Definition: Sacado_tradvec.hpp:127
void expand(int sz)
Expand derivative array to size sz.
Definition: Sacado_Fad_MemPoolStorage.hpp:292
Definition: Sacado_ELRCacheFad_Ops.hpp:265
Forward-mode AD class using dynamic memory allocation and expression templates.
Definition: Sacado_Fad_DVFad.hpp:67
Definition: Sacado_LFad_LogicalSparseOps.hpp:421
Definition: Sacado_CacheFad_Ops.hpp:451
static void copy(const T *src, T *dest, int sz)
Copy array from src to dest of length sz.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:94
KOKKOS_INLINE_FUNCTION ViewStorage(const int sz, const T &x, const DerivInit zero_out)
Constructor with size sz (needed to satisfy interface)
Definition: Sacado_Fad_Exp_ViewStorage.hpp:92
Constant expression template.
Definition: Sacado_ELRCacheFad_Expression.hpp:112
virtual void setRealValue(double value)=0
Set real parameter value.
TemplateManager()
Default constructor.
Definition: Sacado_TemplateManagerImp.hpp:34
Definition: Sacado_mpl_apply.hpp:44
Definition: Sacado_Fad_Exp_MathFunctions.hpp:59
DVFad(const int sz, const int i, ValueT *x, ValueT *dx)
Constructor with supplied memory and index i.
Definition: Sacado_Fad_DVFad.hpp:142
Definition: Sacado_Fad_Exp_Ops.hpp:678
void setIsConstant(bool is_const)
Set whether variable is constant.
Definition: Sacado_CacheFad_GeneralFad.hpp:221
Expr(const S &x, typename Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, void * >::type=0)
Constructor with supplied value x.
Definition: Sacado_CacheFad_SFad.hpp:107
static void zero(T *dest, int sz)
Zero out array dest of length sz.
Definition: Sacado_DynamicArrayTraits.hpp:341
const U * dx() const
Returns derivative array.
Definition: Sacado_Fad_DynamicStorage.hpp:197
mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, Expr & >::type operator=(const Expr< S > &x)
Assignment operator with any expression right-hand-side.
Definition: Sacado_ELRFad_SFad.hpp:383
void cache() const
Cache values.
Definition: Sacado_ELRCacheFad_Expression.hpp:142
Definition: Sacado_CacheFad_Ops.hpp:459
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, GeneralFad & >::type operator+=(const S &v)
Addition-assignment operator with constant right-hand-side.
Definition: Sacado_CacheFad_GeneralFad.hpp:293
Definition: Sacado_mpl_quote.hpp:65
KOKKOS_INLINE_FUNCTION U & fastAccessDx(int i)
Returns derivative component i without bounds checking.
Definition: Sacado_Fad_Exp_VectorDynamicStorage.hpp:259
ExprT1 expr1_
Left argument.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:380
~LogicalSparseImp()
Destructor.
Definition: Sacado_LFad_LogicalSparse.hpp:161
Definition: Sacado_ELRFad_Ops.hpp:213
void reserve(int d)
Reserve space for a degree d polynomial.
Definition: Sacado_Tay_TaylorImp.hpp:188
Base template specification for whether a type is a Fad type.
Definition: Sacado_Traits.hpp:405
const KOKKOS_INLINE_FUNCTION T & val() const
Returns value.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:193
GeneralFad(const Storage &s)
Constructor with supplied storage s.
Definition: Sacado_CacheFad_GeneralFad.hpp:125
void computeActivePartials(const T &bar, value_type *partials) const
Return partials w.r.t. arguments.
Definition: Sacado_ELRFad_GeneralFadExpr.hpp:161
Definition: Sacado_TemplateIterator.hpp:49
T * coeff()
Returns Taylor coefficient array.
Definition: Sacado_Tay_Taylor.hpp:184
~GeneralFad()
Destructor.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:191
Definition: Sacado_ELRCacheFad_Ops.hpp:1673
KOKKOS_INLINE_FUNCTION ViewStorage()
Default constructor (needed to satisfy interface)
Definition: Sacado_Fad_Exp_ViewStorage.hpp:82
KOKKOS_INLINE_FUNCTION U dx(int i) const
Returns derivative component i with bounds checking.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:221
Definition: Sacado_trad2.hpp:148
const FadType & operator[](OrdinalType i) const
Array access.
Definition: Sacado_Fad_Vector.hpp:98
Definition: Sacado_mpl_integral_c.hpp:41
Definition: Sacado_Fad_Ops.hpp:242
ExprT expr_
Left argument.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:184
KOKKOS_INLINE_FUNCTION StaticFixedStorage & operator=(const StaticFixedStorage &x)
Assignment.
Definition: Sacado_Fad_Exp_StaticFixedStorage.hpp:117
KOKKOS_INLINE_FUNCTION ViewFad(ValueT *dx_ptr, ValueT *val_ptr, const int arg_size=0, const int arg_stride=0)
View-specific constructor.
Definition: Sacado_Fad_ViewFad_tmpl.hpp:110
MapType poolMap
Map of memory pools.
Definition: Sacado_Fad_MemPoolManager.hpp:75
Determine whether a given type is an expression.
Definition: Sacado_Fad_Exp_Expression.hpp:105
OrdinalType deriv_size() const
Derivative size.
Definition: Sacado_Fad_Vector.hpp:140
const unsigned int esize
Size of elements in a chunk.
Definition: Sacado_Fad_MemPool.hpp:90
Replace static derivative length.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:193
Definition: Sacado_CacheFad_ViewFadTraits.hpp:57
Definition: Sacado_ELRFad_Ops.hpp:883
ConstTemplateIterator(typename std::vector< Teuchos::RCP< BaseT > >::const_iterator p)
Constructor.
Definition: Sacado_TemplateIterator.hpp:122
Definition: Sacado_LFad_LogicalSparseOps.hpp:143
KOKKOS_INLINE_FUNCTION StaticFixedStorage(const T &x)
Constructor with value.
Definition: Sacado_Fad_Exp_StaticFixedStorage.hpp:74
ConstT value_type
Typename of argument values.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:98
Definition: Sacado_Tay_CacheTaylorOps.hpp:959
mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, GeneralFad & >::type operator=(const Expr< S > &x)
Assignment operator with any expression right-hand-side.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:291
Definition: Sacado_Fad_Ops.hpp:168
static void zero(T *dest, int sz)
Zero out array dest of length sz.
Definition: Sacado_StaticArrayTraits.hpp:54
T & val()
Returns value.
Definition: Sacado_Fad_SFad.hpp:285
Definition: Sacado_ELRCacheFad_DFadTraits.hpp:57
OrdinalType deriv_size() const
Derivative size.
Definition: Sacado_Fad_Vector.hpp:86
void setUpdateValue(bool update_val)
Set whether this Fad object should update values.
Definition: Sacado_CacheFad_GeneralFad.hpp:175
ValueType * workspace_pointer
Pointer to current free entry in workspace.
Definition: Sacado_Fad_BLAS.hpp:176
ExprT1 expr1_
Left argument.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:318
Definition: Sacado_CacheFad_Ops.hpp:1947
mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, bool >::type isEqualTo(const Expr< S > &x) const
Returns whether two Fad objects have the same values.
Definition: Sacado_ELRCacheFad_SFad.hpp:255
static std::ostream & printCounters(std::ostream &out)
Print the current static flop counts to out.
Definition: Sacado_ScalarFlopCounter.hpp:231
static void copy(const T *src, T *dest, int sz)
Copy array from src to dest of length sz.
Definition: Sacado_StaticArrayTraits.hpp:69
GeneralFad(const Expr< S > &x, typename mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, void * >::type=0)
Copy constructor from any Expression object.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:131
T getTangent(int i) const
Return tangent component i of argument Arg.
Definition: Sacado_ELRCacheFad_SFad.hpp:345
void Assign(const Handle &h)
Assign to handle h as its own copy.
Definition: Sacado_Handle.hpp:60
constexpr KOKKOS_INLINE_FUNCTION int length() const
Returns array length.
Definition: Sacado_Fad_Exp_StaticFixedStorage.hpp:132
const ConstT & constant_
The constant.
Definition: Sacado_Fad_Expression.hpp:154
~Vector()
Destructor.
Definition: Sacado_Fad_Vector.hpp:73
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, DMFad & >::type operator*=(const S &x)
Multiplication-assignment operator with constant right-hand-side.
Definition: Sacado_Fad_DMFad.hpp:187
A class for storing a contiguously allocated array of Fad objects. This is a general definition that ...
Definition: Sacado_Fad_Vector.hpp:55
void allocateCache(unsigned int d) const
Allocate coefficient cache.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:292
Definition: Sacado_mpl_quote.hpp:59
Handle(T *p)
Create new handle from pointer p.
Definition: Sacado_Handle.hpp:45
void reset()
Reset flop counters before starting a block of computations. */.
Definition: Sacado_ScalarFlopCounter.cpp:99
int availableSize() const
Returns number of derivative components that can be stored without reallocation.
Definition: Sacado_CacheFad_GeneralFad.hpp:209
const KOKKOS_INLINE_FUNCTION T & val() const
Returns value.
Definition: Sacado_Fad_Exp_StaticStorage.hpp:177
bool isActive2(int j) const
Return whether argument is active.
Definition: Sacado_ELRFad_GeneralFadExpr.hpp:139
Definition: Sacado_ELRCacheFad_Ops.hpp:643
Definition: Sacado_Tay_CacheTaylorOps.hpp:1770
void expand(int sz)
Expand derivative array to size sz.
Definition: Sacado_Fad_SFad.hpp:242
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, GeneralFad & >::type operator/=(const S &v)
Division-assignment operator with constant right-hand-side.
Definition: Sacado_Fad_GeneralFad.hpp:329
Teuchos::RCP< BaseT > rcp() const
Returns a reference counted pointer object.
Definition: Sacado_TemplateIterator.hpp:165
StaticStorage & operator=(const StaticStorage &x)
Assignment.
Definition: Sacado_Fad_StaticStorage.hpp:105
void cache() const
Cache values.
Definition: Sacado_Fad_SFad.hpp:258
SFad< value_type, Num > base_expr_type
Typename of base-expressions.
Definition: Sacado_Fad_SFad.hpp:121
KOKKOS_INLINE_FUNCTION ViewStorage(const ViewStorage &x)
Copy constructor.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:108
Definition: Sacado_LFad_LogicalSparseOps.hpp:146
KOKKOS_INLINE_FUNCTION SFad(const S &x, SACADO_ENABLE_VALUE_CTOR_DECL)
Constructor with supplied value x convertible to ValueT.
Definition: Sacado_Fad_SFad_tmpl.hpp:95
Definition: Sacado_CacheFad_Ops.hpp:467
Expr(const Expr &x)
Copy constructor.
Definition: Sacado_CacheFad_GeneralFadExpr.hpp:98
Definition: Sacado_LFad_LogicalSparseOps.hpp:140
Definition: Sacado_mpl_is_placeholder.hpp:43
GeneralFad(const GeneralFad &x)
Copy constructor.
Definition: Sacado_CacheFad_GeneralFad.hpp:129
~GeneralFad()=default
Destructor.
Definition: Sacado_trad2.hpp:155
Expr(const int sz, const T &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz and value x.
Definition: Sacado_ELRFad_GeneralFadExpr.hpp:84
Remove const from a type.
Definition: Sacado_Traits.hpp:417
Definition: Sacado_rad.hpp:485
Turn ViewStorage into a meta-function class usable with mpl::apply.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:70
Forward-mode AD class using dynamic memory allocation but no expression templates.
Definition: Sacado_Fad_SimpleFad.hpp:52
bool use_default_impl
Use custom or default implementation.
Definition: Sacado_Fad_LAPACK.hpp:132
Op< ExprT1, ExprT2 > op_
Operator.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:386
Base template specification for IsADType.
Definition: Sacado_Traits.hpp:337
unsigned int size() const
Return number of parameters in library.
Definition: Sacado_ParameterLibraryBase.hpp:109
void diff(const int ith, const int n)
Set Fad object as the ith independent variable.
Definition: Sacado_CacheFad_SFad.hpp:184
ParameterFamilyBase(const std::string &name, bool supports_ad, bool supports_analytic)
Constructor.
Definition: Sacado_ParameterFamilyBaseImp.hpp:34
ScalarType< value_type >::type scalar_type
Typename of scalar's (which may be different from value_type)
Definition: Sacado_Tay_Taylor.hpp:65
static KOKKOS_INLINE_FUNCTION void assign_divide_equal(DstType &dst, const SrcType &x)
Implementation of dst /= x.
Definition: Sacado_Fad_Exp_ExprAssign.hpp:215
const T coeff(int i) const
Returns degree i term with bounds checking.
Definition: Sacado_Tay_CacheTaylor.hpp:134
void zero()
Zero out derivative array.
Definition: Sacado_Fad_MemPoolStorage.hpp:307
CacheTaylor(const typename dummy< value_type, scalar_type >::type &x)
Constructor with supplied value x.
Definition: Sacado_Tay_CacheTaylor.hpp:263
LogicalSparseImp< ValT, LogT >::value_type value_type
Typename of values.
Definition: Sacado_LFad_LogicalSparse.hpp:549
Expr(const Expr< S > &x, typename mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, void * >::type=0)
Copy constructor from any Expression object.
Definition: Sacado_CacheFad_SFad.hpp:158
ViewStorage(const int sz, const T &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz (needed to satisfy interface)
Definition: Sacado_Fad_ViewStorage.hpp:84
ScalarParameterFamily(const std::string &name_, bool supports_ad_, bool supports_analytic_)
Constructor.
Definition: Sacado_ScalarParameterFamily.hpp:54
Definition: Sacado_ELRFad_Ops.hpp:863
KOKKOS_INLINE_FUNCTION ~ViewStorage()
Destructor.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:113
Definition: Sacado_mpl_has_type.hpp:49
BaseExpr< GeneralFad< T, Storage > >::type base_expr_type
Typename of base-expressions.
Definition: Sacado_ELRFad_GeneralFadExpr.hpp:57
TemplateIterator< BaseT > iterator
Typedef for iterator.
Definition: Sacado_TemplateManager.hpp:96
Turn DMFad into a meta-function class usable with mpl::apply.
Definition: Sacado_Fad_DMFad.hpp:88
Definition: Sacado_mpl_quote.hpp:56
Definition: Sacado_mpl_disable_if.hpp:38
Definition: Sacado_mpl_placeholders.hpp:74
T dx(int i) const
Returns derivative component i with bounds checking.
Definition: Sacado_Fad_ViewStorage.hpp:174
bool updateValue() const
Return whether this Fad object has an updated value.
Definition: Sacado_ELRCacheFad_GeneralFad.hpp:216
Determine whether a given type is a view.
Definition: Sacado_Traits.hpp:83
void getTangents(int i, value_type dots[]) const
Rturn tangent component i of arguments.
Definition: Sacado_ELRCacheFad_Expression.hpp:155
GeneralFad()=default
Default constructor.
ExprType::scalar_type scalar_type
Typename of scalar's (which may be different from value_type)
Definition: Sacado_Fad_ViewFad_tmpl.hpp:73
LogicalSparse(const S &x, SACADO_ENABLE_VALUE_CTOR_DECL)
Constructor with supplied value x of type ValueT.
Definition: Sacado_LFad_LogicalSparse.hpp:641
void resize(int sz)
Resize derivative array to length sz.
Definition: Sacado_ELRFad_SFad.hpp:219
GeneralFad(const int sz, const T &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz and value x.
Definition: Sacado_CacheFad_GeneralFad.hpp:108
GeneralFad< T, Storage >::scalar_type scalar_type
Typename of scalar's (which may be different from value_type)
Definition: Sacado_ELRFad_GeneralFadExpr.hpp:54
Definition: Sacado_Fad_Ops.hpp:188
MemPoolStorage< ValueT > StorageType
Base classes.
Definition: Sacado_Fad_DMFad.hpp:73
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, DMFad & >::type operator=(const S &v)
Assignment operator with constant right-hand-side.
Definition: Sacado_Fad_DMFad.hpp:144
Definition: Sacado_trad.hpp:269
const value_type * getDx(int j) const
Get dx array.
Definition: Sacado_ELRFad_SFad.hpp:347
Definition: Sacado_LFad_LogicalSparseOps.hpp:161
const T & val() const
Returns value.
Definition: Sacado_ELRFad_SFad.hpp:271
std::map< std::string, Teuchos::RCP< EntryBase > > EvalMap
Map of entries for a parameter name.
Definition: Sacado_ParameterFamilyBase.hpp:103
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, Expr & >::type operator=(const S &v)
Assignment operator with constant right-hand-side.
Definition: Sacado_ELRCacheFad_SFad.hpp:361
iterator end()
Iterator pointing at end of library.
Definition: Sacado_ParameterLibraryBase.hpp:118
RemoveConst< T >::type value_type
Typename of values.
Definition: Sacado_ELRFad_GeneralFad.hpp:78
const ConstT & constant_
The constant.
Definition: Sacado_CacheFad_Expression.hpp:156
Determine whether a given type is an expression.
Definition: Sacado_LFad_LogicalSparse.hpp:68
KOKKOS_INLINE_FUNCTION ~SFad()
Destructor.
Definition: Sacado_Fad_SFad_tmpl.hpp:131
Definition: Sacado_Fad_Exp_MathFunctions.hpp:68
~DMFad()
Destructor.
Definition: Sacado_Fad_DMFad.hpp:140
mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, Expr & >::type operator=(const Expr< S > &x)
Assignment operator with any expression right-hand-side.
Definition: Sacado_Fad_SFad.hpp:366
ConstT base_expr_type
Typename of base-expressions.
Definition: Sacado_Fad_Expression.hpp:137
const T & val() const
Returns value.
Definition: Sacado_Fad_StaticStorage.hpp:173
ExprT1::value_type value_type
Typename of the second argument value.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:345
Definition: Sacado_tradvec.hpp:173
Definition: Sacado_trad2.hpp:157
GeneralFad & operator=(const GeneralFad &x)
Assignment with GeneralFad right-hand-side.
Definition: Sacado_ELRFad_GeneralFad.hpp:282
ConstT value_type
Typename of argument values.
Definition: Sacado_CacheFad_Expression.hpp:117
Definition: Sacado_Fad_Exp_Ops.hpp:588
Definition: Sacado_Fad_Ops.hpp:690
~StaticFixedStorage()=default
Destructor.
Class to manage memory pools for different Fad dimensions.
Definition: Sacado_Fad_MemPoolManager.hpp:45
ScalarParameterLibrary()
Default constructor.
Definition: Sacado_ScalarParameterLibrary.hpp:58
const U * dx() const
Returns derivative array.
Definition: Sacado_Fad_VectorDynamicStorage.hpp:246
value_type coeff(unsigned int i) const
Return degree i term of expression.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:245
void resize(int d, bool keep_coeffs)
Resize polynomial to degree d.
Definition: Sacado_Tay_TaylorImp.hpp:169
int size() const
Returns number of derivative components.
Definition: Sacado_CacheFad_SFad.hpp:267
Definition: Sacado_Tay_CacheTaylorOps.hpp:1418
Definition: Sacado_mpl_quote.hpp:45
AbstractScalarParameterEntry()
Default contructor.
Definition: Sacado_ScalarParameterEntry.hpp:68
OrdinalType workspace_size
Size of static workspace.
Definition: Sacado_Fad_BLAS.hpp:170
Definition: Sacado_Tay_CacheTaylorOps.hpp:1230
void TRMV(Teuchos::EUplo uplo, Teuchos::ETransp trans, Teuchos::EDiag diag, const OrdinalType n, const A_type *A, const OrdinalType lda, FadType *x, const OrdinalType incx) const
Performs the matrix-std::vector operation: x <- A*x or x <- A'*x where A is a unit/non-unit n by n ...
Definition: Sacado_Fad_BLASImp.hpp:898
MemPoolStorage(const T &x)
Constructor with value.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:203
Definition: Sacado_ELRCacheFad_Ops.hpp:599
KOKKOS_INLINE_FUNCTION void setMemory(int sz, T *x, U *dx_p, int stride)
Set value/derivative array memory.
Definition: Sacado_Fad_Exp_VectorDynamicStorage.hpp:224
Definition: Sacado_mpl_apply_wrap.hpp:93
Definition: Sacado_trad.hpp:180
Expr(const Expr< S > &x, typename mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, void * >::type=0)
Copy constructor from any Expression object.
Definition: Sacado_ELRCacheFad_GeneralFadExpr.hpp:108
Definition: Sacado_tradvec.hpp:126
Expr(const Expr &x)
Copy constructor.
Definition: Sacado_ELRCacheFad_SFad.hpp:156
Definition: Sacado_LFad_LogicalSparseOps.hpp:443
StaticStorage(const StaticStorage &x)
Copy constructor.
Definition: Sacado_Fad_StaticStorage.hpp:92
KOKKOS_INLINE_FUNCTION DynamicStorage(const T &x)
Constructor with value.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:72
const T & dx(int i) const
Returns derivative component i with bounds checking.
Definition: Sacado_ELRCacheFad_SFad.hpp:315
ScalarType< value_type >::type scalar_type
Typename of scalar's (which may be different from ConstT)
Definition: Sacado_ELRCacheFad_Expression.hpp:120
ExprType::scalar_type scalar_type
Typename of scalar's (which may be different from T)
Definition: Sacado_Fad_DVFad.hpp:81
Class to provide a centralized library for setting/retrieving numerical parameter values.
Definition: Sacado_ParameterLibraryBase.hpp:50
const KOKKOS_INLINE_FUNCTION U * dx() const
Returns derivative array.
Definition: Sacado_Fad_Exp_DynamicStorage.hpp:201
unsigned int degree() const
Return degree of polynomial.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:360
Expr()
Default constructor.
Definition: Sacado_CacheFad_SFad.hpp:99
The default builder class for building objects for each ScalarT.
Definition: Sacado_TemplateManager.hpp:102
RemoveConst< T >::type value_type
Typename of values.
Definition: Sacado_CacheFad_SFad.hpp:84
value_type coeff(unsigned int i) const
Return degree i term of expression.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:72
Definition: Sacado_Fad_Exp_MathFunctions.hpp:125
mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, bool >::type isEqualTo(const Expr< S > &x) const
Returns whether two Fad objects have the same values.
Definition: Sacado_CacheFad_GeneralFad.hpp:188
Forward-mode AD class templated on the storage for the derivative array.
Definition: Sacado_Fad_GeneralFad.hpp:85
GeneralFad(const int sz, const int i, const T &x)
Constructor with size sz, index i, and value x.
Definition: Sacado_ELRFad_GeneralFad.hpp:116
Turn ADvar into a meta-function class usable with mpl::apply.
Definition: Sacado_tradvec.hpp:632
KOKKOS_INLINE_FUNCTION VectorDynamicStorage(const int sz, const T &x, const DerivInit zero_out)
Constructor with size sz.
Definition: Sacado_Fad_Exp_VectorDynamicStorage.hpp:82
T dx(int i) const
Returns derivative component i with bounds checking.
Definition: Sacado_Fad_StaticStorage.hpp:185
Constant expression template.
Definition: Sacado_ELRFad_Expression.hpp:112
Definition: Sacado_trad2.hpp:134
Definition: Sacado_mpl_quote.hpp:51
Wrapper for a generic expression template.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:45
KOKKOS_INLINE_FUNCTION void resizeAndZero(int sz)
Resize the derivative array to sz.
Definition: Sacado_Fad_Exp_VectorDynamicStorage.hpp:176
static T * get_and_fill(const T *src, int sz, MemPool *pool)
Get memory for new array of length sz and fill with entries from src.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:81
KOKKOS_INLINE_FUNCTION int length() const
Returns array length.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:262
void computePartials(const value_type &bar, value_type partials[]) const
Return partials w.r.t. arguments.
Definition: Sacado_ELRFad_Expression.hpp:146
Definition: Sacado_LFad_LogicalSparseOps.hpp:131
Forward-mode AD class using dynamic memory allocation.
Definition: Sacado_Tay_CacheTaylor.hpp:50
ScalarType< value_type >::type scalar_type
Typename of scalar's (which may be different from T)
Definition: Sacado_ScalarFlopCounter.hpp:207
const T & val() const
Returns value.
Definition: Sacado_Fad_DynamicStorage.hpp:189
Definition: Sacado_CacheFad_Ops.hpp:483
Definition: Sacado_CacheFad_Ops.hpp:431
bool isActive() const
Return whether argument is active.
Definition: Sacado_ELRFad_GeneralFadExpr.hpp:135
void zero()
Zero out derivative array.
Definition: Sacado_Fad_ViewStorage.hpp:156
Definition: Sacado_Fad_Exp_MathFunctions.hpp:66
Derivatives are stored row-wise (strided)
Definition: Sacado_Fad_Vector.hpp:44
ArrayTraits< OrdinalType, FadType > arrayTraits
ArrayTraits for packing/unpacking value/derivative arrays.
Definition: Sacado_Fad_LAPACK.hpp:126
bool isPassive() const
Returns true if derivative array is empty.
Definition: Sacado_LFad_LogicalSparse.hpp:200
ConstExpr(const ConstT &constant)
Constructor.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:107
const ConstT & val() const
Return value of operation.
Definition: Sacado_Fad_Expression.hpp:145
Definition: Sacado_trad2.hpp:147
static void copy(const T *src, T *dest, int sz)
Copy array from src to dest of length sz.
Definition: Sacado_DynamicArrayTraits.hpp:323
Definition: Sacado_trad2.hpp:144
~ViewStorage()
Destructor.
Definition: Sacado_Fad_ViewStorage.hpp:105
OrdinalType IAMAX(const OrdinalType n, const FadType *x, const OrdinalType incx) const
Return the index of the element of x with the maximum magnitude.
Definition: Sacado_Fad_BLAS.hpp:257
Expr()
Default constructor.
Definition: Sacado_Fad_SFad.hpp:130
Expr(const int sz, const int i, const T &x)
Constructor with size sz, index i, and value x.
Definition: Sacado_ELRCacheFad_GeneralFadExpr.hpp:92
Definition: Sacado_Tay_CacheTaylorOps.hpp:1346
T * get()
Return pointer to underlying data.
Definition: Sacado_Handle.hpp:54
bool hasFastAccess() const
Return if operation has fast access.
Definition: Sacado_CacheFad_Expression.hpp:135
Definition: Sacado_mpl_lambda.hpp:43
bool isActive() const
Return whether argument is active.
Definition: Sacado_ELRFad_Expression.hpp:161
Expr(const int sz, const T &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz and value x.
Definition: Sacado_ELRFad_SFad.hpp:124
KOKKOS_INLINE_FUNCTION void zero()
Zero out derivative array.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:164
int degree() const
Returns degree of polynomial.
Definition: Sacado_Tay_CacheTaylor.hpp:125
KOKKOS_INLINE_FUNCTION GeneralFad(const int sz, const value_type &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz.
Definition: Sacado_Fad_Exp_GeneralFad.hpp:106
Definition: Sacado_Fad_Exp_MathFunctions.hpp:74
Extender< Storage > ExtenderType
Extender type.
Definition: Sacado_Fad_Exp_GeneralFad.hpp:65
~Expr()
Destructor.
Definition: Sacado_CacheFad_GeneralFadExpr.hpp:109
void Fad_GEMV(Teuchos::ETransp trans, const OrdinalType m, const OrdinalType n, const alpha_type &alpha, const OrdinalType n_alpha_dot, const alpha_type *alpha_dot, const A_type *A, const OrdinalType lda, const OrdinalType n_A_dot, const A_type *A_dot, const OrdinalType lda_dot, const x_type *x, const OrdinalType incx, const OrdinalType n_x_dot, const x_type *x_dot, const OrdinalType incx_dot, const beta_type &beta, const OrdinalType n_beta_dot, const beta_type *beta_dot, ValueType *y, const OrdinalType incy, const OrdinalType n_y_dot, ValueType *y_dot, const OrdinalType incy_dot, const OrdinalType n_dot) const
Implementation of GEMV.
Definition: Sacado_Fad_BLASImp.hpp:1348
static void destroy_and_release(T *m, int sz, MemPool *pool)
Destroy array elements and release memory.
Definition: Sacado_Fad_MemPoolStorage.hpp:123
KOKKOS_INLINE_FUNCTION ~ViewFad()
Destructor.
Definition: Sacado_Fad_ViewFad_tmpl.hpp:118
virtual ~ParameterLibraryBase()
Destructor.
Definition: Sacado_ParameterLibraryBaseImp.hpp:40
constexpr KOKKOS_INLINE_FUNCTION int size() const
Returns number of derivative components.
Definition: Sacado_Fad_Exp_ViewStorage.hpp:132
static KOKKOS_INLINE_FUNCTION void assign_plus_equal(DstType &dst, const SrcType &x)
Implementation of dst += x.
Definition: Sacado_Fad_Exp_ExprAssign.hpp:102
T dx_[Num]
Derivative array.
Definition: Sacado_Fad_StaticStorage.hpp:201
value_type fastAccessDx(int i) const
Return derivative component i of operation.
Definition: Sacado_CacheFad_Expression.hpp:151
Definition: Sacado_ELRFad_Ops.hpp:808
Wrapper for a generic expression template.
Definition: Sacado_Fad_Expression.hpp:83
Entry(const Teuchos::RCP< FamilyType > &f, BaseValueType bv)
Constructor.
Definition: Sacado_ParameterVectorBase.hpp:61
SACADO_ENABLE_EXPR_FUNC(bool) isEqualTo(const Expr< S > &x) const
Returns whether two Fad objects have the same values.
Definition: Sacado_LFad_LogicalSparse.hpp:180
void Fad_DOT(const OrdinalType n, const x_type *x, const OrdinalType incx, const OrdinalType n_x_dot, const x_type *x_dot, const OrdinalType incx_dot, const y_type *y, const OrdinalType incy, const OrdinalType n_y_dot, const y_type *y_dot, const OrdinalType incy_dot, ValueType &z, const OrdinalType n_z_dot, ValueType *zdot) const
Implementation of DOT.
Definition: Sacado_Fad_BLASImp.hpp:1294
Expr(const int sz, const int i, const T &x)
Constructor with size sz, index i, and value x.
Definition: Sacado_Fad_GeneralFadExpr.hpp:88
TemplateIterator & operator++()
Prefix ++.
Definition: Sacado_TemplateIterator.hpp:84
Definition: Sacado_Fad_Exp_MathFunctions.hpp:57
Definition: Sacado_Fad_Ops.hpp:654
const T & val() const
Returns value.
Definition: Sacado_Fad_MemPoolStorage.hpp:312
Storage StorageType
Storage type.
Definition: Sacado_Fad_Exp_GeneralFad.hpp:59
DVFad(const S &x, typename Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, void * >::type=0)
Constructor with supplied value x convertible to ValueT.
Definition: Sacado_Fad_DVFad.hpp:109
Definition: Sacado_TemplateIterator.hpp:117
ConstT base_expr_type
Typename of base-expressions.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:104
ParameterLibraryBase< ScalarParameterFamily< EvalTypeTraits >, ScalarParameterEntry< _, EvalTypeTraits > > BaseT
Typename synonym of base class.
Definition: Sacado_ScalarParameterLibrary.hpp:55
const KOKKOS_INLINE_FUNCTION volatile derived_type & derived() const volatile
Return derived object.
Definition: Sacado_Fad_Exp_Expression.hpp:81
void GEMM(Teuchos::ETransp transa, Teuchos::ETransp transb, const OrdinalType m, const OrdinalType n, const OrdinalType k, const alpha_type &alpha, const A_type *A, const OrdinalType lda, const B_type *B, const OrdinalType ldb, const beta_type &beta, FadType *C, const OrdinalType ldc) const
Performs the matrix-matrix operation: C <- alpha*op(A)*op(B)+beta*C where op(A) is either A or A',...
Definition: Sacado_Fad_BLASImp.hpp:1018
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, DMFad & >::type operator-=(const S &x)
Subtraction-assignment operator with constant right-hand-side.
Definition: Sacado_Fad_DMFad.hpp:179
~Expr()
Destructor.
Definition: Sacado_Fad_SFad.hpp:203
bool isPassive() const
Returns true if derivative array is empty.
Definition: Sacado_ELRFad_GeneralFad.hpp:254
const std::string name
Family name.
Definition: Sacado_ParameterFamilyBase.hpp:128
ScalarType< ValueT >::type ScalarT
Typename of scalar's (which may be different from ValueT)
Definition: Sacado_Fad_SLFad_tmpl.hpp:74
T & fastAccessCoeff(int i)
Returns degree i term without bounds checking.
Definition: Sacado_Tay_CacheTaylor.hpp:142
Expr(const S &x, typename Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, void * >::type=0)
Constructor with supplied value x.
Definition: Sacado_ELRCacheFad_GeneralFadExpr.hpp:74
User inteface class for computing the logical sparsity pattern of a derivative via forward-mode AD.
Definition: Sacado_LFad_LogicalSparse.hpp:78
Definition: Sacado_Tay_CacheTaylorOps.hpp:561
unsigned int degree() const
Return degree of polynomial.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:235
iterator end()
Iterator pointing at end of vector.
Definition: Sacado_ParameterVectorBase.hpp:115
const T & dx(int i) const
Returns derivative component i with bounds checking.
Definition: Sacado_CacheFad_SFad.hpp:294
T & fastAccessDx(int i)
Returns derivative component i without bounds checking.
Definition: Sacado_ELRCacheFad_SFad.hpp:319
double totalFlopCount
Total flop count.
Definition: Sacado_ScalarFlopCounter.hpp:134
Definition: Sacado_trad.hpp:215
Definition: Sacado_ScalarParameterEntry.hpp:59
Definition: Sacado_Fad_ViewFadTraits.hpp:65
Definition: Sacado_mpl_placeholders.hpp:44
Definition: Sacado_mpl_begin.hpp:39
Definition: Sacado_mpl_apply_wrap.hpp:64
Definition: Kokkos_LayoutNatural.hpp:42
const value_type * getDx(int j) const
Get dx array.
Definition: Sacado_ELRCacheFad_GeneralFadExpr.hpp:146
~Expr()
Destructor.
Definition: Sacado_Fad_GeneralFadExpr.hpp:109
void cache() const
Cache values.
Definition: Sacado_Fad_GeneralFad.hpp:192
void expand(int sz)
Expand derivative array to size sz.
Definition: Sacado_Fad_Exp_MemPoolStorage.hpp:302
KOKKOS_INLINE_FUNCTION SLFad(const SLFad &x)
Copy constructor.
Definition: Sacado_Fad_SLFad_tmpl.hpp:133
Definition: Sacado_mpl_is_convertible.hpp:45
T value_type
Typename of values.
Definition: Sacado_Tay_CacheTaylor.hpp:64
const KOKKOS_INLINE_FUNCTION T * dx() const
Returns derivative array.
Definition: Sacado_Fad_Exp_StaticFixedStorage.hpp:182
void TRMM(Teuchos::ESide side, Teuchos::EUplo uplo, Teuchos::ETransp transa, Teuchos::EDiag diag, const OrdinalType m, const OrdinalType n, const alpha_type &alpha, const A_type *A, const OrdinalType lda, FadType *B, const OrdinalType ldb) const
Performs the matrix-matrix operation: C <- alpha*op(A)*B+beta*C or C <- alpha*B*op(A)+beta*C where op...
Definition: Sacado_Fad_BLASImp.hpp:1174
void allocateCache(unsigned int d) const
Allocate coefficient cache.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:110
Definition: Sacado_Fad_Exp_MathFunctions.hpp:60
void setIsConstant(bool is_const)
Set whether variable is constant.
Definition: Sacado_ELRCacheFad_SFad.hpp:307
Sacado::mpl::enable_if< Sacado::mpl::is_convertible< S, value_type >, GeneralFad & >::type operator-=(const S &v)
Subtraction-assignment operator with constant right-hand-side.
Definition: Sacado_Fad_GeneralFad.hpp:310
Teuchos::BLAS< OrdinalType, ValueType > blas
BLAS for values.
Definition: Sacado_Fad_BLAS.hpp:372
ExprT::base_expr_type base_expr_type
Typename of base-expressions.
Definition: Sacado_Tay_CacheTaylorExpr.hpp:154
double summaryFlopCounts[NUM_SUMMARY_OPS]
Summary category flop counts.
Definition: Sacado_ScalarFlopCounter.hpp:131
static ScalarParameterLibrary & getInstance()
Returns a parameter library (singleton object).
Definition: Sacado_ScalarParameterLibrary.hpp:88
A tag for specializing Expr for SFad expressions.
Definition: Sacado_ELRFad_SFad.hpp:67
Forward-mode AD class using dynamic memory allocation and expression templates.
Definition: Sacado_Fad_DMFad.hpp:68
Meta-function for determining nesting with an expression.
Definition: Sacado_CacheFad_Expression.hpp:86
Definition: Sacado_CacheFad_Ops.hpp:447
Sacado::Fad::DVFad< ValueType > FadType
Synonym for Fad type.
Definition: Sacado_Fad_Vector.hpp:121
bool hasType() const
Determine if family has an entry for the given type EvalType.
Definition: Sacado_ParameterFamilyBaseImp.hpp:78
T getTangent(int i) const
Return tangent component i of argument Arg.
Definition: Sacado_ELRCacheFad_GeneralFadExpr.hpp:142
Definition: Sacado_Fad_Ops.hpp:678
CacheTaylor(int d, const T &x)
Constructor with degree d and value x.
Definition: Sacado_Tay_CacheTaylor.hpp:270
KOKKOS_INLINE_FUNCTION void resizeAndZero(int sz)
Resize the derivative array to sz.
Definition: Sacado_Fad_Exp_StaticFixedStorage.hpp:150
T coeff(int i)
Returns degree i term with bounds checking.
Definition: Sacado_Tay_CacheTaylor.hpp:138
mpl::enable_if_c< mpl::is_convertible< typename Expr< S >::value_type, value_type >::value &&ExprLevel< typename Expr< S >::value_type >::value==ExprLevel< value_type >::value, bool >::type isEqualTo(const Expr< S > &x) const
Returns whether two Fad objects have the same values.
Definition: Sacado_ELRFad_SFad.hpp:253
T dx_[Num]
Derivative array.
Definition: Sacado_Fad_Exp_StaticStorage.hpp:205
bool isLinear() const
Return whether expression is linear.
Definition: Sacado_ELRFad_GeneralFadExpr.hpp:143
bool hasFastAccess(int d) const
Returns true if polynomial has degree >= d.
Definition: Sacado_Tay_Taylor.hpp:178