From: John J. L. <jj...@po...> - 2001-09-26 21:09:22
|
On Wed, 26 Sep 2001, Chris Barker wrote: [...] > OK, Tim Hochberg was nice enough to point out to me that abs() works on > NumPy arrays. However, it does not work on other sequences, so maybe we > need this: > > def abs(a): > return abs(asarray(a)) Numeric.absolute, as Robert Kern pointed out, maybe that hasn't arrived in your mailbox... John |