Christopher Barker wrote:
> I need to do something I thought would be simple -- set 
> all the values of an array to some minimum. so I did this:

Does this do what you want?
idx = np.abs(a)<min_value
a[idx] = min_value

Cheers,
Alan


_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to