A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://stotko.github.io/stdgpu/doxygen/group__algorithm_ga7afedcb1c9bffa8f2f3b364541657ce5.html below:

for_each_index — stdgpu Latest documentation

for_each_index# stdgpu: stdgpu::for_each_index

stdgpu Latest

Efficient STL-like Data Structures on the GPU

◆ for_each_index()

template<typename IndexType , typename ExecutionPolicy , typename UnaryFunction , STDGPU_DETAIL_OVERLOAD_IF(is_execution_policy_v< remove_cvref_t< ExecutionPolicy > >) >

void stdgpu::for_each_index ( ExecutionPolicy &&  policy, IndexType  size, UnaryFunction  f  )

Calls the given unary function with an index from the range [0, size)

Template Parameters
IndexType The type of the index values ExecutionPolicy The type of the execution policy UnaryFunction The type of the unary function
Parameters
[in] policy The execution policy, e.g. host or device [in] size The number of indices, i.e. the upper bound of [0, size) [in] f The unary function to call with an index i

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4