transpose_matrix#
Transpose the last two dimensions of an operator
-
template<typename T>
__MATX_INLINE__ auto matx::transpose_matrix(const T &op)# Operator to transpose the last two dimensions of a tensor or operator.
The each dimension must appear in the dims array once.
This operator can appear as an rvalue or lvalue.
- Template Parameters:
T – Input operator/tensor type
- Parameters:
op – Input operator
- Returns:
permuted operator
Examples#
matmul_impl(transpose_matrix(vm), conj(transpose_matrix(Ap)), um, exec); // (n x 1) = (n x m) ( (m x 1)