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

shift_right - Kokkos documentation

Toggle table of contents sidebar

shift_right

Header: Kokkos_StdAlgorithms.hpp

Description

Shifts the elements in a range or in view by n positions towards the end of the range or the view.

Interface

Warning

This is currently inside the Kokkos::Experimental namespace.

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

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

template <class ExecutionSpace, class DataType, class... Properties>
auto shift_right(const ExecutionSpace& exespace,                          (3)
                 const Kokkos::View<DataType, Properties...>& view,
                 typename decltype(begin(view))::difference_type n);

template <class ExecutionSpace, class DataType, class... Properties>
auto shift_right(const std::string& label,                                (4)
                 const ExecutionSpace& exespace,
                 const Kokkos::View<DataType, Properties...>& view,
                 typename decltype(begin(view))::difference_type n);
Overload set accepting a team handle

Added in version 4.2.

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

template <class TeamHandleType, class DataType, class... Properties>
KOKKOS_FUNCTION
auto shift_right(const TeamHandleType& teamHandle,                        (6)
                 const Kokkos::View<DataType, Properties...>& view,
                 typename decltype(begin(view))::difference_type n);
Parameters and Requirements Return Value

The beginning of the resulting range. If n is less than last - first, returns first + n. Otherwise, returns last.


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