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

remove_if - Kokkos documentation

remove_if

Header: Kokkos_StdAlgorithms.hpp

Description

Removes all elements for which pred returns true, by shifting via move assignment the elements in a range or in View such that the elements not to be removed appear in the beginning of the range or in the beginning of View. Relative order of the elements that remain is preserved and the physical size of the container is unchanged.

Interface

Warning

This is currently inside the Kokkos::Experimental namespace.

Overload set accepting execution space
template <class ExecutionSpace, class Iterator, class UnaryPredicate>
Iterator remove_if(const ExecutionSpace& exespace,                           (1)
                   Iterator first, Iterator last,
                   UnaryPredicate pred);

template <class ExecutionSpace, class Iterator, class UnaryPredicate>
Iterator remove_if(const std::string& label,                                 (2)
                   const ExecutionSpace& exespace,
                   Iterator first, Iterator last,
                   UnaryPredicate pred);

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

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

Added in version 4.2.

template <class TeamHandleType, class Iterator, class UnaryPredicate>
KOKKOS_FUNCTION
Iterator remove_if(const TeamHandleType& teamHandle,                         (5)
                   Iterator first, Iterator last,
                   UnaryPredicate pred);

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

Iterator to the element after the new logical end.


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