Returns a view with axis first and second swapped.
first
second
Tensor<T> swapAxes(int first, int second) => Tensor<T>.internal( type: type, layout: layout.swapAxes(first, second), data: data);