Stokhos
Development
|
Public Member Functions | |
template<class ST , class SL , class SD , class SM > | |
KOKKOS_INLINE_FUNCTION | ViewAssignment (typename View< ST, SL, SD, SM, ViewPCEContiguous >::array_type &dst, const View< ST, SL, SD, SM, ViewPCEContiguous > &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, ViewPCEContiguous > &src, typename enable_if< ((is_same< typename View< DT, DL, DD, DM, ViewDefault >::value_type, typename View< ST, SL, SD, SM, ViewPCEContiguous >::intrinsic_scalar_type >::value||is_same< typename View< DT, DL, DD, DM, ViewDefault >::non_const_value_type, typename View< ST, SL, SD, SM, ViewPCEContiguous >::intrinsic_scalar_type >::value)&&is_same< typename View< DT, DL, DD, DM, ViewDefault >::array_layout, typename View< ST, SL, SD, SM, ViewPCEContiguous >::array_layout >::value &&(unsigned(View< DT, DL, DD, DM, ViewDefault >::rank)==unsigned(View< ST, SL, SD, SM, ViewPCEContiguous >::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... | |
|
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,ViewPCEContiguous>::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.