numexpr

Parallelizing a Numpy vector operation

Parallelizing a Numpy vector operation Question: Let’s use, for example, numpy.sin() The following code will return the value of the sine for each value of the array a: import numpy a = numpy.arange( 1000000 ) result = numpy.sin( a ) But my machine has 32 cores, so I’d like to make use of them. (The …

Total answers: 3