multithreading - How to define a function as vetorize in python? -
i need define function vectorize
. furthermore, function must multithread
performance test. how option added?
on web found 2 ways vectorize
:
1) redefinition:
function = pylab.vectorize(function)
2) decorator:
@pylab.vectorize def function(self): ....
this option not work in code, opted first one.
i found following documentation, not much:
Comments
Post a Comment