Re: [Numpy-discussion] How to use decorator numpy.vectorize for methods in class

2010-07-16 Thread Robert Kern
On Fri, Jul 16, 2010 at 12:00, Shailendra wrote: > Hi All, > I tried to use the decorator @numpy.vectorize for the class method > without success. Can any one point me to the correct way of using it? > I am able to use the numpy.vectorize() sucessfully. > Below is the code with did not work > > ==

[Numpy-discussion] How to use decorator numpy.vectorize for methods in class

2010-07-16 Thread Shailendra
Hi All, I tried to use the decorator @numpy.vectorize for the class method without success. Can any one point me to the correct way of using it? I am able to use the numpy.vectorize() sucessfully. Below is the code with did not work import numpy class test: