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:

  1. http://docs.scipy.org/doc/numpy/reference/generated/numpy.vectorize.html
  2. http://docs.continuum.io/numbapro/ufuncs.html


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -