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

Home » Public Forums » archive » Re: Need efficient routine to calculate max of two arrays
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: Need efficient routine to calculate max of two arrays [message #3421 is a reply to message #3420] Wed, 25 January 1995 09:17 Go to previous messageGo to previous message
kucera is currently offline  kucera
Messages: 7
Registered: June 1994
Junior Member
In article <3g3p8i$1o6@cobra.aer.com>, gallery@aer.com (William O. Gallery) writes...
> Here is the problem:
>
> There are two arrays: a and b of equal length, I want to calculate
> an array c of the same length so that:
> c(i) = min(a(i),b(i))
>
> For efficiency, I want to use vectors and not a do loop.
>
> Any suggestions? This would seem to be a common enough problem,
>
>

c = a < b
Terry Kucera
kucera@stars.gsfc.nasa.gov
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: emacs and IDL (typos in URLs)
Next Topic: floating pt. sliders....

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

Current Time: Fri Oct 10 17:51:57 PDT 2025

Total time taken to generate the page: 0.16175 seconds