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

Home » Public Forums » archive » Re: Padding arrays - vector subscripts not working
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: Padding arrays - vector subscripts not working [message #71575] Sat, 03 July 2010 14:01 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Jul 3, 5:52 pm, James <donje...@gmail.com> wrote:
> Paulo, your explanation makes perfect sense.  I guess I was hoping
> there was a more elegant way than calculating every single 1d index
> that will be used, but your method looks good.  Thank you!

You do not need to calculate every 1D index. Only the first index is
needed. The single assignment

X[start_index]=Y

will assign all the 12 elements of Y to 12 elements of X (from
start_index to start_index+11).
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to exchange data in multi-top-level base widgets?
Next Topic: Re: REGRESS and sky background

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

Current Time: Wed Oct 08 15:07:58 PDT 2025

Total time taken to generate the page: 0.00357 seconds