ndarray_summarization

ndarray_summarization#

Utilities for summarizing ndarray data.

Functions

compute_truncated_shape(shape, edge_items)

Computes the shape of a truncated array.

faster_array_repr(array)

Computes repr(array), only copying the rendered array elements.

get_dtype_name(dtype)

Safely extracts a name for a dtype.

infer_balanced_truncation(shape, ...[, ...])

Infers a balanced truncation from a shape.

safe_to_summarize(array)

Checks if the array is safe to summarize (not a tracer and not replicated).

summarize_ndarray(array[, ...])

Summarizes an NDArray as a string.

truncate_array_and_mask(array, mask, ...)

Truncates an array along the given axis names.

Module Attributes

summarization_threshold

Threshold for summarization of NDArrays for each backend.