Share via


array_view::view_as Method

Produces an array_view object of a different rank using this array_view object’s data.

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);

Parameters

  • _New_rank
    The rank of the new array_view object.

  • _View_extent
    The reshaping extent.

Requirements

Header: amp.h

Namespace: Concurrency

See Also

Reference

array_view Class