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

Home » Public Forums » archive » Re: Pasting subarray into array with compound 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: Pasting subarray into array with compound assignment [message #53729 is a reply to message #53596] Mon, 23 April 2007 09:25 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Apr 21, 8:21 am, "m.avd...@gmail.com" <m.avd...@gmail.com> wrote:
> Thanks a lot, Vince!
> It works indeed, although i still don't understand why my code didn't.
> According to the manual, only a starting point is needed for pasting
> an array into another one...

That's true - only a "starting point" is needed when pasting. The
problem is that when you use the += assigment, the starting point is
"translated" to a scalar, i.e. the value at that starting point. The
sum of the scalar with the vector is then pasted at the starting point.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Xinteranimate and plots
Next Topic: Re: 3D congrid without interpolation

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

Current Time: Wed Oct 08 19:53:26 PDT 2025

Total time taken to generate the page: 0.00442 seconds