stdgpu: stdgpu::iota
stdgpu Latest
Efficient STL-like Data Structures on the GPU
|
|
◆ iota()
template<typename ExecutionPolicy , typename Iterator , typename T , STDGPU_DETAIL_OVERLOAD_IF(is_execution_policy_v< remove_cvref_t< ExecutionPolicy > >) >
void stdgpu::iota |
( |
ExecutionPolicy && |
policy, |
|
|
Iterator |
begin, |
|
|
Iterator |
end, |
|
|
T |
value |
|
) |
| |
Writes ascending values {values + i} to the i-th position of the given range.
- Template Parameters
-
ExecutionPolicy | The type of the execution policy |
Iterator | The type of the iterators |
T | The type of the values |
- Parameters
-
[in] | policy | The execution policy, e.g. host or device |
[in] | begin | The iterator pointing to the first element |
[in] | end | The iterator pointing past to the last element |
[in] | value | The starting value that will be incremented |
|