This class represents a reference to a sub-region of a base simd object. More...
#include <sycl/ext/intel/esimd/detail/types.hpp>
Public Types | |
using | region_type = RegionTy |
The region type of this class. More... | |
using | element_type = typename ShapeTy::element_type |
The element type of this class, which could be different from the element type of the base object type. More... | |
using | value_type = get_simd_t< element_type, length > |
The simd type if reading the object. More... | |
using | raw_vector_type = detail::vector_type_t< detail::__raw_t< element_type >, length > |
The underlying builtin value type. More... | |
Public Member Functions | |
simd_view (const simd_view &Other)=default | |
Default copy and move constructors for simd_view. More... | |
simd_view (simd_view &&Other)=default | |
simd_view (BaseTy &Base) | |
Construct a complete view of a vector. More... | |
simd_view & | operator= (const simd_view &Other) |
Copy assignment operator. More... | |
Static Public Attributes | |
static constexpr int | length = ShapeTy::Size_x * ShapeTy::Size_y |
This class represents a reference to a sub-region of a base simd object.
The referenced sub-region of the base object can be read from and written to via an instance of this class. Derives from detail::simd_view_impl, which defines the majority of available APIs for view classes.
User code is never supposed to explicitly provide actual template parameters for this class. They are always auto-deduced or provided by APIs.
BaseTy | The base type - type of the object viewed by this one. |
RegionTy | Describes the viewed region - its shape and element type. Regions can be 1D and 2D. |
using sycl::_V1::ext::intel::esimd::simd_view< BaseTy, RegionTy >::element_type = typename ShapeTy::element_type |
The element type of this class, which could be different from the element type of the base object type.
Definition at line 64 of file simd_view.hpp.
using sycl::_V1::ext::intel::esimd::simd_view< BaseTy, RegionTy >::raw_vector_type = detail::vector_type_t<detail::__raw_t<element_type>, length> |
The underlying builtin value type.
Definition at line 71 of file simd_view.hpp.
using sycl::_V1::ext::intel::esimd::simd_view< BaseTy, RegionTy >::region_type = RegionTy |
The region type of this class.
Definition at line 60 of file simd_view.hpp.
using sycl::_V1::ext::intel::esimd::simd_view< BaseTy, RegionTy >::value_type = get_simd_t<element_type, length> |
The simd type if reading the object.
Definition at line 67 of file simd_view.hpp.
|
default |
Default copy and move constructors for simd_view.
|
default |
|
inline |
Construct a complete view of a vector.
Base | The vector to construct a view of. |
Definition at line 86 of file simd_view.hpp.
|
inline |
Copy assignment operator.
Definition at line 89 of file simd_view.hpp.
References sycl::_V1::ext::oneapi::experimental::operator=().
|
staticconstexpr |
Definition at line 57 of file simd_view.hpp.