Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

array_view::view_as Method

Reinterprets this array_view as an array_view of a different rank.

template <
   int _New_rank
array_view<_Value_type,_New_rank> view_as(
   const Concurrency::extent<_New_rank>& _View_extent
) const restrict(amp,cpu);

template <
   int _New_rank
array_view<const _Value_type,_New_rank> view_as(
   const Concurrency::extent<_New_rank> _View_extent
) const restrict(amp,cpu);


The rank of the new array_view object.


The reshaping extent.


The data type of the elements in both the original array object and the returned array_view object.

The array_view object that is constructed.

Header: amp.h

Namespace: Concurrency

© 2015 Microsoft