CUB
|
DeviceAdjacentDifference provides device-wide, parallel operations for computing the differences of adjacent elements residing within device-accessible memory.
*(i - 1)
of input sequence from current element *i
. Methods named SubtractRight
subtract current element *i
from the right one *(i + 1)
: *(result + (i - first))
without modification.*(result + (i - first))
without modification.DeviceAdjacentDifference
to compute the left difference between adjacent elements.Static Public Methods | |
template<typename InputIteratorT , typename OutputIteratorT , typename DifferenceOpT = cub::Difference> | |
static CUB_RUNTIME_FUNCTION cudaError_t | SubtractLeftCopy (void *d_temp_storage, std::size_t &temp_storage_bytes, InputIteratorT d_input, OutputIteratorT d_output, std::size_t num_items, DifferenceOpT difference_op={}, cudaStream_t stream=0, bool debug_synchronous=false) |
Subtracts the left element of each adjacent pair of elements residing within device-accessible memory. More... | |
template<typename RandomAccessIteratorT , typename DifferenceOpT = cub::Difference> | |
static CUB_RUNTIME_FUNCTION cudaError_t | SubtractLeft (void *d_temp_storage, std::size_t &temp_storage_bytes, RandomAccessIteratorT d_input, std::size_t num_items, DifferenceOpT difference_op={}, cudaStream_t stream=0, bool debug_synchronous=false) |
Subtracts the left element of each adjacent pair of elements residing within device-accessible memory. More... | |
template<typename InputIteratorT , typename OutputIteratorT , typename DifferenceOpT = cub::Difference> | |
static CUB_RUNTIME_FUNCTION cudaError_t | SubtractRightCopy (void *d_temp_storage, std::size_t &temp_storage_bytes, InputIteratorT d_input, OutputIteratorT d_output, std::size_t num_items, DifferenceOpT difference_op={}, cudaStream_t stream=0, bool debug_synchronous=false) |
Subtracts the right element of each adjacent pair of elements residing within device-accessible memory. More... | |
template<typename RandomAccessIteratorT , typename DifferenceOpT = cub::Difference> | |
static CUB_RUNTIME_FUNCTION cudaError_t | SubtractRight (void *d_temp_storage, std::size_t &temp_storage_bytes, RandomAccessIteratorT d_input, std::size_t num_items, DifferenceOpT difference_op={}, cudaStream_t stream=0, bool debug_synchronous=false) |
Subtracts the right element of each adjacent pair of elements residing within device-accessible memory. More... | |