cf.PartitionMatrix.flat

PartitionMatrix.flat()[source]

Return a flat iterator over the partitions in the partition matrix.

Returns :
out : generator

An iterator over the elements of the partition matrix.

Examples

>>> type(pm.flat())
<generator object flat at 0x145a0f0>
>>> for partition in pm.flat():
...     print partition.Units

Previous topic

cf.PartitionMatrix.extend

Next topic

cf.PartitionMatrix.index

This Page