bundles / scipy latest / scipy / _lib / _util / MapWrapper
class
scipy._lib._util:MapWrapper
source: /scipy/_lib/_util.py :617
Signature
class MapWrapper ( pool = 1 ) Members
Summary
Parallelisation wrapper for working with map-like callables, such as multiprocessing.Pool.map.
Parameters
pool: int or map-like callableIf
poolis an integer, then it specifies the number of threads to use for parallelization. Ifint(pool) == 1, then no parallel processing is used and the map builtin is used. Ifpool == -1, then the pool will utilize all available CPUs. Ifpoolis a map-like callable that follows the same calling sequence as the built-in map function, then this callable is used for parallelization.
Aliases
-
scipy.integrate._cubature.MapWrapper