[Numpy-svn] [numpy/numpy] 2be873: BUG: Fix CheckStrides and strides setter checks fo...

GitHub noreply at github.com
Sun Jan 6 05:40:56 EST 2013


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 2be873f9590d1c68f8cf2357cd0a1c72bd5874ed
      https://github.com/numpy/numpy/commit/2be873f9590d1c68f8cf2357cd0a1c72bd5874ed
  Author: Sebastian Berg <sebastian at sipsolutions.net>
  Date:   2013-01-03 (Thu, 03 Jan 2013)

  Changed paths:
    M numpy/core/src/multiarray/arrayobject.c
    M numpy/core/src/multiarray/getset.c
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  BUG: Fix CheckStrides and strides setter checks for available memory

This changes the logic of PyArray_CheckStrides to really check the
full extent the new array will have. It also changes the stride
setting to calculate the full real extent of the underlying array
without assuming (usually correctly) that the strides of the base
array are regular.

Add some tests for cases that previously failed.
This "closes Issue gh-2503"


  Commit: 0aaf70bd8b9cf149dbde17dc48dff228df180324
      https://github.com/numpy/numpy/commit/0aaf70bd8b9cf149dbde17dc48dff228df180324
  Author: Sebastian Berg <sebastian at sipsolutions.net>
  Date:   2013-01-03 (Thu, 03 Jan 2013)

  Changed paths:
    M numpy/core/src/multiarray/arrayobject.c
    M numpy/core/src/multiarray/common.c
    M numpy/core/src/multiarray/common.h
    M numpy/core/src/multiarray/getset.c
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  MAINT: Move offset calculations into special function

Also adds a test to check offset calculation is correct when
setting strides for a base array with negative strides.


  Commit: 1981d0640d6a598a043379be43d19dcf590823f1
      https://github.com/numpy/numpy/commit/1981d0640d6a598a043379be43d19dcf590823f1
  Author: Sebastian Berg <sebastian at sipsolutions.net>
  Date:   2013-01-05 (Sat, 05 Jan 2013)

  Changed paths:
    M numpy/core/src/multiarray/common.c
    M numpy/core/src/multiarray/common.h
    M numpy/core/src/multiarray/getset.c

  Log Message:
  -----------
  MAINT: Minor cleanup

Adding const and removing old comment.


  Commit: 161bfe73e006af7c71db373aa99bdecce32f9e2a
      https://github.com/numpy/numpy/commit/161bfe73e006af7c71db373aa99bdecce32f9e2a
  Author: seberg <sebastian at sipsolutions.net>
  Date:   2013-01-06 (Sun, 06 Jan 2013)

  Changed paths:
    M numpy/core/src/multiarray/arrayobject.c
    M numpy/core/src/multiarray/common.c
    M numpy/core/src/multiarray/common.h
    M numpy/core/src/multiarray/getset.c
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  Merge pull request #2882 from seberg/issue2503

BUG: Fix CheckStrides and strides setter checks for available memory


Compare: https://github.com/numpy/numpy/compare/22ad3acca6cb...161bfe73e006


More information about the Numpy-svn mailing list