Skip to main content

Merge and intersect sorted numpy arrays.

Project description

Numpy and Numpy arrays are a really great tool. However, intersecting and merging multiple numpy arrays is rather less performant. The current numpy implementation concatenates the two arrays and sorts the combination. If you want to merge or intersect multiple numpy arrays, there is a much faster way, by using the property, that the resulting array is sorted.

Sortednp (sorted numpy) operates on sorted numpy arrays to calculate the intersection or the union of two numpy arrays in an efficient way. The resulting array is again a sorted numpy array, which can be merged or intersected with the next array. The intended use case is that sorted numpy arrays are sorted as the basic data structure and merged or intersected at request. Typical applications include information retrieval and search engines in particular.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sortednp-0.1.0rc1.tar.gz (15.7 kB view hashes)

Uploaded Source

Built Distributions

sortednp-0.1.0rc1-cp36-cp36m-manylinux1_x86_64.whl (60.0 kB view hashes)

Uploaded CPython 3.6m

sortednp-0.1.0rc1-cp36-cp36m-manylinux1_i686.whl (62.9 kB view hashes)

Uploaded CPython 3.6m

sortednp-0.1.0rc1-cp35-cp35m-manylinux1_x86_64.whl (60.0 kB view hashes)

Uploaded CPython 3.5m

sortednp-0.1.0rc1-cp35-cp35m-manylinux1_i686.whl (62.9 kB view hashes)

Uploaded CPython 3.5m

sortednp-0.1.0rc1-cp34-cp34m-manylinux1_x86_64.whl (59.8 kB view hashes)

Uploaded CPython 3.4m

sortednp-0.1.0rc1-cp34-cp34m-manylinux1_i686.whl (62.7 kB view hashes)

Uploaded CPython 3.4m

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page