
Dec. 3, 2000
8:32 a.m.
On Fri, 1 Dec 2000, chad scherrer wrote:
import Numeric def mod2(x): return x%2 apply(mod2, [-3]) 1 apply(mod2, Numeric.array([-3])) 1 apply(mod2, Numeric.array([[-3]])) array([-1])
Should that not be array([1]) ?
Hmmm. Good point; This looks weird to me too. You should probably talk to the Numeric Python people at the Numpy-discussion newsgroup: http://lists.sourceforge.net/mailman/listinfo/numpy-discussion I'll try to forward this message to that group, so perhaps they'll be able to figure out if it's a true bug. I hope that your answer will be answered quickly. Good luck!