Re:Test for lists in Cython
by leephillips on Monday April 19, 2021 @09:03AM
(#26862277)
Numpy will perform a parallelized calculation when using one of the underlying BLAS routines, if you have the appropriate libraries installed on your machine. So to take advantage of your cores, try to write the calculation as a call to a linear algebra function. Loops or expressions with arithmetic operators as in your example will run on one core. Or, just use Julia.
[ Parent
| on HN ]
There are no comments on this comment yet.