reverse#
Reverse the values of an operator along a single dimension
-
template<int DIM, typename Op>
auto __MATX_INLINE__ matx::reverse(Op t)# Operator to logically reverse elements of an operator. Base case for variadic template.
- Template Parameters:
DIM – Dimension to apply the reverse
Op – Input operator/tensor type
- Parameters:
t – Input operator
-
template<int DIM1, int DIM2, int... DIMS, typename Op_type>
auto __MATX_INLINE__ matx::reverse(Op_type t)# Operator to logically reverse elements of an operator.
This operator can appear as an rvalue or lvalue.
- Template Parameters:
DIM – Dimension to apply the reverse
DIMS... – list of multiple dimensions to reverse along
Op – Input operator/tensor type
- Parameters:
t – Input operator
Examples#
// Reverse the values of t2 along dimension 0
(t2r = reverse<0>(t2)).run(exec);