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

Home » Public Forums » archive » Re: cumulative total bug with array of size 1
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: cumulative total bug with array of size 1 [message #75724] Wed, 13 April 2011 14:12
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jeremy Bailin writes:

> I've just discovered a really annoying bug with TOTAL. At least, it seems like a bug to me in that it disagrees with the documentation:
>
> When you use TOTAL(/CUMULATIVE), the output is supposed to be "an array of the same size as the input". But it appears that if the input array has size of 1, then TOTAL returns a scalar instead of an array of size 1.
>
> This breaks an important piece of code I have that expects arrays.
>
>

Better one of your programs then 10 of mine. ;-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: common block question
Next Topic: Re: Mapping Functionality in IDL 8.1

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

Current Time: Wed Oct 08 15:21:27 PDT 2025

Total time taken to generate the page: 0.00519 seconds