[Numpy-discussion] Using multiprocessing (shared memory) with numpy array multiplication

Sturla Molden sturla@molden...
Thu Jun 16 09:30:16 CDT 2011


Den 16.06.2011 16:16, skrev Bruce Southey:
> The idea was to calculate:
> innerProduct =numpy.sum(array1*array2) where array1 and array2 are, in
> general, multidimensional.

If you want to do that in parallel, fast an with minimal overhead, it's 
a typical OpenMP problem. If the dimensions are unknown in advance, I'd 
probably prefer a loop in C instead of Fortran and BLAS.

Sturla


More information about the NumPy-Discussion mailing list