[Numpy-svn] [numpy/numpy] dbf235: BUG: ticket #2063, make unique return consistent i...

GitHub noreply at github.com
Fri Mar 30 10:29:07 EDT 2012


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: dbf235169ed3386b359caaa9217f5280bf1d6749
      https://github.com/numpy/numpy/commit/dbf235169ed3386b359caaa9217f5280bf1d6749
  Author: Bryan Van de Ven <bryan at laptop.local>
  Date:   2012-03-30 (Fri, 30 Mar 2012)

  Changed paths:
    M numpy/core/tests/test_regression.py
  M numpy/lib/arraysetops.py

  Log Message:
  -----------
  BUG: ticket #2063, make unique return consistent index.

Make unique use  mergesort when return_index is true. This quarantees that
the returned indices are of the first occurrence of the unique elements and
makes the behavior better defined and consistent.





More information about the Numpy-svn mailing list