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.5.1

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.5.1
File Size Uploaded
fast_array_utils-1.5.1.tar.gz 338.0 kB Details

Built distribution (wheel)

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

Total release size: 378.6 kB

Release files / fast_array_utils-1.5.1.tar.gz

Download URL fast_array_utils-1.5.1.tar.gz
Size 338.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f3059b6915043226377f4153d5ee1b56e3acf9e5ffec34b393d0bc2298a1e88d
BLAKE2b-256 checksum
How to use checksums
d18949b54e22b4250c8dcb88db55c16156de71e3054748dafb5a6eb0e5767335
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

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

Download URL fast_array_utils-1.5.1-py3-none-any.whl
Size 40.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ce2246f99a4f0755fbd978886be1b4206ccb2c2ad61518f74ebf1b9156856aa
BLAKE2b-256 checksum
How to use checksums
441e28539d717756e661963f136e03cba4b46b2c79d74dff814cd9c8ab3f5e32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.5.1 This release

2 release files

1.5

2 release files

1.4.1

2 release files

1.4

2 release files

1.3.1

2 release files

1.3

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1

2 release files

1.0

2 release files

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