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

Home » Public Forums » archive » HDF SDS array access in IDL
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: HDF SDS array access in IDL [message #13258 is a reply to message #13178] Thu, 29 October 1998 00:00 Go to previous messageGo to previous message
Dr. G. Scott Lett is currently offline  Dr. G. Scott Lett
Messages: 14
Registered: February 1998
Junior Member
Ok, ok. Let me try this a different way.

Standard linear algebra packages written in FORTRAN, such as Linpack,
followed the _convention_ that general matrices were stored as two
dimensional arrays, accessed as (row, column). Because there were no matrix
operations built into old FORTRAN, this was just a convention.

Fortran now has a number of matrix operations built into the standard
language. An example is the MATMUL intrinsic function, which follows the
(row, column) convention. So, now the convention is part of the standard.
You can multiply an array A of shape (3,4) by an array B of shape (4,3).
MATMUL(A,B) returns an array of shape (3,3).

IDL has a number of matrix operations and linear algebra functions. They
follow the convention of storing matrices as two dimensional arrays in
(column, row) order. The matrix multiplication operator in IDL can multiply
an array A of size
[3,4] and an array B of size [4,3]. A ## B returns an array of size [4,4].

This whole question can be academic, or at most cosmetic, unless one does
things such as linking Fortran linear algebra codes into IDL. The
difference in storage/access conventions can also have a profound impact on
the efficiency of certain algorithms, as David Fanning pointed out. Is an
LU decomposition of a matrix faster when the matrix is stored by rows or by
columns? Try it and see.
[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: IDL licenses in Windows
Next Topic: Re: Multiple file selector?

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

Current Time: Sat Oct 11 19:06:11 PDT 2025

Total time taken to generate the page: 0.64108 seconds