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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -