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

Home » Public Forums » archive » Re: Help: how to do ?
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: Help: how to do ? [message #15273 is a reply to message #15269] Tue, 04 May 1999 00:00 Go to previous messageGo to previous message
Pavel Romashkin is currently offline  Pavel Romashkin
Messages: 166
Registered: April 1999
Senior Member
Tri VU KHAC wrote:

> Hi again,
> I post this message, but I think I have a better solution ;-)
> Just:
> A[*, 0] = A1[*, 0] + A2[0]
> A[*, 1] = A1[*, 1] + A2[1]
> A[*, 2] = A1[*, 2] + A2[2]
> Why did I post this message ? Because it does not look very nice to
> write.

You could even go without A1 at all, like

A[*, 0] = A2[0] + 0.0
A[*, 1] = A2[1] + 1.0
A[*, 2] = A2[2] + 2.0

if you weren't going to use this in a more general way than you
describe. Eliminate the first line as it does insignificant changes, and
the code will be even nicer to write. You may find this way inconvenient
if you go to more than 500 rows though, as the code won't fit on the
screen. Why did I post this message? Because I think that previous two
solutions looked nicer to write.
Cheers,
Pavel
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Experimental FAQ
Next Topic: New procedure to plot great circles on a map

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

Current Time: Sat Oct 18 13:45:31 PDT 2025

Total time taken to generate the page: 1.91815 seconds