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

count_if - Kokkos documentation

count_if

Header: <Kokkos_StdAlgorithms.hpp>

Description

Returns the number of elements in a range or in rank-1 View that satisfy a given unary prediate.

Interface

Warning

This is currently inside the Kokkos::Experimental namespace.

Overload set accepting execution space
template <class ExecutionSpace, class IteratorType, class Predicate>
typename IteratorType::difference_type count_if(const ExecutionSpace& exespace,
                                                IteratorType first,
                                                IteratorType last,                   (1)
                                                Predicate pred);


template <class ExecutionSpace, class IteratorType, class Predicate>
typename IteratorType::difference_type count_if(const std::string& label,
                                                const ExecutionSpace& exespace,
                                                IteratorType first,                  (2)
                                                IteratorType last,
                                                Predicate pred);

template <class ExecutionSpace, class DataType, class... Properties,
          class Predicate>
auto count_if(const ExecutionSpace& exespace,
              const ::Kokkos::View<DataType, Properties...>& view,                   (3)
              Predicate pred);

template <class ExecutionSpace, class DataType, class... Properties,
          class Predicate>
auto count_if(const std::string& label, const ExecutionSpace& exespace,
              const ::Kokkos::View<DataType, Properties...>& view,                   (4)
              Predicate pred);
Overload set accepting a team handle

Added in version 4.2.

template <class TeamHandleType, class IteratorType, class Predicate>
KOKKOS_FUNCTION
typename IteratorType::difference_type count_if(const TeamHandleType& teamHandle,
                                                IteratorType first,
                                                IteratorType last,                   (5)
                                                Predicate pred);

template <class TeamHandleType, class DataType, class... Properties,
          class Predicate>
KOKKOS_FUNCTION
auto count_if(const TeamHandleType& teamHandle,
              const ::Kokkos::View<DataType, Properties...>& view,                   (6)
              Predicate pred);
Parameters and Requirements Return Value

Returns the number of elements in the range first,last or in view for which the predicate is true.


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