pydata / sparse

Sparse multi-dimensional arrays for the PyData ecosystem
https://sparse.pydata.org
BSD 3-Clause "New" or "Revised" License
579 stars 123 forks source link

RuntimeWarning: divide by zero encountered in reciprocal #24

Closed ghisvail closed 6 years ago

ghisvail commented 6 years ago

As reported during the Debian build process for version 1.0.1:

=============================== warnings summary ===============================
.pybuild/pythonX.Y_3.6/build/tests/test_core.py::test_scalar_exponentiation
  /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.6/build/tests/test_core.py:392: RuntimeWarning: divide by zero encountered in reciprocal
    assert_eq(x ** -1, a ** -1)
mrocklin commented 6 years ago

This is during a test in which we divide by zero. I'm not surprised to see this warning.

On Sat, Aug 5, 2017 at 2:03 AM, Ghislain Antony Vaillant < notifications@github.com> wrote:

As reported during the Debian build process for version 1.0.1:

=============================== warnings summary =============================== .pybuild/pythonX.Y_3.6/build/tests/test_core.py::test_scalar_exponentiation /<>/.pybuild/pythonX.Y_3.6/build/tests/test_core.py:392: RuntimeWarning: divide by zero encountered in reciprocal assert_eq(x -1, a -1)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mrocklin/sparse/issues/24, or mute the thread https://github.com/notifications/unsubscribe-auth/AASszDjY0yPZhFsVSnzGKUXfHisreftwks5sVC_GgaJpZM4OuaMW .

ghisvail commented 6 years ago

Ok, so that was intentional. Just wanted to be sure. Closing.