31 template <
typename _T,
int _R>
32 inline typename _Projection_result_type<_T,_R>::_Const_result_type
36 _Arr_view->
_Project0(_I, _Projected_view);
37 return _Projected_view;
40 template <
typename _T,
int _R>
45 _Arr_view->
_Project0(_I, _Projected_view);
46 return _Projected_view;
49 template <
typename _T>
53 return _Arr_view->operator[](
index<1>(_I));
56 template <
typename _T>
60 return _Arr_view->operator[](
index<1>(_I));
63 template <
typename _T,
int _R>
71 template <
typename _T,
int _R>
79 template <
typename _T>
83 return _Array->operator[](
index<1>(_I));
86 template <
typename _T>
90 return _Array->operator[](
index<1>(_I));
97 static_assert(_Rank >= 3,
"_Rank >= 3");
103 extent<1> _Extent_at_level(_Base_extent);
105 _Extent_at_level[0] >>= _Level;
106 _Extent_at_level[0] = _Extent_at_level[0] ? _Extent_at_level[0] : 1;
108 return _Extent_at_level;
114 extent<2> _Extent_at_level(_Base_extent);
116 _Extent_at_level[0] >>= _Level;
117 _Extent_at_level[1] >>= _Level;
118 _Extent_at_level[0] = _Extent_at_level[0] ? _Extent_at_level[0] : 1;
119 _Extent_at_level[1] = _Extent_at_level[1] ? _Extent_at_level[1] : 1;
121 return _Extent_at_level;
127 extent<3> _Extent_at_level(_Base_extent);
129 _Extent_at_level[0] >>= _Level;
130 _Extent_at_level[1] >>= _Level;
131 _Extent_at_level[2] >>= _Level;
132 _Extent_at_level[0] = _Extent_at_level[0] ? _Extent_at_level[0] : 1;
133 _Extent_at_level[1] = _Extent_at_level[1] ? _Extent_at_level[1] : 1;
134 _Extent_at_level[2] = _Extent_at_level[2] ? _Extent_at_level[2] : 1;
136 return _Extent_at_level;
static _Projection_result_type< _T, _R >::_Result_type _Project0(const array_view< _T, _R > *_Arr_view, int _I) __GPU
Definition: xxamp_inl.h:42
extent< _Rank > _Get_extent_at_level(const extent< _Rank > &_Base_extent, unsigned int _Level)
Definition: xxamp_inl.h:141
#define __GPU
Definition: amprt.h:45
The Concurrency namespace provides classes and functions that provide access to the Concurrency Runti...
Definition: agents.h:43
void _Project0(int _I, array_view< _Value_type, _Rank-1 > &_Projected_view) const __GPU
Definition: amp.h:2988
void _Are_valid_mipmap_parameters(unsigned int _Most_detailed_mipmap_level, unsigned int _Mipmap_levels=0)
Definition: xxamp.h:1246
extent< 1 > _Get_extent_at_level_unsafe< 1 >(const extent< 1 > &_Base_extent, unsigned int _Level) __GPU
Definition: xxamp_inl.h:101
#define _In_
Definition: sal.h:305
extent< _Rank > _Get_extent_at_level_unsafe(const extent< _Rank > &_Base_extent, unsigned int _Level) __GPU
Definition: xxamp_inl.h:95
The extent type represents an N-dimensional vector of int which specifies the bounds of an N-dimen...
Definition: amp.h:383
An array is a multi-dimensional data aggregate on a accelerator_view.
Definition: amp.h:3865
extent< 3 > _Get_extent_at_level_unsafe< 3 >(const extent< 3 > &_Base_extent, unsigned int _Level) __GPU
Definition: xxamp_inl.h:125
static _Projection_result_type< _T, _R >::_Result_type _Project0(_In_ array< _T, _R > *_Array, int _I) __GPU
Definition: xxamp_inl.h:73
Define an N-dimensional index point; which may also be viewed as a vector based at the origin in N-sp...
Definition: amp.h:53
static _Projection_result_type< _T, _R >::_Const_result_type _Project0(const array_view< const _T, _R > *_Arr_view, int _I) __GPU
Definition: xxamp_inl.h:33
extent< 2 > _Get_extent_at_level_unsafe< 2 >(const extent< 2 > &_Base_extent, unsigned int _Level) __GPU
Definition: xxamp_inl.h:112
An array_view is an N-dimensional view over data held in another container (such as array
Definition: amp.h:2236
static _Projection_result_type< _T, _R >::_Const_result_type _Project0(const array< _T, _R > *_Array, int _I) __GPU
Definition: xxamp_inl.h:65