DPC++ Runtime
Runtime libraries for oneAPI DPC++
cl::sycl::ext::intel::esimd::simd_view< BaseTy, std::pair< region1d_scalar_t< ViewedElemT >, NestedRegion > > Class Template Reference

This is a specialization of nested simd_view class with a single element. More...

#include <sycl/ext/intel/esimd/simd_view.hpp>

Inheritance diagram for cl::sycl::ext::intel::esimd::simd_view< BaseTy, std::pair< region1d_scalar_t< ViewedElemT >, NestedRegion > >:
Collaboration diagram for cl::sycl::ext::intel::esimd::simd_view< BaseTy, std::pair< region1d_scalar_t< ViewedElemT >, NestedRegion > >:

Public Types

using RegionTy = std::pair< region1d_scalar_t< ViewedElemT >, NestedRegion >
 
using BaseClass = detail::simd_view_impl< BaseTy, RegionTy >
 
using ShapeTy = typename shape_type< RegionTy >::type
 
using element_type = ViewedElemT
 The element type of this class, which could be different from the element type of the base object type. More...
 

Public Member Functions

 operator element_type () const
 

Static Public Attributes

static constexpr int length = ShapeTy::Size_x * ShapeTy::Size_y
 

Friends

template<typename , int >
class simd
 
template<typename , typename >
class detail::simd_view_impl
 

Detailed Description

template<typename BaseTy, typename NestedRegion, class ViewedElemT>
class cl::sycl::ext::intel::esimd::simd_view< BaseTy, std::pair< region1d_scalar_t< ViewedElemT >, NestedRegion > >

This is a specialization of nested simd_view class with a single element.

Objects of such a class are created in the following situation: simd<int, 4> v = 1; auto v1 = v.select<2, 1>(0); auto v2 = v1[0]; // simd_view of a nested region for a single element

Definition at line 186 of file simd_view.hpp.

Member Typedef Documentation

◆ BaseClass

template<typename BaseTy , typename NestedRegion , class ViewedElemT >
using cl::sycl::ext::intel::esimd::simd_view< BaseTy, std::pair< region1d_scalar_t< ViewedElemT >, NestedRegion > >::BaseClass = detail::simd_view_impl<BaseTy, RegionTy>

Definition at line 194 of file simd_view.hpp.

◆ element_type

template<typename BaseTy , typename NestedRegion , class ViewedElemT >
using cl::sycl::ext::intel::esimd::simd_view< BaseTy, std::pair< region1d_scalar_t< ViewedElemT >, NestedRegion > >::element_type = ViewedElemT

The element type of this class, which could be different from the element type of the base object type.

Definition at line 201 of file simd_view.hpp.

◆ RegionTy

template<typename BaseTy , typename NestedRegion , class ViewedElemT >
using cl::sycl::ext::intel::esimd::simd_view< BaseTy, std::pair< region1d_scalar_t< ViewedElemT >, NestedRegion > >::RegionTy = std::pair<region1d_scalar_t<ViewedElemT>, NestedRegion>

Definition at line 193 of file simd_view.hpp.

◆ ShapeTy

template<typename BaseTy , typename NestedRegion , class ViewedElemT >
using cl::sycl::ext::intel::esimd::simd_view< BaseTy, std::pair< region1d_scalar_t< ViewedElemT >, NestedRegion > >::ShapeTy = typename shape_type<RegionTy>::type

Definition at line 195 of file simd_view.hpp.

Member Function Documentation

◆ operator element_type()

template<typename BaseTy , typename NestedRegion , class ViewedElemT >
cl::sycl::ext::intel::esimd::simd_view< BaseTy, std::pair< region1d_scalar_t< ViewedElemT >, NestedRegion > >::operator element_type ( ) const
inline

Definition at line 210 of file simd_view.hpp.

Friends And Related Function Documentation

◆ detail::simd_view_impl

template<typename BaseTy , typename NestedRegion , class ViewedElemT >
template<typename , typename >
friend class detail::simd_view_impl
friend

Definition at line 190 of file simd_view.hpp.

◆ simd

template<typename BaseTy , typename NestedRegion , class ViewedElemT >
template<typename , int >
friend class simd
friend

Definition at line 189 of file simd_view.hpp.

Member Data Documentation

◆ length

template<typename BaseTy , typename NestedRegion , class ViewedElemT >
constexpr int cl::sycl::ext::intel::esimd::simd_view< BaseTy, std::pair< region1d_scalar_t< ViewedElemT >, NestedRegion > >::length = ShapeTy::Size_x * ShapeTy::Size_y
staticconstexpr

Definition at line 196 of file simd_view.hpp.


The documentation for this class was generated from the following file: