thrust::device_pointer_cast
Defined in thrust/device_ptr.h
-
template<typename T>
device_ptr<T> thrust::device_pointer_cast(device_ptr<T> const &dptr) Create a
device_ptr
from anotherdevice_ptr
.- Template Parameters
T – Any type.
- Parameters
dptr – A
device_ptr
to aT
.