Folks,
I hope this is a simple question. When I created a ufunc with
np.frompyfunc(), I got an error when I called the result with an 'out'
argument:
def foo(x): return x * x + 1
ufoo = np.frompyfunc(foo, 1, 1)
arr = np.arange(9).reshape(3,3)
ufoo(arr, out=arr)
Traceback (most recent
On 6 April 2010 15:42, Ken Basye kbas...@jhu.edu wrote:
Folks,
I hope this is a simple question. When I created a ufunc with
np.frompyfunc(), I got an error when I called the result with an 'out'
argument:
In fact, ordinary ufuncs do not accept names for their arguments. This
is annoying,
From: Anne Archibald peridot.face...@gmail.com
On 6 April 2010 15:42, Ken Basye kbas...@jhu.edu wrote:
Folks,
I hope this is a simple question. When I created a ufunc with
np.frompyfunc(), I got an error when I called the result with an 'out'
argument:
In fact, ordinary ufuncs do