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

GitHub noreply@github....
Tue Feb 12 16:50:39 CST 2013


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 7ccf5308193eef9c5fb0a3ee3d4e84562784c31b
      https://github.com/numpy/numpy/commit/7ccf5308193eef9c5fb0a3ee3d4e84562784c31b
  Author: Sebastian Berg <sebastian@sipsolutions.net>
  Date:   2013-02-10 (Sun, 10 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: 2b76da387ef4c8a0317c80ce08e5bbab833b14e5
      https://github.com/numpy/numpy/commit/2b76da387ef4c8a0317c80ce08e5bbab833b14e5
  Author: Sebastian Berg <sebastian@sipsolutions.net>
  Date:   2013-02-10 (Sun, 10 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: 4bf5a3feb00fe1d63e7d8fcf852cbf34e22fd60b
      https://github.com/numpy/numpy/commit/4bf5a3feb00fe1d63e7d8fcf852cbf34e22fd60b
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-02-12 (Tue, 12 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 #2974 from seberg/issue-427

Fix some large array sorts and memory error handling


Compare: https://github.com/numpy/numpy/compare/b859daed214c...4bf5a3feb00f


More information about the Numpy-svn mailing list