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

Home » Public Forums » archive » 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
cumulative total bug with array of size 1 [message #75729] Wed, 13 April 2011 07:09
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
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.

-Jeremy.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: netcdf + idl: posixio.c:265: px_pgin: Assertion ...
Next Topic: [Announce] icg_lib 11.0a2

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

Current Time: Wed Oct 08 18:55:37 PDT 2025

Total time taken to generate the page: 0.00365 seconds