[Numpy-svn] [numpy/numpy] 15738e: BUG: handle length-0 axes correctly in ufunc.reduc...

GitHub noreply@github....
Fri Jul 6 11:35:12 CDT 2012


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 15738e15cc80fdf1d5a2472076cdb8fde4b9a890
      https://github.com/numpy/numpy/commit/15738e15cc80fdf1d5a2472076cdb8fde4b9a890
  Author: Nathaniel J. Smith <njs@pobox.com>
  Date:   2012-06-27 (Wed, 27 Jun 2012)

  Changed paths:
    M numpy/core/src/umath/reduction.c
    M numpy/core/tests/test_ufunc.py

  Log Message:
  -----------
  BUG: handle length-0 axes correctly in ufunc.reduce without identity

In numpy 1.6, reduction operations with no identity
(e.g. numpy.maximum) gave an error iff they were asked to reduce a
0-element dimension. This regressed during the 1.7 development cycle,
so that they started giving an error if *any* dimension had 0
elements, even ones that were not reduced over. Fixes bug #2078.


  Commit: dd86cb378fb287e1e45ad8893097dc5a7f796aa8
      https://github.com/numpy/numpy/commit/dd86cb378fb287e1e45ad8893097dc5a7f796aa8
  Author: njsmith <njs@pobox.com>
  Date:   2012-07-06 (Fri, 06 Jul 2012)

  Changed paths:
    M numpy/core/src/umath/reduction.c
    M numpy/core/tests/test_ufunc.py

  Log Message:
  -----------
  Merge pull request #323 from njsmith/zero-size-reductions

BUG: handle length-0 axes correctly in ufunc.reduce without identity


Compare: https://github.com/numpy/numpy/compare/731cf3aaaa95...dd86cb378fb2


More information about the Numpy-svn mailing list