I have some function f(x,y)
which I have vectorized with numpy.vectorize
command. I have made some grid values of x and y for which I want the function to be evaluated. My program looks like this:
from numpy import vectorize,meshgrid, linspace
@vectorize
def f(x,y):
pass
x = linspace(0,10)
y = linspace(0,10)
X, Y = meshgrid(x, y)
Z = f(X,Y)
When I look at the system monitor on evaluation time (for example with htop
on Ubuntu) I see that only one core is being used. What are the options to get most juice of system on such computation?