vt::moveaxis#
-
template<typename T, size_t N>
Tensor<T, N> vt::moveaxis(const Tensor<T, N> &tensor, int source, int destination)# Move the axis of the tensor.
- Template Parameters:
T – Data type of the tensor.
N – Number of dimensions of the tensor.
- Parameters:
tensor – The tensor object.
source – The source axis.
destination – The destination axis.
- Returns:
Tensor<T, N>: The tensor with moved axes.