Thanks to visit codestin.com
Credit goes to github.com

Skip to content

inf/nan handling in umath is undefined (Trac #886) #1484

Closed
@numpy-gitbot

Description

@numpy-gitbot

Original ticket http://projects.scipy.org/numpy/ticket/886 on 2008-08-13 by @pv, assigned to unknown.

The complex-valued ufuncs in numpy.core.umath do not handle inf, nan, and floating-point signals in a well-defined way. The results are platform-dependent. (See eg. #1463 and discussion following [1]).

It might be useful to follow the C99 standard [2] here, possibly looking up how things were recently improved in Python's cmath module.

Some test cases for C99 behavior were backed out in r5644; when this issue is addressed, it would make sense to resurrect them.

[1] http://article.gmane.org/gmane.comp.python.numeric.general/23497

[2] http://www.open-std.org/jtc1/sc22/wg14/www/standards

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions