cf.Partition.itermaster_indices

Partition.itermaster_indices()[source]

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

The array is not conformed.

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.itermaster_indices():
...     print index
...
(3, 0, 0)
(3, 0, 1)
(3, 0, 2)
(4, 0, 0)
(4, 0, 1)
(4, 0, 2)

Previous topic

cf.Partition.iterarray_indices

Next topic

cf.Partition.new_part

This Page