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

Home » Public Forums » archive » Re: which array dimensions are contiguous?
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: which array dimensions are contiguous? [message #47522 is a reply to message #47521] Tue, 14 February 2006 02:31 Go to previous messageGo to previous message
greg michael is currently offline  greg michael
Messages: 163
Registered: January 2006
Senior Member
Thanks, David. My question was really only about whether the first
dimensions of an array are the contiguous ones, to which I understand
the answer is yes. The indexing mess is different (and probably worse)
than the one I was imagining, so thanks for that, too.

Still, there's something in that article I couldn't grasp...

IDL> myArray = FltArr(3660, 1680)
IDL> indices = Randomu(seed, 100000) * 3660L * 1680L
IDL> myArray[indices, indices] = 5

I'd have understood if the 3rd line said myArray[indices] = 5. What's
going on here? Why doesn't it cause an error to put in a list of
indices which exceed the dimension?

IDL> print,max(indices)
6.14869e+006

I suppose they're being first enumerated into a single list, and then
being applied as 1-d subscripts? I wouldn't have said "No problems with
this. "!

regards,
Greg
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: which array dimensions are contiguous?
Next Topic: weighted Gaussian distribution mean

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

Current Time: Sat Oct 11 17:20:38 PDT 2025

Total time taken to generate the page: 0.00941 seconds