flip method

Tensor<T> flip({
  1. int axis = 0,
})

Returns a view with the elements along the given axis reversed.

Implementation

Tensor<T> flip({int axis = 0}) => Tensor<T>.internal(
    type: type, layout: layout.flip(axis: axis), data: data);