Hi All,

If I execute the following code, I find that function f() sometimes is
called with an empty array. I am not sure why this is necessary. Is
this a bug?

def f(x):
   return x**2
return numpy.piecewise(u, abs(u)<1, [f, 0])

Thanks,
Geoffrey
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to