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

unique - Kokkos documentation

unique

Header: Kokkos_StdAlgorithms.hpp

Description

Eliminates all except the first element from every consecutive group of equivalent elements in a range or in a View and returns an iterator to the element after the new logical end of the range. Equivalence is checked using operator== and the binary predicate pred.

Interface

Warning

This is currently inside the Kokkos::Experimental namespace.

Overload set accepting execution space
template <class ExecutionSpace, class IteratorType>
IteratorType unique(const ExecutionSpace& exespace,                       (1)
                    IteratorType first, IteratorType last);

template <class ExecutionSpace, class IteratorType>
IteratorType unique(const std::string& label,                             (2)
                    const ExecutionSpace& exespace,
                    IteratorType first, IteratorType last);

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

template <class ExecutionSpace, class DataType, class... Properties>
auto unique(const std::string& label, const ExecutionSpace& exespace,     (4)
            const Kokkos::View<DataType, Properties...>& view);

template <class ExecutionSpace, class IteratorType, class BinaryPredicate>
IteratorType unique(const ExecutionSpace& exespace,                       (5)
                    IteratorType first, IteratorType last,
                    BinaryPredicate pred);

template <class ExecutionSpace, class IteratorType, class BinaryPredicate>
IteratorType unique(const std::string& label,                             (6)
                    const ExecutionSpace& exespace,
                    IteratorType first, IteratorType last,
                    BinaryPredicate pred);

template <
  class ExecutionSpace,
  class DataType, class... Properties,
  class BinaryPredicate>
auto unique(const ExecutionSpace& exespace,                               (7)
            const Kokkos::View<DataType, Properties...>& view,
            BinaryPredicate pred);

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

Added in version 4.2.

template <class TeamHandleType, class IteratorType>
KOKKOS_FUNCTION
IteratorType unique(const TeamHandleType& teamHandle,                     (9)
                    IteratorType first, IteratorType last);

template <class TeamHandleType, class DataType, class... Properties>
KOKKOS_FUNCTION
auto unique(const TeamHandleType& teamHandle,                             (10)
            const Kokkos::View<DataType, Properties...>& view);

template <class TeamHandleType, class IteratorType, class BinaryPredicate>
KOKKOS_FUNCTION
IteratorType unique(const TeamHandleType& teamHandle,                     (11)
                    IteratorType first, IteratorType last,
                    BinaryPredicate pred);

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

Iterator to the element after the new logical end of the range.


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