Logo Search packages:      
Sourcecode: ipython version File versions  Download package

def IPython::kernel::mapper::MultiEngineMapper::__init__ (   self,
  multiengine,
  dist = 'b',
  targets = 'all',
  block = True 
)

Create a Mapper for a multiengine.

The value of all arguments are used for all calls to `map`.  This
class allows these arguemnts to be set for a series of map calls.

:Parameters:
    multiengine : `IMultiEngine` implementer
The multiengine to use for running the map commands
    dist : str
The type of decomposition to use.  Only block ('b') is
supported currently
    targets : (str, int, tuple of ints)
The engines to use in the map
    block : boolean
Whether to block when the map is applied

Definition at line 89 of file mapper.py.

00089                                                                         :
        """
        Create a Mapper for a multiengine.
        
        The value of all arguments are used for all calls to `map`.  This
        class allows these arguemnts to be set for a series of map calls.
        
        :Parameters:
            multiengine : `IMultiEngine` implementer
                The multiengine to use for running the map commands
            dist : str
                The type of decomposition to use.  Only block ('b') is
                supported currently
            targets : (str, int, tuple of ints)
                The engines to use in the map
            block : boolean
                Whether to block when the map is applied
        """
        self.multiengine = multiengine
        self.dist = dist
        self.targets = targets
        self.block = block
    
    def map(self, func, *sequences):


Generated by  Doxygen 1.6.0   Back to index