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

Home » Public Forums » archive » Multidimensional arrays and CALL_EXTERNAL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Multidimensional arrays and CALL_EXTERNAL [message #60831] Fri, 20 June 2008 10:50
Dan[1] is currently offline  Dan[1]
Messages: 7
Registered: June 2008
Junior Member
Hi everyone,

Now that I have gotten CALL_EXTERNAL to work correctly, I am trying to
figure out how IDL stores multidimensional arrays in memory. Since
CALL_EXTERNAL passes an arrays by reference (pointer to the first
element of the array), the multidimensional arrays in C act like a 1-D
array. I have figured out how to access elements of a 2D array
(array(i, j) ---> array[i + i_size * j]), but haven't been able to
figure out how to access elements from a 4D array.

For example, how would I access element:
array(i, j, k, m) from the pointer in C?

Thank you for the help!
[Message index]
 
Read Message
Previous Topic: Re: Can't pass data with CALL_EXTERNAL to C function
Next Topic: Re: Warping with intensity conservation or drizzle algorithm

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

Current Time: Wed Oct 08 13:42:20 PDT 2025

Total time taken to generate the page: 0.00429 seconds