[Numpy-svn] [numpy/numpy] de681b: ENH: Detect all functions in complex.h

GitHub noreply at github.com
Fri Feb 13 12:44:17 EST 2015


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: de681b72314d666cb014b2f11358de66a3aaa337
      https://github.com/numpy/numpy/commit/de681b72314d666cb014b2f11358de66a3aaa337
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-01-28 (Wed, 28 Jan 2015)

  Changed paths:
    M numpy/core/setup_common.py

  Log Message:
  -----------
  ENH: Detect all functions in complex.h

Set the HAVE_XXXX macros for all of the following functions.

    csin,   ccos,   ctan
    casin,  cacos,  catan
    csinh,  ccosh,  ctanh
    casinh, cacosh, catanh
    cexp,   clog,   cpow
    cabs,   csqrt,  carg
    cimag,  creal,  conj,
    cproj

The macros do not need to be used, but it is good to have all of
them available.


  Commit: c1f7e0bf241978893d4d610b84597b897fde8839
      https://github.com/numpy/numpy/commit/c1f7e0bf241978893d4d610b84597b897fde8839
  Author: Eric Moore <ewm at redtetrahedron.org>
  Date:   2015-02-13 (Fri, 13 Feb 2015)

  Changed paths:
    M numpy/core/include/numpy/npy_math.h
    M numpy/core/src/npymath/npy_math_complex.c.src

  Log Message:
  -----------
  ENH: Implement more fallback complex functions for npy_math.

The new functions added:

    npy_ctan,
    npy_cacos, npy_casin, npy_catan
    npy_ccosh, npy_csinh, npy_ctanh
    npy_cacosh, npy_casinh, npy_catanh


  Commit: 690682349a7339eafffbfaf3189e6bf4cb9259c4
      https://github.com/numpy/numpy/commit/690682349a7339eafffbfaf3189e6bf4cb9259c4
  Author: Eric Moore <ewm at redtetrahedron.org>
  Date:   2015-02-13 (Fri, 13 Feb 2015)

  Changed paths:
    M numpy/core/src/umath/funcs.inc.src

  Log Message:
  -----------
  ENH: Use the new complex functions in npymath for our ufuncs.

This should clear up such things as

>>> np.tanh(372 + 1j)
(nan+nan*j)


  Commit: 34b5f9f631fe268559c4a896fdf19e91aedd4a35
      https://github.com/numpy/numpy/commit/34b5f9f631fe268559c4a896fdf19e91aedd4a35
  Author: Eric Moore <ewm at redtetrahedron.org>
  Date:   2015-02-13 (Fri, 13 Feb 2015)

  Changed paths:
    M numpy/core/tests/test_umath.py

  Log Message:
  -----------
  TST: Add tests for complex ufuncs.

The test for precision needed to have difference changed from 2*eps to
2.1*eps for the system supplied sinh.


  Commit: 44d0c52ccd3de10874154bbe1ceab6ddade0afca
      https://github.com/numpy/numpy/commit/44d0c52ccd3de10874154bbe1ceab6ddade0afca
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-02-13 (Fri, 13 Feb 2015)

  Changed paths:
    M numpy/core/src/npymath/npy_math_complex.c.src

  Log Message:
  -----------
  BUG: Do not use system cpow directly.

Numpy computes small integer powers by multiplication, this leads to
different results than the system cpow for such integers. In particular,
cpow((0 + inf*1j), 2) returns (-inf + 0j) rather than (-inf + nanj). The
system version probably makes more sense, but better to keep
compatibility at this point. We could fix our results using cproj.


  Commit: 3a4127bf53bc116eb5872d44e76ad498215b8637
      https://github.com/numpy/numpy/commit/3a4127bf53bc116eb5872d44e76ad498215b8637
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-02-13 (Fri, 13 Feb 2015)

  Changed paths:
    M numpy/core/setup_common.py
    M numpy/core/src/private/npy_config.h

  Log Message:
  -----------
  BUG: Disable broken complex trig functions for early linux glibc.

The library functions casin, casinh, catan, catanh are inaccurate
in glibc version < 2.16, so use the numpy fallback functions for
those.


  Commit: f9c377680e8e30fe08495ef3181740437a4fb219
      https://github.com/numpy/numpy/commit/f9c377680e8e30fe08495ef3181740437a4fb219
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-02-13 (Fri, 13 Feb 2015)

  Changed paths:
    M doc/release/1.10.0-notes.rst

  Log Message:
  -----------
  DOC: Document changes in npymath library.

Document the increased use of the system library for C99 complex
functions and the addition of improved fallback functions for

* npy_ctan,
* npy_cacos, npy_casin, npy_catan
* npy_ccosh, npy_csinh, npy_ctanh,
* npy_cacosh, npy_casinh, npy_catanh


  Commit: 35d01b2a7cd38b2fda54b148402919aa1dd7e9c4
      https://github.com/numpy/numpy/commit/35d01b2a7cd38b2fda54b148402919aa1dd7e9c4
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-02-13 (Fri, 13 Feb 2015)

  Changed paths:
    M doc/release/1.10.0-notes.rst
    M numpy/core/include/numpy/npy_math.h
    M numpy/core/setup_common.py
    M numpy/core/src/npymath/npy_math_complex.c.src
    M numpy/core/src/private/npy_config.h
    M numpy/core/src/umath/funcs.inc.src
    M numpy/core/tests/test_umath.py

  Log Message:
  -----------
  Merge pull request #5518 from charris/simple-gh-3010

BUG: Simplified fix, Overflow in tan and tanh for large complex values.


Compare: https://github.com/numpy/numpy/compare/ccc810e4a504...35d01b2a7cd3


More information about the Numpy-svn mailing list