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

Home » Public Forums » archive » Re: Multiplication turning array into scalar -- who wants to try?
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: Multiplication turning array into scalar -- who wants to try? [message #53258 is a reply to message #53256] Sat, 31 March 2007 21:24 Go to previous messageGo to previous message
swingnut is currently offline  swingnut
Messages: 30
Registered: September 2005
Member
On Apr 1, 12:01 am, David Fanning <n...@dfanning.com> wrote:
...
> Your "signOfDifference" is a one-element array. When you multiply
> an array by another array, the result has as many elements as
> the *smallest* array.
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Hooray for cross-posting! That's good to know. I guess now I'm just
confused, because I've not encountered such a difference in the
treatment of scalars and 1x1 arrays. This implies that a scalar is not
an array to me despite the spiel about IDL being an array language, so
that somewhere in its innards IDL treats a scalar and 1x1 array
differently but doesn't always make the result apparent to the user
unless said code monkey traces whatever went awry back to this
difference of treatment.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Multiplication changes array dimensions since a scalar and a 1x1 array are not the same
Next Topic: Re: simple question (I hope)

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

Current Time: Fri Oct 10 00:46:27 PDT 2025

Total time taken to generate the page: 1.27976 seconds