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

Home » Public Forums » archive » Scary bug with array assignment
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: Scary bug with array assignment [message #89258 is a reply to message #89257] Sun, 10 August 2014 12:25 Go to previous messageGo to previous message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
On 10.08.2014 20:57, Paddy Leahy wrote:
> Is there a big hole in my understanding of IDL array assignment, or is this a ghastly bug?

The problem is not the assignment, it is the "+="

In your example, if you transform:

IDL> for jj=0,2 do sum[0,jj] += data[*,jj]

into what it really is, i.e:

IDL> for jj=0,2 do sum[0,jj] = sum[0,jj] + data[*,jj]

it may explain your problem.

Cheers,

Fabien
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: cgContour with different clipping
Next Topic: How to assign command line arguments to variables in another class

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

Current Time: Thu Oct 09 07:00:08 PDT 2025

Total time taken to generate the page: 0.71766 seconds