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 #3420 is a reply to message #3402] Wed, 25 January 1995 09:01 Go to previous messageGo to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
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.

Try this:

C = A < B

Bill Thompson
[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 10:07:39 PDT 2025

Total time taken to generate the page: 0.95667 seconds