numeric.scipy.org    Version 1.0b1 API Documentation generated by Endo 2006-08-14

Set operations for 1D numeric arrays based on sort() function.

Contains:
ediff1d, unique1d, intersect1d, intersect1d_nu, setxor1d, setmember1d, union1d, setdiff1d

Concerning the speed, test_unique1d_speed() reveals that up to 10000000 elements unique1d() is about 10 times faster than the standard dictionary-based numpy.unique().

Limitations: Except unique1d, union1d and intersect1d_nu, all functions expect inputs with unique elements. Speed could be gained in some operations by an implementaion of sort(), that can provide directly the permutation vectors, avoiding thus calls to argsort().

To do: Optionally return indices analogously to unique1d for all functions.

Author: Robert Cimrman

Function summary

Functions

Imported names

Local nameRefers to
numpynumpy
timetime