Stokhos  Development
Public Member Functions | List of all members
Kokkos::Impl::ViewAssignment< ViewDefault, ViewMPVectorContiguous, void > Struct Template Reference

Public Member Functions

template<class ST , class SL , class SD , class SM >
KOKKOS_INLINE_FUNCTION ViewAssignment (typename View< ST, SL, SD, SM, ViewMPVectorContiguous >::array_type &dst, const View< ST, SL, SD, SM, ViewMPVectorContiguous > &src)
 Compatible value and shape.
 
template<class DT , class DL , class DD , class DM , class ST , class SL , class SD , class SM >
KOKKOS_INLINE_FUNCTION ViewAssignment (View< DT, DL, DD, DM, ViewDefault > &dst, const View< ST, SL, SD, SM, ViewMPVectorContiguous > &src, typename enable_if< ((is_same< typename View< DT, DL, DD, DM, ViewDefault >::value_type, typename View< ST, SL, SD, SM, ViewMPVectorContiguous >::intrinsic_scalar_type >::value||is_same< typename View< DT, DL, DD, DM, ViewDefault >::non_const_value_type, typename View< ST, SL, SD, SM, ViewMPVectorContiguous >::intrinsic_scalar_type >::value)&&is_same< typename View< DT, DL, DD, DM, ViewDefault >::array_layout, typename View< ST, SL, SD, SM, ViewMPVectorContiguous >::array_layout >::value &&(unsigned(View< DT, DL, DD, DM, ViewDefault >::rank)==unsigned(View< ST, SL, SD, SM, ViewMPVectorContiguous >::rank))) >::type *=0)
 Assign to flattened view where Sacado dimension is combined with most adjacent dimension. Must have same instrinsic value_type, layout, and rank (add 1 to rank for sacado dimension, remove 1 for flattening). More...
 

Constructor & Destructor Documentation

template<class DT , class DL , class DD , class DM , class ST , class SL , class SD , class SM >
KOKKOS_INLINE_FUNCTION Kokkos::Impl::ViewAssignment< ViewDefault, ViewMPVectorContiguous, void >::ViewAssignment ( View< DT, DL, DD, DM, ViewDefault > &  dst,
const View< ST, SL, SD, SM, ViewMPVectorContiguous > &  src,
typename enable_if< ((is_same< typename View< DT, DL, DD, DM, ViewDefault >::value_type, typename View< ST, SL, SD, SM, ViewMPVectorContiguous >::intrinsic_scalar_type >::value||is_same< typename View< DT, DL, DD, DM, ViewDefault >::non_const_value_type, typename View< ST, SL, SD, SM, ViewMPVectorContiguous >::intrinsic_scalar_type >::value)&&is_same< typename View< DT, DL, DD, DM, ViewDefault >::array_layout, typename View< ST, SL, SD, SM, ViewMPVectorContiguous >::array_layout >::value &&(unsigned(View< DT, DL, DD, DM, ViewDefault >::rank)==unsigned(View< ST, SL, SD, SM, ViewMPVectorContiguous >::rank))) >::type *  = 0 
)
inline

Assign to flattened view where Sacado dimension is combined with most adjacent dimension. Must have same instrinsic value_type, layout, and rank (add 1 to rank for sacado dimension, remove 1 for flattening).

Would like to just use anything that is assignable to the flat_array_type, e.g.,

typename enable_if< ( Impl::ViewAssignable< View<DT,DL,DD,DM,ViewDefault>, typename View<ST,SL,SD,SM,ViewMPVectorContiguous>::flat_array_type >value ) >::type * = 0)

except this conflicts with the overload above for array_type (since ViewAssignable is loose on the ranks and array_type is actually assignable to flat_array_type). And we can't use flat_array_type as there are use cases where the view is the same as flat_array_type but with different memory traits.


The documentation for this struct was generated from the following file: