[Numpy-svn] [numpy/numpy] 2cb0dd: BUG: Fix iteration over reversed subspaces in mapi...

GitHub noreply at github.com
Tue Nov 22 15:31:13 EST 2016


  Branch: refs/heads/maintenance/1.12.x
  Home:   https://github.com/numpy/numpy
  Commit: 2cb0ddfcc6d83e68c45a9fd9bb99357c0ba8b7ac
      https://github.com/numpy/numpy/commit/2cb0ddfcc6d83e68c45a9fd9bb99357c0ba8b7ac
  Author: Yu Feng <rainwoodman at gmail.com>
  Date:   2016-11-22 (Tue, 22 Nov 2016)

  Changed paths:
    M numpy/core/src/multiarray/lowlevel_strided_loops.c.src
    M numpy/core/tests/test_indexing.py

  Log Message:
  -----------
  BUG: Fix iteration over reversed subspaces in mapiter_ at name@.

As stated in #8264, before this patch numpy crashes when the
subspace of iterator has negative strides on the faster
resetting branch for trivially iterable subspaces in mapiter_ at name@.

Noticing the offset between ptr and first item in subspace is
constant, we calculate the offset from the first iteration and use
it onwards.

Fixes #8264


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

  Changed paths:
    M numpy/core/src/multiarray/lowlevel_strided_loops.c.src
    M numpy/core/tests/test_indexing.py

  Log Message:
  -----------
  Merge pull request #8296 from charris/backport-8284

BUG: Fix iteration over reversed subspaces in mapiter_ at name@.


Compare: https://github.com/numpy/numpy/compare/7912e9c86894...068ce97b8496


More information about the Numpy-svn mailing list