{"id":4655,"library":"numpy-rms","title":"NumPy RMS","description":"numpy-rms is a fast Python library designed for calculating the Root Mean Square (RMS) of NumPy arrays. It leverages C implementations with SIMD acceleration (AVX on x86-64, NEON on ARM) to provide significant performance benefits, especially for 1-dimensional and 2-dimensional C-contiguous float32 arrays. The current version is 0.6.0, with a fairly active release cadence.","status":"active","version":"0.6.0","language":"python","source_language":"en","source_url":"https://github.com/nomonosound/numpy-rms","tags":["numpy","rms","signal processing","performance","SIMD","audio"],"install":[{"cmd":"pip install numpy-rms","lang":"bash","label":"Install with pip"}],"dependencies":[{"reason":"Core functionality relies on NumPy arrays and its C API.","package":"numpy","optional":false}],"imports":[{"wrong":"import numpy_rms","symbol":"rms","correct":"from numpy_rms import rms"},{"symbol":"NDArray","correct":"from numpy_rms import NDArray"},{"symbol":"np","correct":"from numpy_rms import np"}],"quickstart":{"code":"import numpy_rms\nimport numpy as np\n\narr = np.arange(40, dtype=np.float32)\nrms_series = numpy_rms.rms(arr, window_size=10)\nprint(f\"Original array shape: {arr.shape}\")\nprint(f\"RMS series shape: {rms_series.shape}\")\nprint(f\"First few RMS values: {rms_series[:5]}\")","lang":"python","description":"This quickstart demonstrates how to import `numpy_rms` and calculate a series of RMS values for a 1D NumPy array with a specified window size. Ensure your input array is `float32` for optimal performance."},"warnings":[{"fix":"Ensure input arrays are `np.float32` and, if performance is critical, check array contiguity using `array.flags['C_CONTIGUOUS']`.","message":"The library is specifically optimized for C-contiguous 1-dimensional and 2-dimensional NumPy arrays of `float32` dtype. Using other data types (e.g., `float64`) or non-contiguous array layouts might lead to reduced performance or unexpected behavior compared to its advertised speed.","severity":"gotcha","affected_versions":"All versions"},{"fix":"After upgrading NumPy to a major new version, always check for a `numpy-rms` release compatible with that NumPy version. Reinstalling `numpy-rms` (e.g., `pip install --upgrade --force-reinstall numpy-rms`) might resolve some ABI issues by forcing a rebuild against the current NumPy.","message":"As `numpy-rms` is implemented in C and interacts with NumPy's C API, major NumPy version updates (e.g., NumPy 2.0 and above) can introduce Application Binary Interface (ABI) incompatibilities. This may require `numpy-rms` to be rebuilt or updated by its maintainers to ensure compatibility, potentially causing `ImportError` or runtime issues if using an older `numpy-rms` binary with a new NumPy version.","severity":"gotcha","affected_versions":"All versions (especially with NumPy 2.0+)"},{"fix":"Review the `CHANGELOG.md` or release notes before updating `numpy-rms` to new minor versions, and ensure your code is adequately tested.","message":"The project is currently classified with a 'Development Status :: 3 - Alpha' on PyPI. This indicates that while functional, the API may not be entirely stable and could undergo breaking changes in future minor releases, even if semver is generally followed.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"search_vec":"'-64':32 '0.6.0':57 '1':43 '2':46 'acceler':28 'activ':61 'arm':35 'array':21,52 'audio':70 'avx':29 'benefit':40 'c':24,49 'c-contigu':48 'cadenc':63 'calcul':13 'contigu':50 'current':54 'design':11 'dimension':44,47 'especi':41 'fair':60 'fast':8 'float32':51 'implement':25 'leverag':23 'librari':10 'mean':16 'neon':33 'numpi':1,4,20,64 'numpy-rm':3 'perform':39,68 'process':67 'provid':37 'python':9 'releas':62 'rms':2,5,18,65 'root':15 'signal':66 'signific':38 'simd':27,69 'squar':17 'version':55 'x86':31","created_at":"2026-04-12T14:01:56.855750+00:00","updated_at":"2026-04-16T17:25:42.954853+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.7.0","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/nomonosound/numpy-rms","docs":null,"changelog":null,"pypi":"https://pypi.org/project/numpy-rms/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["data"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-08-30","next_check":"2026-08-02","install_tag":null}}