![]() |
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. | |
Public Member Functions | |
| ALPAKA_FN_HOST_ACC constexpr | Vec () |
| template<typename F , std::enable_if_t< std::is_invocable_v< F, std::integral_constant< std::size_t, 0 > >, int > = 0> | |
| ALPAKA_FN_HOST_ACC constexpr | 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). | |
| 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 ALPAKA_FN_HOST_ACC constexpr | Vec (TArgs &&... args) |
| Value constructor. This constructor is only available if the number of parameters matches the vector idx. | |
| ALPAKA_FN_HOST_ACC constexpr auto | back () -> TVal & |
| ALPAKA_FN_HOST_ACC constexpr auto | back () const -> TVal const & |
| ALPAKA_FN_HOST_ACC constexpr auto | begin () -> TVal * |
| ALPAKA_FN_HOST_ACC constexpr auto | begin () const -> TVal const * |
| ALPAKA_FN_HOST_ACC constexpr auto | end () -> TVal * |
| ALPAKA_FN_HOST_ACC constexpr auto | end () const -> TVal const * |
| ALPAKA_FN_HOST_ACC constexpr auto | front () -> TVal & |
| ALPAKA_FN_HOST_ACC constexpr auto | front () const -> TVal const & |
Static Public Member Functions | |
| ALPAKA_NO_HOST_ACC_WARNING static ALPAKA_FN_HOST_ACC constexpr auto | all (TVal const &val) -> Vec< TDim, TVal > |
| Single value constructor. | |
| ALPAKA_NO_HOST_ACC_WARNING static ALPAKA_FN_HOST_ACC constexpr auto | ones () -> Vec< TDim, TVal > |
| One value constructor. | |
| ALPAKA_NO_HOST_ACC_WARNING static ALPAKA_FN_HOST_ACC constexpr auto | zeros () -> Vec< TDim, TVal > |
| Zero value constructor. | |
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 |