Skip to main content

Utility functions for numpy, written in cython

Project description

A small package with fast numpy routines written in cython


pip install numpyx

Functions in this package

All functions here are specialized for double arrays only

Short-cut functions

These functions are similar to numpy functions but are faster by exiting out of a loop when one element satisfies the given condition

  • any_less_than
  • any_less_or_equal_than
  • any_greater_than
  • any_greater_or_equal_than
  • any_equal_to
  • array_is_sorted
  • allequal


Calculate min. and max. value in one go


like search sorted, but for 1d double arrays. It is faster than the more generic numpy version


like search sorted but allows to search across any column of a 2d array


Return the index of the item in an array which is nearest to a given value. The array does not need to be sorted (this is a simple linear search)


For any value of an array, search the nearest item in another array and put its value in the output result


Weighted averageof a time-series


trapz integration specialized for contiguous / double arrays. Quite faster than generic numpy/scipy

Project details

Download files

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

Built Distributions

numpyx-1.2.2-pp38-pypy38_pp73-win_amd64.whl (94.2 kB view hashes)

Uploaded pp38

numpyx-1.2.2-cp310-cp310-win_amd64.whl (101.2 kB view hashes)

Uploaded cp310

numpyx-1.2.2-cp310-cp310-win32.whl (87.0 kB view hashes)

Uploaded cp310

numpyx-1.2.2-cp39-cp39-win_amd64.whl (101.3 kB view hashes)

Uploaded cp39

numpyx-1.2.2-cp39-cp39-win32.whl (87.0 kB view hashes)

Uploaded cp39

numpyx-1.2.2-cp38-cp38-win_amd64.whl (101.2 kB view hashes)

Uploaded cp38

numpyx-1.2.2-cp38-cp38-win32.whl (86.9 kB view hashes)

Uploaded cp38

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page