[Numpy-discussion] request for new array method: arr.abs()
Christopher Barker
Chris.Barker at noaa.gov
Mon Aug 28 12:48:11 CDT 2006
Travis Oliphant wrote:
> Instead, I like better the idea of adding abs, round, max, and min to
> the "non-import-*" namespace of numpy.
Another I'd like is the built-in data types. I always use:
import numpy as N
so then I do:
a = zeros(shape, float)
or
a = zeros(shape, N.float_)
but for non-built-in types, I can't do the former.
The underscore is minor but why not just have:
float = float
in numpy.py?
(and of course, the others)
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the Numpy-discussion
mailing list