[Numpy-svn] [numpy/numpy] ead4a9: BUG: Fix dtypes in sorting functions to npy_intp

GitHub noreply@github....
Tue Feb 26 15:19:17 CST 2013


  Branch: refs/heads/maintenance/1.7.x
  Home:   https://github.com/numpy/numpy
  Commit: ead4a95db30465d175180f7e8e9a9a2502a71d60
      https://github.com/numpy/numpy/commit/ead4a95db30465d175180f7e8e9a9a2502a71d60
  Author: Sebastian Berg <sebastian@sipsolutions.net>
  Date:   2013-02-13 (Wed, 13 Feb 2013)

  Changed paths:
    M numpy/core/src/multiarray/item_selection.c

  Log Message:
  -----------
  BUG: Fix dtypes in sorting functions to npy_intp

Some of the iteration variables were int, causing sorts to fail for large
arrays. Fixes github issue 427.


  Commit: 0a343f32e2a0f6e9f76d275da276d005022af49e
      https://github.com/numpy/numpy/commit/0a343f32e2a0f6e9f76d275da276d005022af49e
  Author: Sebastian Berg <sebastian@sipsolutions.net>
  Date:   2013-02-13 (Wed, 13 Feb 2013)

  Changed paths:
    M numpy/core/src/multiarray/item_selection.c
    M numpy/core/src/npysort/mergesort.c.src

  Log Message:
  -----------
  BUG: Fix reporting of memory error inside sorting

PyDataMem_NEW was not checked for error and the occurance of
errors not returned correctly in new_sort. Also for PyArray_LexSort
and new_argsort it should now raise MemoryError correctly.
This is done by setting PyErr_NoMemory() when no error is already
present, as the low level sorting can only fail for this reason.


  Commit: aede7e07e567b10d3e59bdee13b8c30f75175545
      https://github.com/numpy/numpy/commit/aede7e07e567b10d3e59bdee13b8c30f75175545
  Author: njsmith <njs@pobox.com>
  Date:   2013-02-26 (Tue, 26 Feb 2013)

  Changed paths:
    M numpy/core/src/multiarray/item_selection.c
    M numpy/core/src/npysort/mergesort.c.src

  Log Message:
  -----------
  Merge pull request #2985 from seberg/backport-large-sort-fixes

Backport large sort fixes


Compare: https://github.com/numpy/numpy/compare/41920404d010...aede7e07e567


More information about the Numpy-svn mailing list