cf.AuxiliaryCoordinate.flip¶

AuxiliaryCoordinate.
flip
(*args, **kwargs)[source]¶ Flip (reverse the direction of) data dimensions.
See also
unsqueeze
 Parameters
 axes: optional
Select the domain axes to flip. One, or a sequence, of:
The position of the dimension in the data.
If no axes are specified then all axes are flipped.
 inplace:
bool
, optional If True then do the operation inplace and return
None
. i: deprecated at version 3.0.0
Use the inplace parameter instead.
 Returns
AuxiliaryCoordinate
orNone
The construct with flipped axes, or
None
if the operation was inplace.
Examples
>>> f.flip() >>> f.flip(1) >>> f.flip([0, 1])
>>> g = f[::1, :, ::1] >>> f.flip([2, 0]).equals(g) True