cf.Partition.master_ndindex

Partition.master_ndindex()[source]

Return an iterator over indices of the master array which are spanned by the conformed array.

Returns :
out : generator

An iterator over indices of the master array which are spanned by the conformed array.

Examples

>>> p.location
[(3, 5), (0, 1), (0, 3)]
>>> for index in p.master_ndindex():
...     print index
...
(3, 0, 0)
(3, 0, 1)
(3, 0, 2)
(4, 0, 0)
(4, 0, 1)
(4, 0, 2)

Previous topic

cf.Partition.is_partition

Next topic

cf.Partition.ndindex

This Page