Wonderful, it works, thanks!
Michele
--- Discussion of Numerical Python
numpy-discussion@lists.sourceforge.net wrote:
On 10/12/06, Michele Vallisneri
[EMAIL PROTECTED] wrote:
Does anybody here have experience about offering
the array interface
from a SWIG-wrapped C struct?
I
Using numpy 1.0, why does
a = numpy.array([0.0,1.0,2.0],'d')
numpy.where(a
== 0.0,1,1/a)
give the correct result, but with the warning Warning: divide
by zero encountered in divide?
? I thought that the point of where was
that the second expression is never used for the elements where