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.

Source Distribution

numpyx-1.3.1.tar.gz (168.2 kB view hashes)

Uploaded source

Built Distributions

numpyx-1.3.1-cp311-cp311-win_amd64.whl (103.2 kB view hashes)

Uploaded cp311

numpyx-1.3.1-cp311-cp311-win32.whl (88.7 kB view hashes)

Uploaded cp311

numpyx-1.3.1-cp311-cp311-macosx_11_0_arm64.whl (106.5 kB view hashes)

Uploaded cp311

numpyx-1.3.1-cp311-cp311-macosx_10_9_x86_64.whl (117.5 kB view hashes)

Uploaded cp311

numpyx-1.3.1-cp310-cp310-win_amd64.whl (104.1 kB view hashes)

Uploaded cp310

numpyx-1.3.1-cp310-cp310-win32.whl (89.5 kB view hashes)

Uploaded cp310

numpyx-1.3.1-cp310-cp310-macosx_11_0_arm64.whl (108.1 kB view hashes)

Uploaded cp310

numpyx-1.3.1-cp310-cp310-macosx_10_9_x86_64.whl (119.0 kB view hashes)

Uploaded cp310

numpyx-1.3.1-cp39-cp39-win_amd64.whl (105.2 kB view hashes)

Uploaded cp39

numpyx-1.3.1-cp39-cp39-win32.whl (90.4 kB view hashes)

Uploaded cp39

numpyx-1.3.1-cp39-cp39-macosx_11_0_arm64.whl (108.2 kB view hashes)

Uploaded cp39

numpyx-1.3.1-cp39-cp39-macosx_10_9_x86_64.whl (119.1 kB view hashes)

Uploaded cp39

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