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

Home » Public Forums » archive » what is the upper limit for IDL array?
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: what is the upper limit for IDL array? [message #66567 is a reply to message #66471] Thu, 21 May 2009 08:52 Go to previous messageGo to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
Hu wrote:
> Hi,there
>
> I want to know the upper limit number of a 1-D/2-D array (say, Array),
> Is there anybody knows the answer?
>
> I mean, how many elements that I can write into this 1-D/2-D array?
>
> Thanks

here is an answer from Paolo he sent on this topic a few years ago.
Jean


Jean H. wrote:
> Hi all,
>
> I can't remember this... what is the type of the variable used to
index an array? ... in other words, what is the max number of elements
an array can hold, provided the memory is available? Is there a way to
change that, so I can use, let's say, an unsigned long 64?

In the 32-bits version, signed longs are used.
Thus the max number of elements of a byte array is (2^31-offset),
where offset is a small number (around 10).

IDL 64 bit uses signed double precision longs, and the max number
of elements in a byte array is (2^63-offset) [here the offset seems
to be around 512].

For other numeric types, divide the above numbers by the size in
bytes of one element.

Ciao,
Paolo

>
> Thanks,
>
> Jean
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: problem with idl7.1 installation
Next Topic: IDL 6.4.1 and X Windows with OS X 10.5.7 and ssh

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

Current Time: Sun Nov 30 04:24:56 PST 2025

Total time taken to generate the page: 0.32317 seconds