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

remove - Kokkos documentation

Toggle table of contents sidebar

remove

Header: Kokkos_StdAlgorithms.hpp

Description

Removes all elements equal to value 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 ValueType>
Iterator remove(const ExecutionSpace& exespace,                       (1)
                Iterator first, Iterator last,
                const ValueType& value);

template <class ExecutionSpace, class Iterator, class ValueType>
Iterator remove(const std::string& label,                             (2)
                const ExecutionSpace& exespace,
                Iterator first, Iterator last,
                const ValueType& value);

template <
  class ExecutionSpace,
  class DataType, class... Properties,
  class ValueType>
auto remove(const ExecutionSpace& exespace,                           (3)
            const Kokkos::View<DataType, Properties...>& view,
            const ValueType& value);

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

Added in version 4.2.

template <class TeamHandleType, class Iterator, class ValueType>
KOKKOS_FUNCTION
Iterator remove(const TeamHandleType& teamHandle,                     (5)
                Iterator first, Iterator last,
                const ValueType& value);

template <
  class TeamHandleType,
  class DataType, class... Properties,
  class ValueType>
KOKKOS_FUNCTION
auto remove(const TeamHandleType& teamHandle,                         (6)
            const Kokkos::View<DataType, Properties...>& view,
            const ValueType& value);
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