comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: memory issues redux
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: memory issues redux [message #41574 is a reply to message #41573] Tue, 16 November 2004 10:08 Go to previous messageGo to previous message
R.G.Stockwell is currently offline  R.G.Stockwell
Messages: 163
Registered: October 2004
Senior Member
"Paolo Grigis" <pgrigis@astro.phys.ethz.ch> wrote in message
news:419a3d56$1@news1.ethz.ch...
> Actually, you can put a smaller number of, say, floats in
> an array than bytes
>
> IDL> a=fltarr(1024L*1024*511) ;this is ok
> IDL> a=fltarr(1024L*1024*512)
> % Array has too many elements.
> % Execution halted at: $MAIN$
>
> So it looks like IDL internally adresses the memory in byte sized
> units, indipendently from the type of data stored, and therefore
> you can get up to 2 gigaelements for a byte array, but just 512
> megaelements for a float array, 256 megaelements for a double
> array etc.
>
> Therefore the real limit for a single array is at 2GB, no matter
> the array type.
>
> Cheers,
> Paolo

I'm a bit surprised to see that with floats. I was suspecting that
complex variables were just 2 floats internally, not that everything was
bytes. huh!

cheers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: using idl over the web
Next Topic: Spectral subsetting of HDF files

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Dec 05 19:15:59 PST 2025

Total time taken to generate the page: 0.01659 seconds