[Numpy-svn] [numpy/numpy] 49bf20: BUG: Fix strides of trailing 1s when reshaping
GitHub
noreply at github.com
Thu Feb 28 09:40:07 EST 2013
Branch: refs/heads/master
Home: https://github.com/numpy/numpy
Commit: 49bf2045e1cc7d1fb7e2ce771fbb1636c9d28e5a
https://github.com/numpy/numpy/commit/49bf2045e1cc7d1fb7e2ce771fbb1636c9d28e5a
Author: Sebastian Berg <sebastian at sipsolutions.net>
Date: 2013-01-25 (Fri, 25 Jan 2013)
Changed paths:
M numpy/core/src/multiarray/shape.c
M numpy/core/tests/test_regression.py
Log Message:
-----------
BUG: Fix strides of trailing 1s when reshaping
When adding ones to the shape for non contiguous arrays reshapes
(i.e. either the first array is not contiguous or the the reshape
order does not match it). The strides of trailing ones were not
set. For example reshape of (6,) to (6,1,1). Previously this occured
rarely because of removed special handleing when only ones were
added or removed.
Commit: 0934653e151969f6912c911b5113306bd5f450f1
https://github.com/numpy/numpy/commit/0934653e151969f6912c911b5113306bd5f450f1
Author: njsmith <njs at pobox.com>
Date: 2013-02-28 (Thu, 28 Feb 2013)
Changed paths:
M numpy/core/src/multiarray/shape.c
M numpy/core/tests/test_regression.py
Log Message:
-----------
Merge pull request #2950 from seberg/issue-2949
BUG: Fix strides of trailing 1s when reshaping
Compare: https://github.com/numpy/numpy/compare/22decf9edf44...0934653e1519
More information about the Numpy-svn
mailing list