swapAxes method

Tensor<T> swapAxes(
  1. int first,
  2. int second
)

Returns a view with axis first and second swapped.

Implementation

Tensor<T> swapAxes(int first, int second) => Tensor<T>.internal(
    type: type, layout: layout.swapAxes(first, second), data: data);