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

Home » Public Forums » archive » Matrix algebra and index order, A # B vs A ## B
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Matrix algebra and index order, A # B vs A ## B [message #79655] Mon, 26 March 2012 04:33 Go to previous message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
IDL has two operators for matrix multiplication, # and ##. The former assumes the matrices involved have colum number as the first index and row number as the second, i.e., A_{rc} = A[c,r] with mathematics on the LHS and IDL on the RHS. The latter operator makes the opposite assumption, A_{rc} = A[r,c].

I believe much headache can be avoided if one chooses one notation and sticks with it. If it were only me, I'd choose the A_{rc} = A[r,c] notation. But it isn't only me, because I like to take advantage of IDL routines written by others. So, has there merged some kind of consensus among influential IDL programmers (those that write publicly available routines that are widely used - thank you BTW!) for which convention to use?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: The IDL way, summing variable sized slices of array.
Next Topic: Minimization: Determine a constant across data sets

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

Current Time: Wed Oct 08 11:27:40 PDT 2025

Total time taken to generate the page: 0.00465 seconds