cf.PartitionMatrix.rollaxis

PartitionMatrix.rollaxis(axis, start=0)[source]

Roll the specified partition dimension backwards,in place until it lies in a given position.

Note that this does not change the master data array.

Parameters :
axis : int

The axis to roll backwards. The positions of the other axes do not change relative to one another.

start : int, optional

The axis is rolled until it lies before this position. The default, 0, results in a “complete” roll.

Returns :

None

Examples

>>> pm.rollaxis(2)
>>> pm.rollaxis(2, start=1)

Previous topic

cf.PartitionMatrix.reverse

Next topic

cf.PartitionMatrix.set_location_map

This Page