Flip (reverse the direction of) axes of the data array in place.
Select the axes. By default all axes are flipped. Each axis is identified by its integer position. No axes are flipped if axes is an empty sequence.
If True then update the data array in place. By default a new data array is created.
out : cf.Data
See also
expand_dims, squeeze, swapaxes, transpose
Examples
>>> d.flip() >>> d.flip(1) >>> d.flip([0, 1]) >>> d.flip([])
>>> 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.