{ } Raw JSON

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 callable

If pool is an integer, then it specifies the number of threads to use for parallelization. If int(pool) == 1, then no parallel processing is used and the map builtin is used. If pool == -1, then the pool will utilize all available CPUs. If pool is 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