|
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.