20 Oct
2007
20 Oct
'07
3:52 a.m.
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
6053
Age (days ago)
6053
Last active (days ago)
0 comments
1 participants
participants (1)
-
Geoffrey Zhu