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

Home » Public Forums » archive » Array multiplication: implicit loop query
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: Array multiplication: implicit loop query [message #26247 is a reply to message #26191] Mon, 13 August 2001 06:46 Go to previous messageGo to previous message
Paul van Delst is currently offline  Paul van Delst
Messages: 364
Registered: March 1997
Senior Member
george Millward wrote:
>
> Hi there,
>
> Thanks for everyones help.
>
> I have inserted the "rebin" function and this works fine.
> I am still a little intrigued as to why IDL works this way

I'm sorta intrigued why you think it would work the other way. Somewhere someone had to
make a decision what to do in this respect. What would expect the default behaviour to be
if you mixed not just 1-D and 3-D arrays, but had a couple of 2-d or 4-d arrays also? Or
if you had some subscripted arrays in the expression? Which dimensions get "promoted" or
"rebinned" with respect to others? Seems to me like using the lowest common dimensions
makes more sense - not just for implementation but also for spotting errors when you've
mixed up your dimensions. It, uhh, ehem, happens to me all the time... :oD

paulv

--
Paul van Delst A little learning is a dangerous thing;
CIMSS @ NOAA/NCEP Drink deep, or taste not the Pierian spring;
Ph: (301)763-8000 x7274 There shallow draughts intoxicate the brain,
Fax:(301)763-8545 And drinking largely sobers us again.
Alexander Pope.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Coyote Library Updates
Next Topic: Ask Mr. Cosmology

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

Current Time: Fri Oct 10 17:46:11 PDT 2025

Total time taken to generate the page: 0.72051 seconds