[Numpy-svn] [numpy/numpy] 612cac: ENH: Allow rolling multiple axes at the same time.

GitHub noreply at github.com
Sat Apr 2 16:07:07 EDT 2016


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 612caca61f82e3e20117ec5917d71fd0f48c42ea
      https://github.com/numpy/numpy/commit/612caca61f82e3e20117ec5917d71fd0f48c42ea
  Author: Antony Lee <anntzer.lee at gmail.com>
  Date:   2016-04-02 (Sat, 02 Apr 2016)

  Changed paths:
    M doc/release/1.12.0-notes.rst
    M numpy/core/numeric.py
    M numpy/core/tests/test_numeric.py

  Log Message:
  -----------
  ENH: Allow rolling multiple axes at the same time.

A quick test suggests that this implementation from @seberg, relying on
slices rather than index arrays, is 1.5~3x faster than the previous (1D)
roll (depending on the axis).

Also switched the error message for invalid inputs to match the one of
ufuncs, because the axis can actually also be negative.


  Commit: 4b228a5d52df82c95f28634525b1c2ba412b1929
      https://github.com/numpy/numpy/commit/4b228a5d52df82c95f28634525b1c2ba412b1929
  Author: seberg <sebastian at sipsolutions.net>
  Date:   2016-04-02 (Sat, 02 Apr 2016)

  Changed paths:
    M doc/release/1.12.0-notes.rst
    M numpy/core/numeric.py
    M numpy/core/tests/test_numeric.py

  Log Message:
  -----------
  Merge pull request #7438 from anntzer/multidim-roll

Allow rolling multiple axes at the same time.


Compare: https://github.com/numpy/numpy/compare/2af06c804931...4b228a5d52df


More information about the Numpy-svn mailing list