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/StdAnyOf.html below:

any_of - Kokkos documentation

any_of

Header: <Kokkos_StdAlgorithms.hpp>

Description

Returns true if at least one element in a range or rank-1 View satisfies a target unary predicate.

Interface

Warning

This is currently inside the Kokkos::Experimental namespace.

Overload set accepting execution space
template <class ExecutionSpace, class InputIterator, class Predicate>
bool any_of(const ExecutionSpace& exespace,                                (1)
            InputIterator first, InputIterator last,
            Predicate predicate);

template <class ExecutionSpace, class InputIterator, class Predicate>
bool any_of(const std::string& label, const ExecutionSpace& exespace,      (2)
            InputIterator first, InputIterator last,
            Predicate predicate);

template <class ExecutionSpace, class DataType, class... Properties,
          class Predicate>
bool any_of(const ExecutionSpace& exespace,                                (3)
            const ::Kokkos::View<DataType, Properties...>& v,
            Predicate predicate);

template <class ExecutionSpace, class DataType, class... Properties,
          class Predicate>
bool any_of(const std::string& label, const ExecutionSpace& exespace,      (4)
            const ::Kokkos::View<DataType, Properties...>& v,
            Predicate predicate);
Overload set accepting a team handle

Added in version 4.2.

template <class TeamHandleType, class InputIterator, class Predicate>
KOKKOS_FUNCTION
bool any_of(const TeamHandleType& teamHandle,                              (5)
            InputIterator first, InputIterator last,
            Predicate predicate);

template <class TeamHandleType, class DataType, class... Properties,
          class Predicate>
KOKKOS_FUNCTION
bool any_of(const TeamHandleType& teamHandle,                              (6)
            const ::Kokkos::View<DataType, Properties...>& v,
            Predicate predicate);
Parameters and Requirements Return Value

Returns true if the unary predicate returns true for at least one element in the range or view. Returns false if no such element is found, or if the range or view are empty.


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