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

Home » Public Forums » archive » Re: Assignment Time for a 3d Variable
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: Assignment Time for a 3d Variable [message #46463 is a reply to message #46459] Wed, 23 November 2005 11:13 Go to previous messageGo to previous message
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
Hi,

Fortran is column major, IDL and C are row major. In IDL (unlike C or
Fortran) the first subscript is column, not row.

It is best not to refer to Fortran or C, IDL is like IDL :-)

regards,
lajos


On Wed, 23 Nov 2005, Kenneth Bowman wrote:

> In article <1132768280.23827.0.camel@localhost.localdomain>,
> Antonio Santiago <santiago@grahi.upc.edu> wrote:
>
>> Also I note that it depends on the language IDL is implemented. By
>> default all ANSI C compilers use row major mode.
>> See the other post for the link to an example :)
>
> IDL uses the Fortran convention for storage of arrays, that is, the first
> subscript varies fastest.
>
> "The fact that the elements of the first dimension are contiguous means that the
> elements of each row of an image array are contiguous. This is the order
> expected by most graphics hardware, providing an efficiency advantage for
> languages that naturally store data that way. Also, this ordering minimizes
> virtual memory overhead, since images are accessed linearly."
>
> Ken Bowman
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Creating Panels in iTools
Next Topic: How should I mark annotations in multi plot window

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

Current Time: Wed Oct 08 17:08:50 PDT 2025

Total time taken to generate the page: 0.00408 seconds