[SciPy-dev] Have divide by zero handling changed lately?
Thu Mar 22 13:11:46 CDT 2007
have numpy's handling of divide by zero changed lately?
v = numpy.asarray([0, 1], dtype='d')
print 1/numpy.asarray(, dtype='d')
In the code above 1.0/v doesn't generate a warning, that can't be right?
While writing this I actually tried some more things:
1.0/numpy.float32(0) has correct behavior (generates a warning)
whereas 1.0/numpy.float64(0) silently gives us an inf.
This is with
i686 AMD Sempron(tm) 2600+ AuthenticAMD GNU/Linux
More information about the Scipy-dev