[Numpy-discussion] tostring() for array rows

Christopher Barker Chris.Barker@noaa....
Wed Oct 7 12:20:32 CDT 2009


josef.pktd@gmail.com wrote:

> I wanted to avoid the python loop and thought creating the view will be faster
> with large arrays. But for this I need to know the memory length of a
> row of arbitrary types for the conversion to strings,

ndarray.itemsize

might do it.

-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@noaa.gov


More information about the NumPy-Discussion mailing list