Provides a cross-platform math array class template that works on SYCL devices as well as in host C++ code. More...
#include <sycl/marray.hpp>
Public Types | |
using | value_type = Type |
using | reference = Type & |
using | const_reference = const Type & |
using | iterator = Type * |
using | const_iterator = const Type * |
Public Member Functions | |
constexpr | marray () |
constexpr | marray (const Type &Arg) |
template<typename... ArgTN, typename = std::enable_if_t< AllSuitableArgTypes<ArgTN...>::value && detail::GetMArrayArgsSize<ArgTN...>::value == NumElements>> | |
constexpr | marray (const ArgTN &...Args) |
constexpr | marray (const marray< Type, NumElements > &Rhs)=default |
constexpr | marray (marray< Type, NumElements > &&Rhs)=default |
template<std::size_t Size = NumElements, typename = std::enable_if_t<Size == 1>> | |
operator Type () const | |
reference | operator[] (std::size_t index) |
const_reference | operator[] (std::size_t index) const |
marray & | operator= (const marray< Type, NumElements > &Rhs)=default |
marray & | operator= (const Type &Rhs) |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
Static Public Member Functions | |
static constexpr std::size_t | size () noexcept |
Friends | |
template<typename Type_ , std::size_t NumElements_> | |
class | marray |
template<typename T = DataT> | |
std::enable_if_t< std::is_integral_v< T >, marray > | operator~ (const marray &Lhs) |
marray< bool, NumElements > | operator! (const marray &Lhs) |
marray | operator+ (const marray &Lhs) |
marray | operator- (const marray &Lhs) |
Provides a cross-platform math array class template that works on SYCL devices as well as in host C++ code.
Definition at line 49 of file marray.hpp.
using sycl::_V1::marray< Type, NumElements >::const_iterator = const Type * |
Definition at line 57 of file marray.hpp.
using sycl::_V1::marray< Type, NumElements >::const_reference = const Type & |
Definition at line 55 of file marray.hpp.
using sycl::_V1::marray< Type, NumElements >::iterator = Type * |
Definition at line 56 of file marray.hpp.
using sycl::_V1::marray< Type, NumElements >::reference = Type & |
Definition at line 54 of file marray.hpp.
using sycl::_V1::marray< Type, NumElements >::value_type = Type |
Definition at line 53 of file marray.hpp.
|
inlineconstexpr |
Definition at line 116 of file marray.hpp.
|
inlineexplicitconstexpr |
Definition at line 118 of file marray.hpp.
|
inlineconstexpr |
Definition at line 126 of file marray.hpp.
|
constexprdefault |
|
constexprdefault |
|
inline |
Definition at line 159 of file marray.hpp.
|
inline |
Definition at line 161 of file marray.hpp.
|
inline |
Definition at line 163 of file marray.hpp.
|
inline |
Definition at line 165 of file marray.hpp.
|
inline |
Definition at line 137 of file marray.hpp.
|
default |
|
inline |
Definition at line 151 of file marray.hpp.
|
inline |
Definition at line 144 of file marray.hpp.
|
inline |
Definition at line 146 of file marray.hpp.
|
inlinestaticconstexprnoexcept |
Definition at line 141 of file marray.hpp.
|
friend |
Definition at line 102 of file marray.hpp.
|
friend |
Definition at line 367 of file marray.hpp.
|
friend |
Definition at line 375 of file marray.hpp.
|
friend |
Definition at line 383 of file marray.hpp.
|
friend |
Definition at line 359 of file marray.hpp.