Home

Awesome

numpy-minmax: a fast function for finding the minimum and maximum value in a NumPy array

NumPy lacked an optimized minmax function, so we wrote our own. At Nomono, we use it for audio processing, but it can be applied any kind of float32 ndarray.

Installation

PyPI version python 3.8, 3.9, 3.10, 3.11, 3.12 os: Linux, macOS, Windows

$ pip install numpy-minmax

Usage

import numpy_minmax
import numpy as np

arr = np.arange(1337, dtype=np.float32)
min_val, max_val = numpy_minmax.minmax(arr)  # 0.0, 1336.0

Changelog

[0.3.1] - 2024-08-15

Changes

For the complete changelog, go to CHANGELOG.md

Development

Running benchmarks

Acknowledgements

This library is maintained/backed by Nomono, a Norwegian audio AI startup.