Skip to main content

Utility functions for numpy, written in cython

Project description

A small package with fast numpy routines written in cython

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

minmax1d

Calculate min. and max. value in one go

searchsorted1

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

searchsorted2

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

nearestitem

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

weightedavg

Weighted averageof a time-series

trapz

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.

Files for numpyx, version 0.5.0
Filename, size File type Python version Upload date Hashes
Filename, size numpyx-0.5.0-cp38-cp38-manylinux1_x86_64.whl (475.9 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size numpyx-0.5.0-cp38-cp38-manylinux2010_x86_64.whl (475.9 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size numpyx-0.5.0-cp39-cp39-manylinux1_x86_64.whl (434.3 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size numpyx-0.5.0-cp39-cp39-manylinux2010_x86_64.whl (434.3 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size numpyx-0.5.0.tar.gz (136.0 kB) File type Source Python version None Upload date Hashes View

Supported by

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