SyTen

◆ CudaDynArray() [5/5]

template<typename Type >
syten::Cuda::CudaDynArray< Type >::CudaDynArray ( DynArray< Type > const &  hm)
inline

Conversion ctor from a host-based DynArray of the same type.

Copies the data to the device (or host memory, if compiling without SYTEN_USE_CUDA).

References syten::Cuda::CudaDynArray< Type >::alloc(), syten::DynArray< Type >::begin(), syten::Cuda::copy(), syten::Cuda::CudaDynArray< Type >::data, and syten::Cuda::CudaDynArray< Type >::length.

+ Here is the call graph for this function: