Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

numpyx

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

numpyx

Utility functions for numpy, written in cython

  • 1.4.0
  • PyPI
  • Socket score

Maintainers
1

A small package with fast numpy routines written in cython

Documentation

https://numpyx.readthedocs.io

Installation

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

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


nearestidx
~~~~~~~~~~

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)


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 

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc