30 #ifndef SACADO_FAD_EXP_VIEWFAD_HPP
31 #define SACADO_FAD_EXP_VIEWFAD_HPP
36 #if defined(HAVE_SACADO_KOKKOS)
37 #include "Kokkos_Atomic.hpp"
38 #include "impl/Kokkos_Error.hpp"
46 template <
typename T,
unsigned static_length,
unsigned static_str
ide,
typename U>
50 template <
typename T,
unsigned sl,
unsigned ss,
typename U>
58 using view_fad_type::view_fad_type;
75 template<
class S,
unsigned length,
unsigned str
ide >
76 struct ViewFadType< Fad::Exp::GeneralFad<S>, length, stride > {
84 template<
class S,
unsigned length,
unsigned str
ide >
85 struct ViewFadType< const Fad::Exp::GeneralFad<S>, length, stride > {
90 template <
typename T,
unsigned static_length,
unsigned static_str
ide,
typename U>
91 struct BaseExprType< Fad::Exp::GeneralFad< Fad::Exp::ViewStorage<T,static_length,static_stride,U> > > {
100 template <
typename ValueT,
unsigned Size,
unsigned Str
ide,
typename Base>
109 template <
typename ValueT,
unsigned Size,
unsigned Str
ide,
typename Base>
116 #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.