[Numpy-svn] [numpy/numpy] 81aa8f: MAINT: explicitly check for NaNs in allclose(). Cl...

GitHub noreply at github.com
Sun Mar 25 12:29:58 EDT 2012


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 81aa8f25ce05df3e9d27bf2beee740c1f2ce7e36
      https://github.com/numpy/numpy/commit/81aa8f25ce05df3e9d27bf2beee740c1f2ce7e36
  Author: Ralf Gommers <ralf.gommers at googlemail.com>
  Date:   2012-03-25 (Sun, 25 Mar 2012)

  Changed paths:
    M numpy/core/numeric.py

  Log Message:
  -----------
  MAINT: explicitly check for NaNs in allclose(). Closes #1905.

Also clean up the logic behind handling infs.

The removed seterr call becomes unnecessary when explicitly checking for NaNs.
It was introduced only recently in c4c0e985.


  Commit: aea76b85ad98c5fe89582d70344ca768b6cffec1
      https://github.com/numpy/numpy/commit/aea76b85ad98c5fe89582d70344ca768b6cffec1
  Author: Ralf Gommers <ralf.gommers at googlemail.com>
  Date:   2012-03-25 (Sun, 25 Mar 2012)

  Changed paths:
    M numpy/core/numeric.py

  Log Message:
  -----------
  DOC: allclose: document better what happens when Infs or NaNs are present.


Compare: https://github.com/numpy/numpy/compare/3503c5f...aea76b8


More information about the Numpy-svn mailing list