Jan. 15, 2009
2:27 p.m.
Is there a function to apply a limit to an array? I want to (efficiently) do: y = x if x < limit, otherwise limit
2:32 p.m.
On Thu, Jan 15, 2009 at 11:27 PM, Neal Becker <ndbecker2@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
6442
Age (days ago)
6442
Last active (days ago)
2 comments
3 participants
participants (3)
-
David Cournapeau -
Neal Becker -
Robert Cimrman