Flip (reverse the direction) axes of the data array in place.
Select the axes. By default all axes are flipped. The axes argument may be one, or a sequence, of:
An internal axis identifier. Selects this axis.
An integer. Selects the axis coresponding to the given position in the list of axes of the data array.
No axes are flipped if axes is an empty sequence.
The axes which were flipped, in arbitrary dimensions.
See also
expand_dims, squeeze, transpose
Examples
>>> d.flip() >>> d.flip(1) >>> d.flip([0, 1])
>>> e = d[::-1, :, ::-1] >>> d.flip([2, 0]).equals(e) True
cf.Data.flat
cf.Data.func
Enter search terms or a module, class or function name.