numpy-minmax
A fast python library for finding both min and max value in a NumPy array
Decision gist · record as of 2026-08-14
Yes, if you have a workload that repeatedly computes both min and max on float32 NumPy arrays and latency matters. The package is actively maintained, has no security issues, carries a permissive MIT license, and offers a documented performance advantage. Install friction is moderate due to compilation, but wheels are available for common platforms and Python versions. Not worth installing if you rarely need both extrema together or if your arrays are primarily int16 or non-contiguous.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires numpy and cffi as runtime dependencies; C compiler needed at install time.
- Medium install friction due to compiled C extensions with cffi and numpy dependencies.
- The package is actively maintained with a recent release and broad platform coverage (macOS, Linux, Windows across multiple architectures and Python versions 3.10–3.14).
License · maintenance · safety
permissive license (permissive) — MIT License permits unrestricted use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
last release 2026-06-26 (49 days) · last repo commit 2026-07-20 · 15 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 204,127 downloads/mo, #9,616 on PyPI
Alternatives
Verify before relying
pip install numpy-minmax
import numpy_minmax
import numpy as np
arr = np.arange(1337, dtype=np.float32)
min_val, max_val = numpy_minmax.minmax(arr)- Whether the 2.3x speedup claim holds across different CPU architectures and numpy versions beyond 1.24–1.26.
- Performance characteristics for int16 arrays and the exact conditions triggering fallback to numpy.amin/amax.
- Compatibility with non-standard array layouts or memory-mapped arrays.
What it is and what it does
numpy-minmax is a specialized library that computes both the minimum and maximum values of a NumPy array in a single pass using C code with AVX/AVX512 SIMD instructions. It targets the common case where you need both extrema but NumPy's separate amin and amax functions require two passes. The package is optimized for float32 arrays that are C-contiguous, F-contiguous, or 1D strided; it also handles contiguous int16 arrays. For other array layouts (strided arrays with ndim ≥ 2), it falls back to NumPy's standard functions.
The library depends on numpy and cffi and is distributed as compiled wheels for Python 3.10–3.14 across macOS (ARM64), Linux (x86_64, aarch64, musllinux variants), and Windows. It is actively maintained, with the latest release 49 days old, and carries no known security vulnerabilities. The project originated at Nomono, an audio AI startup, and is used for audio processing but applies to any float32 workload where both extrema are needed.
Use it for
- Audio signal processing pipelines that need to normalize or clip audio samples by finding their dynamic range in one operation.
- Real-time data streaming where you compute min/max statistics on fixed-size buffers for monitoring or scaling.
- Scientific computing workflows that repeatedly compute both extrema on large float32 arrays and need lower latency.
- Batch image or signal processing where normalization to [0, 1] or [-1, 1] requires both bounds simultaneously.
- Performance-critical loops in numerical simulations where the overhead of two separate NumPy calls is measurable.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you have a workload that repeatedly computes both min and max on float32 NumPy arrays and latency matters.
The package is actively maintained, has no security issues, carries a permissive MIT license, and offers a documented performance advantage. Install friction is moderate due to compilation, but wheels are available for common platforms and Python versions. Not worth installing if you rarely need both extrema together or if your arrays are primarily int16 or non-contiguous.
Install
numpy-minmax on PyPI
Before you install
Medium install friction due to compiled C extensions with cffi and numpy dependencies. The package is actively maintained with a recent release and broad platform coverage (macOS, Linux, Windows across multiple architectures and Python versions 3.10–3.14).
Requires numpy and cffi as runtime dependencies; C compiler needed at install time.
License in practice
MIT License permits unrestricted use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install numpy-minmax
import numpy_minmax
import numpy as np
arr = np.arange(1337, dtype=np.float32)
min_val, max_val = numpy_minmax.minmax(arr)
Verify before relying
- Whether the 2.3x speedup claim holds across different CPU architectures and numpy versions beyond 1.24–1.26.
- Performance characteristics for int16 arrays and the exact conditions triggering fallback to numpy.amin/amax.
- Compatibility with non-standard array layouts or memory-mapped arrays.
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | 2 packagescffinumpy |
| Maintenance | Actively maintained 49 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 204,127 / month, #9,616 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Multimedia :: Sound/AudioTopic :: Scientific/EngineeringTopic :: Software Development :: Libraries |
Evidence: numpy_minmax-0.6.0-cp310-cp310-macosx_11_0_arm64.whl; numpy_minmax-0.6.0-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; numpy_minmax-0.6.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; numpy_minmax-0.6.0-cp310-cp310-musllinux_1_2_aarch64.whl; numpy_minmax-0.6.0-cp310-cp310-musllinux_1_2_x86_64.whl; numpy_minmax-0.6.0-cp310-cp310-win_amd64.whl; numpy_minmax-0.6.0-cp311-cp311-macosx_11_0_arm64.whl; numpy_minmax-0.6.0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; numpy_minmax-0.6.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; numpy_minmax-0.6.0-cp311-cp311-musllinux_1_2_aarch64.whl; numpy_minmax-0.6.0-cp311-cp311-musllinux_1_2_x86_64.whl; numpy_minmax-0.6.0-cp311-cp311-win_amd64.whl; numpy_minmax-0.6.0-cp312-cp312-macosx_11_0_arm64.whl; numpy_minmax-0.6.0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; numpy_minmax-0.6.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; numpy_minmax-0.6.0-cp312-cp312-musllinux_1_2_aarch64.whl; numpy_minmax-0.6.0-cp312-cp312-musllinux_1_2_x86_64.whl; numpy_minmax-0.6.0-cp312-cp312-win_amd64.whl; numpy_minmax-0.6.0-cp313-cp313-macosx_11_0_arm64.whl; numpy_minmax-0.6.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “numpy min max function”
- numpy-minmaxFinds the minimum and maximum values in a NumPy array using C and…
- python-timeoutGenerates random timeouts between specified minimum and maximum…
- gradio-rangesliderA Gradio custom component that adds a dual-handle range slider to…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also albucore · fastremap · numpy-rms · pysimdjson · pythran · numkong · scikit-learn-intelex · simsimd · json-numpy · simdkalman