[Numpy-svn] [numpy/numpy] e565af: BUG: Fix bug with size 1-dims in CreateSortedStrid...

GitHub noreply@github....
Fri Nov 16 15:28:30 CST 2012


  Branch: refs/heads/maintenance/1.7.x
  Home:   https://github.com/numpy/numpy
  Commit: e565afb78cdc13aa3274c1cd505d3944c60cf09f
      https://github.com/numpy/numpy/commit/e565afb78cdc13aa3274c1cd505d3944c60cf09f
  Author: Sebastian Berg <sebastian@sipsolutions.net>
  Date:   2012-10-23 (Tue, 23 Oct 2012)

  Changed paths:
    M numpy/core/src/multiarray/ctors.c
    M numpy/core/src/multiarray/dtype_transfer.c
    M numpy/core/src/multiarray/shape.c
    M numpy/core/src/umath/reduction.c
    M numpy/core/tests/test_api.py

  Log Message:
  -----------
  BUG: Fix bug with size 1-dims in CreateSortedStridePerm

This changes CreateSortedStridedPerm to not use the shape
for special casing 1-dim axis. The cleanup does not seem
to be useful in most cases and the current way is buggy.
Also insert stride so that reduce with keepdims=1 will
keep contiguous arrays contiguous. "Closes Issue #434"


  Commit: 3ecbac56ae134c9468fbf041d73e58f002a553a1
      https://github.com/numpy/numpy/commit/3ecbac56ae134c9468fbf041d73e58f002a553a1
  Author: Ondřej Čertík <ondrej.certik@gmail.com>
  Date:   2012-11-16 (Fri, 16 Nov 2012)

  Changed paths:
    M numpy/core/src/multiarray/ctors.c
    M numpy/core/src/multiarray/dtype_transfer.c
    M numpy/core/src/multiarray/shape.c
    M numpy/core/src/umath/reduction.c
    M numpy/core/tests/test_api.py

  Log Message:
  -----------
  Merge pull request #2696 from seberg/issue434

BUG: Fix bug with size 1-dims in CreateSortedStridePerm


Compare: https://github.com/numpy/numpy/compare/8ab301afe1f7...3ecbac56ae13


More information about the Numpy-svn mailing list