10 #ifndef SACADO_FAD_EXP_VIEWFAD_HPP
11 #define SACADO_FAD_EXP_VIEWFAD_HPP
16 #if defined(HAVE_SACADO_KOKKOS)
17 #include "Kokkos_Atomic.hpp"
18 #include "impl/Kokkos_Error.hpp"
26 template <
typename T,
unsigned static_length,
unsigned static_str
ide,
typename U>
30 template <
typename T,
unsigned sl,
unsigned ss,
typename U>
38 using view_fad_type::view_fad_type;
55 template<
class S,
unsigned length,
unsigned str
ide >
56 struct ViewFadType< Fad::Exp::GeneralFad<S>, length, stride > {
64 template<
class S,
unsigned length,
unsigned str
ide >
65 struct ViewFadType< const Fad::Exp::GeneralFad<S>, length, stride > {
70 template <
typename T,
unsigned static_length,
unsigned static_str
ide,
typename U>
71 struct BaseExprType< Fad::Exp::GeneralFad< Fad::Exp::ViewStorage<T,static_length,static_stride,U> > > {
80 template <
typename ValueT,
unsigned Size,
unsigned Str
ide,
typename Base>
89 template <
typename ValueT,
unsigned Size,
unsigned Str
ide,
typename Base>
96 #endif // SACADO_FAD_EXP_VIEWFAD_HPP
SACADO_INLINE_FUNCTION view_fad_type & operator*()
Base template specification for ScalarType.
Forward-mode AD class templated on the storage for the derivative array.
Get the base Fad type from a view/expression.
SACADO_INLINE_FUNCTION view_fad_type * operator->()
ViewFad< T, sl, ss, U > view_fad_type
Fad::Exp::ViewFad< const typename S::value_type, length, stride, Fad::Exp::GeneralFad< S > > type
Fad::Exp::ViewFad< typename S::value_type, length, stride, Fad::Exp::GeneralFad< S > > type
GeneralFad< ViewStorage< T, static_length, static_stride, U > > ViewFad
#define SACADO_INLINE_FUNCTION
Base template specification for ValueType.
ScalarType< ValueT >::type type
Get view type for any Fad type.