reverse

reverse#

Reverse the values of an operator along a single dimension

template<int DIM, typename Op>
reverse(const Op &t)#
template<int DIM1, int DIM2, int... DIMS, typename Op>
reverse(const Op &t)#

Examples#

// Reverse the values of t2 along dimension 0
(t2r = reverse<0>(t2)).run(exec);