#include "tensorstore/array.h"
struct tensorstore::ArrayFormatOptions;

Specifies options for formatting an array.

Data members

std::string prefix = "{";

Prefix printed at the start of each dimension.

std::string separator = ", ";

Separator printed between consecutive elements/sub-arrays.

std::string suffix = "}";

Suffix printed at the end of each dimension.

std::string summary_ellipses = "..., ";

Separator printed between the first summary_edge_items and the last summary_edge_items when printing a summary of a dimension.

Index summary_threshold = 1000;

If the total number of elements in the array (product of all dimensions) exceeds this threshold, a summary is printed rather than the full representation.

Index summary_edge_items = 3;

Number of items at the beginning and end of each dimension to include in the summary representation. If the number of elements in a given dimension is <= 2 * summary_edge_items, the full representation of that dimension will be shown.

Methods

static const ArrayFormatOptionsDefault();

Returns a reference to a default-constructed instance of ArrayFormatOptions.