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

Home » Public Forums » archive » 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
Need efficient routine to calculate max of two arrays [message #3432] Tue, 24 January 1995 12:51 Go to previous message
gallery is currently offline  gallery
Messages: 4
Registered: August 1994
Junior Member
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,



--
William O. Gallery gallery@aer.com
Atmospheric & Environmental Research Voice(617) 349-2284
840 Memorial Drive (617) 547-6207
Cambridge, Massachusetts 02139 FAX (617) 661-6479
[Message index]
 
Read Message
Read Message
Previous Topic: PV~Wave 5.0 for VAX/VMS??? is it available yet?
Next Topic: Referencing elements of array expressions

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

Current Time: Fri Nov 28 17:02:06 PST 2025

Total time taken to generate the page: 1.44421 seconds