[Numpy-svn] [numpy/numpy] 3ab221: ENH: Refactor numpy ** operators for numpy scalar ...

GitHub noreply at github.com
Sat Nov 5 12:29:53 EDT 2016


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 3ab221383bb35fe15b333f75e002afae8cddc931
      https://github.com/numpy/numpy/commit/3ab221383bb35fe15b333f75e002afae8cddc931
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2016-11-01 (Tue, 01 Nov 2016)

  Changed paths:
    M numpy/core/src/umath/scalarmath.c.src

  Log Message:
  -----------
  ENH: Refactor numpy ** operators for numpy scalar integer powers.

This change is the upshot of discussion on the numpy mailing list where
it was decided that a numpy scalar integer raised to a negative integer
power should raise a ValueError, as do Numpy arrays. In particular, we
want numpy scalars and numpy 0-d arrays to have similar behavior.
Previously zero was returned for this case.


  Commit: 7e31e32f093887d5fd99f719a06bc2b5ed7dc9c8
      https://github.com/numpy/numpy/commit/7e31e32f093887d5fd99f719a06bc2b5ed7dc9c8
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2016-11-01 (Tue, 01 Nov 2016)

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

  Log Message:
  -----------
  DOC: Note change to scalar integer powers in 1.12.0 release notes.

[ci skip]


  Commit: 2272c32d90026cc07af9c8bca3c2a33feb1e788a
      https://github.com/numpy/numpy/commit/2272c32d90026cc07af9c8bca3c2a33feb1e788a
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2016-11-05 (Sat, 05 Nov 2016)

  Changed paths:
    M doc/release/1.12.0-notes.rst
    M numpy/core/src/umath/scalarmath.c.src

  Log Message:
  -----------
  Merge pull request #8231 from charris/integer-to-neg-integer-power

ENH: Refactor numpy ** operators for numpy scalar integer powers


Compare: https://github.com/numpy/numpy/compare/62046aa1f3b4...2272c32d9002


More information about the Numpy-svn mailing list