[Numpy-svn] [numpy/numpy] 5a3b0a: BUG: Delay npyiter size check when size may change

GitHub noreply at github.com
Wed Mar 12 12:10:48 EDT 2014


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 5a3b0abf6da4a7357e24a8243bee14b3cc7a242f
      https://github.com/numpy/numpy/commit/5a3b0abf6da4a7357e24a8243bee14b3cc7a242f
  Author: Sebastian Berg <sebastian at sipsolutions.net>
  Date:   2014-03-12 (Wed, 12 Mar 2014)

  Changed paths:
    M doc/release/1.9.0-notes.rst
    M doc/source/reference/c-api.iterator.rst
    M numpy/core/src/multiarray/multiarray_tests.c.src
    M numpy/core/src/multiarray/nditer_api.c
    M numpy/core/src/multiarray/nditer_constr.c
    M numpy/core/src/multiarray/nditer_pywrap.c
    M numpy/core/src/multiarray/nditer_templ.c.src
    M numpy/core/tests/test_nditer.py
    M numpy/linalg/tests/test_regression.py

  Log Message:
  -----------
  BUG: Delay npyiter size check when size may change

When a multi index is tracked and RemoveAxis can be called, the
size of the iterator may still change. This was causing failures
for example for the SVD, because the gufunc machinery requires
a temporarily larger iterator for output allocation.

Thanks to Jaime (jaime.frio at gmail.com) for noting that this is
plausible since the size check can be delayed pretty ok up
until GetIterNext (or similar functions).

Closes gh-4442


  Commit: 12472aab0426b98edbe4dc52f4f48c92d11c99bd
      https://github.com/numpy/numpy/commit/12472aab0426b98edbe4dc52f4f48c92d11c99bd
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2014-03-12 (Wed, 12 Mar 2014)

  Changed paths:
    M doc/release/1.9.0-notes.rst
    M doc/source/reference/c-api.iterator.rst
    M numpy/core/src/multiarray/multiarray_tests.c.src
    M numpy/core/src/multiarray/nditer_api.c
    M numpy/core/src/multiarray/nditer_constr.c
    M numpy/core/src/multiarray/nditer_pywrap.c
    M numpy/core/src/multiarray/nditer_templ.c.src
    M numpy/core/tests/test_nditer.py
    M numpy/linalg/tests/test_regression.py

  Log Message:
  -----------
  Merge pull request #4466 from seberg/delay-size-nditer-size-check

BUG: Delay npyiter size check when size may change


Compare: https://github.com/numpy/numpy/compare/424b56efe73c...12472aab0426


More information about the Numpy-svn mailing list