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

Home » Public Forums » archive » "clamping" an array to a maximum value?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
"clamping" an array to a maximum value? [message #13962] Mon, 21 December 1998 00:00
dEdmundson is currently offline  dEdmundson
Messages: 23
Registered: February 1998
Junior Member
It's late here in Oz and my brain refuses to find an
easy solution to the following seemingly trivial
problem:

I have a 2d array of floats. All elements having
a value greater than max_val I want to set equal
to max_val. My solution is a rather complicated-
looking use of the "where" function.

Thanks for any help you can provide.

Darran.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: tvrd and mpeg's
Next Topic: using octal codes for special characters

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

Current Time: Wed Oct 08 19:51:09 PDT 2025

Total time taken to generate the page: 0.00569 seconds