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

Home » Public Forums » archive » Re: transforming a row vector into a column vector (continued)
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: transforming a row vector into a column vector (continued) [message #46022] Tue, 25 October 2005 14:39 Go to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Peter Albert wrote:
> IDL does not know different types of vectors, a vector in its
> 1-dimensional form always is a row vector.

I would go further than that. IDL is not a matrix-oriented language
(unlike Matlab, which definitely is) and its fundamental data structures
are the scalar and the array, the latter with 1-7 dimensions. With
arrays it uses a Fortran-like relationship between indexing and storage
(ie inner dimension varies fastest in memory) and it also supports a
handy 1-D indexing scheme that makes use of this relationship.

That's about it. Basically, IDL doesn't know about rows or columns,
vectors or matrices, tensors or quaternions. You *can* simulate these
mathematical structures with arrays, and some built-in IDL functions and
operators will help you, but make sure you check the conventions about
the correspondence between the IDL concepts (arrays, dimensions,
indices) and the mathematical concepts (matrix, row, column).

And read:

http://www.dfanning.com/misc_tips/colrow_major.html

PS: I have used IDL successfully to solve SVD problems, but I had to
read the documentation carefully and check out my understanding with toy
examples.

PS2: To my mind, IDL's agnosticism about matrices is vastly preferable
to Matlab's "everything is a double-precision matrix" stance.


--
Mark Hadfield "Kei puwaha te tai nei, Hoea tahi tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
[Message index]
 
Read Message
Read Message
Previous Topic: orthogonal distance regression
Next Topic: A color table for topography

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

Current Time: Wed Oct 08 18:56:22 PDT 2025

Total time taken to generate the page: 0.00438 seconds