Warning
This documentation is for an old version of IPython. You can find docs for newer versions here.
Module: parallel.client.map¶
Classes used in scattering and gathering sequences.
Scattering consists of partitioning a sequence and sending the various pieces to individual nodes in a cluster.
2 Classes¶
- 
class IPython.parallel.client.map.Map¶
- Bases: - object- A class for partitioning a sequence using a map. - 
getPartition(seq, p, q, n=None)¶
- Returns the pth partition of q partitions of seq. - The length can be specified as - n, otherwise it is the value of- len(seq)
 
- 
- 
class IPython.parallel.client.map.RoundRobinMap¶
- Bases: - IPython.parallel.client.map.Map- Partitions a sequence in a round robin fashion. - This currently does not work! 
