Go to the documentation of this file.
18 #ifndef viskores_cont_ArrayCopyDevice_h
19 #define viskores_cont_ArrayCopyDevice_h
41 template <
typename T1,
typename S1,
typename T2,
typename S2>
52 template <
typename T,
typename S>
82 template <
typename InValueType,
typename InStorage,
typename OutValueType,
typename OutStorage>
89 using SameTypes = std::is_same<InArrayType, OutArrayType>;
90 using IsWritable = viskores::cont::internal::IsWritableArrayHandle<OutArrayType>;
102 "Cannot copy to a read-only array with a different "
103 "type than the source.");
106 detail::ArrayCopyImpl(source, destination);
114 #endif //viskores_cont_ArrayCopyDevice_h
Manages an array-worth of data.
Definition: ArrayHandle.h:313
static bool Copy(viskores::cont::DeviceAdapterId devId, const viskores::cont::ArrayHandle< T, CIn > &input, viskores::cont::ArrayHandle< U, COut > &output)
Definition: Algorithm.h:422
#define VISKORES_CONT
Definition: ExportMacros.h:65
Groups connected points that have the same field value.
Definition: Atomic.h:27
#define VISKORES_STATIC_ASSERT_MSG(condition, message)
Definition: StaticAssert.h:26
void ArrayCopyDevice(const viskores::cont::ArrayHandle< InValueType, InStorage > &source, viskores::cont::ArrayHandle< OutValueType, OutStorage > &destination)
Does a deep copy from one array to another array.
Definition: ArrayCopyDevice.h:83
void DeepCopyFrom(const viskores::cont::ArrayHandle< ValueType, StorageTag > &source) const
Deep copies the data in the array.
Definition: ArrayHandle.h:723
#define VISKORES_STATIC_ASSERT(condition)
Definition: StaticAssert.h:24