Array Memory Allocation Size

Paul F. Dubois pauldubois at home.com
Mon Jun 26 12:20:27 EDT 2000


print len(ravel(x))*x.itemsize()

Be sure to also check out the new spacesaver features.

Curtis Jensen <cjensen at bioeng.ucsd.edu> wrote in message
news:39540628.B284C15F at bioeng.ucsd.edu...
> I'm using NumPy to allocate heaps of arrays.  Is there a command to find
> out how much space each array is using in memory?
>
> --
> Curtis Jensen
> cjensen at bioeng.ucsd.edu
> http://www-bioeng.ucsd.edu/~cjensen/
> FAX (425) 740-1451





More information about the Python-list mailing list