On Thu, Jan 15, 2009 at 11:27 PM, Neal Becker <ndbeck...@gmail.com> wrote:
> Is there a function to apply a limit to an array?  I want to (efficiently) do:
>
> y = x if x < limit, otherwise limit

Would clip do ? For native types, it should be relatively fast, in
particular if you use the argout argument,

David
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to