Reinterprets the array through a one-dimensional array_view, which optionally may have a different value type than the source array.
template < typename _Value_type2 > array_view<_Value_type2,1> reinterpret_as()restrict(amp,cpu); template < typename _Value_type2 > array_view<const _Value_type2,1> reinterpret_as() const restrict(amp,cpu);
Sometimes it is convenient to view a multi-dimensional array as if it is a linear, one-dimensional array, possibly with a different value type than the source array. You can use this method to achieve this.
Reinterpreting an array object by using a different value type is a potentially unsafe operation. We recommend that you use this functionality carefully.
The following code provides an example.