[Numpy-discussion] Removing masked arrays for 1.7? (Was 1.7 blockers)

Chris Barker chris.barker at noaa.gov
Fri Apr 20 14:45:57 EDT 2012


On Fri, Apr 20, 2012 at 11:39 AM, Dag Sverre Seljebotn
<d.s.seljebotn at astro.uio.no> wrote:
> Oh, right. I was thinking "small" as in "fits in L2 cache", not small as
> in a few dozen entries.

or even two or three entries.

I often use a (2,) or (3,) numpy array to represent an (x,y) point
(usually pulled out from a Nx2 array).

I like it 'cause i can do array math, etc. it makes the code cleaner,
but it's actually faster to use tuples and do the indexing by hand :-(

but yes, having something built-in, or at least very compatible with
numpy would be best.

-Chris



-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (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