Neal Becker wrote: > Is there a function to apply a limit to an array? I want to (efficiently) do: > > y = x if x < limit, otherwise limit
What about np.clip? r. _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion