alpaka
Abstraction Library for Parallel Kernel Acceleration
|
A n-dimensional vector. More...
#include <Vec.hpp>
Public Types | |
using | Dim = TDim |
using | Val = TVal |
using | value_type = Val |
STL-like value_type. More... | |
Public Member Functions | |
constexpr ALPAKA_FN_HOST_ACC | Vec () |
template<typename F , std::enable_if_t< std::is_invocable_v< F, std::integral_constant< std::size_t, 0 >>, int > = 0> | |
constexpr ALPAKA_FN_HOST_ACC | Vec (F &&generator) |
Generator constructor. Initializes the vector with the values returned from generator(IC) in order, where IC::value runs from 0 to TDim - 1 (inclusive). More... | |
template<typename... TArgs, typename = std::enable_if_t< sizeof...(TArgs) == TDim::value && (std::is_convertible_v<std::decay_t<TArgs>, TVal> && ...)>> | |
ALPAKA_NO_HOST_ACC_WARNING constexpr ALPAKA_FN_HOST_ACC | Vec (TArgs &&... args) |
Value constructor. This constructor is only available if the number of parameters matches the vector idx. More... | |
constexpr ALPAKA_FN_HOST_ACC auto | back () -> TVal & |
constexpr ALPAKA_FN_HOST_ACC auto | back () const -> TVal const & |
constexpr ALPAKA_FN_HOST_ACC auto | begin () -> TVal * |
constexpr ALPAKA_FN_HOST_ACC auto | begin () const -> TVal const * |
constexpr ALPAKA_FN_HOST_ACC auto | end () -> TVal * |
constexpr ALPAKA_FN_HOST_ACC auto | end () const -> TVal const * |
constexpr ALPAKA_FN_HOST_ACC auto | front () -> TVal & |
constexpr ALPAKA_FN_HOST_ACC auto | front () const -> TVal const & |
Static Public Member Functions | |
ALPAKA_NO_HOST_ACC_WARNING static constexpr ALPAKA_FN_HOST_ACC auto | all (TVal const &val) -> Vec< TDim, TVal > |
Single value constructor. More... | |
ALPAKA_NO_HOST_ACC_WARNING static constexpr ALPAKA_FN_HOST_ACC auto | ones () -> Vec< TDim, TVal > |
One value constructor. More... | |
ALPAKA_NO_HOST_ACC_WARNING static constexpr ALPAKA_FN_HOST_ACC auto | zeros () -> Vec< TDim, TVal > |
Zero value constructor. More... | |
Public Attributes | |
int | |
A n-dimensional vector.
using alpaka::Vec< TDim, TVal >::Dim = TDim |
using alpaka::Vec< TDim, TVal >::Val = TVal |
using alpaka::Vec< TDim, TVal >::value_type = Val |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineexplicitconstexpr |
|
inlinestaticconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
alpaka::Vec< TDim, TVal >::int |