A RetroSearch Logo

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

Search Query:

Showing content from https://kokkos.github.io/kokkos-core-wiki/API/algorithms/std-algorithms/all/StdGenerate_n.html below:

generate_n - Kokkos documentation

generate_n

Header: <Kokkos_StdAlgorithms.hpp>

Description

Assigns the value generated by the functor g in a range of count iterators or each of the first count elements in a rank-1 View.

Interface

Warning

This is currently inside the Kokkos::Experimental namespace.

Overload set accepting execution space
template <class ExecutionSpace, class IteratorType, class Size, class Generator>
IteratorType generate_n(const ExecutionSpace& exespace,                           (1)
                        IteratorType first, Size count,
                        Generator g);

template <class ExecutionSpace, class IteratorType, class Size, class Generator>
IteratorType generate_n(const std::string& label, const ExecutionSpace& exespace, (2)
                        IteratorType first, Size count,
                        Generator g);

template <class ExecutionSpace, class DataType, class... Properties, class Size,
          class Generator>
auto generate_n(const ExecutionSpace& exespace,                                   (3)
                const ::Kokkos::View<DataType, Properties...>& view, Size count,
                Generator g);

template <class ExecutionSpace, class DataType, class... Properties, class Size,
          class Generator>
auto generate_n(const std::string& label, const ExecutionSpace& ex,               (4)
                const ::Kokkos::View<DataType, Properties...>& view, Size count,
                Generator g);
Overload set accepting a team handle

Added in version 4.2.

template <class TeamHandleType, class IteratorType, class Size, class Generator>
KOKKOS_FUNCTION
IteratorType generate_n(const TeamHandleType& teamHandle,                         (5)
                        IteratorType first, Size count,
                        Generator g);

template <class TeamHandleType, class DataType, class... Properties, class Size,
          class Generator>
KOKKOS_FUNCTION
auto generate_n(const TeamHandleType& teamHandle,                                 (6)
                const ::Kokkos::View<DataType, Properties...>& view, Size count,
                Generator g);
Parameters and Requirements Return Value

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