Oh, I pressed "send" too early.
Just an addition:
numpy.where creates a new array from some condition. If you only want to 
change elements of an existing array that satisfies a given condition, 
indexing is far more efficient: no temporary is created. Hence the suggestion 
of 
a[a<0]
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to