Skip to main content

usage

fast-array-utils supports the following array types:

  • numpy.ndarray

  • scipy.sparse.cs{rc}_{array,matrix}

  • cupy.ndarray and cupyx.scipy.sparse.cs{rc}_matrix

  • dask.array.Array

  • h5py.Dataset and zarr.Array

  • anndata.abc.CS{CR}Dataset (only supported by .conv.to_dense at the moment)

Use fast_array_utils.conv.to_dense to densify arrays and optionally move them to CPU memory:

from fast_array_utils.conv import to_dense

numpy_arr = to_dense(sparse_arr_or_mat)
numpy_arr = to_dense(dask_or_cuda_arr, to_cpu_memory=True)
dense_dask_arr = to_dense(dask_arr)
dense_cupy_arr = to_dense(sparse_cupy_mat)

Use fast_array_utils.conv.* to calculate statistics across one or both axes of a 2D array. All of them support an axis and dtype parameter:

from fast_array_utils import stats

all_equal = stats.is_constant(arr_2d)
col_sums = stats.sum(arr_2d, axis=0)
mean = stats.mean(arr_2d)
row_means, row_vars = stats.mean_var(arr_2d, axis=1)

installation

To use fast_array_utils.stats or fast_array_utils.conv:

(uv) pip install 'fast-array-utils[accel]'

To use testing.fast_array_utils:

(uv) pip install 'fast-array-utils[testing]'

Metadata

Release files for fast-array-utils 1.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fast-array-utils 1.6.0
File Size Uploaded Provenance Actions
fast_array_utils-1.6.0.tar.gz 337.6 kB With provenance Details for fast_array_utils-1.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fast-array-utils 1.6.0
File Interpreter ABI Platform Actions
fast_array_utils-1.6.0-py3-none-any.whl Python 3 none any Details for fast_array_utils-1.6.0-py3-none-any.whl

Total release size: 378.3 kB

Release files / fast_array_utils-1.6.0.tar.gz

Download URL fast_array_utils-1.6.0.tar.gz
Size 337.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f6e8ec814fb5a0859b4d9930b4a40419235d2001ce6d0f2e8bc6d42874a4bf92
BLAKE2b-256 checksum
How to use checksums
ead22ec198134beefbadfc147278b5feed83b2891bad04df3c1f83b81a910e01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / fast_array_utils-1.6.0-py3-none-any.whl

Download URL fast_array_utils-1.6.0-py3-none-any.whl
Size 40.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e7d6772d7be129e7246a2bf58982c6eb2cb60af57a664c5da359020087638b6
BLAKE2b-256 checksum
How to use checksums
1f805ca412adbab512a8eb5b7e3c751f8d4aed80e09cc683898301be56a521c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for fast-array-utils 1.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for fast_array_utils-1.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page