pydims.stack#

pydims.stack(arrays, /, *, dim, axis=0)[source]#

Stack arrays along a new dimension.

Parameters:
  • arrays (tuple[TypeVar(DimArr, bound= DimensionedArray), ...] | list[TypeVar(DimArr, bound= DimensionedArray)]) – Arrays to stack.

  • dim (Hashable) – Dimension along which to stack.

  • axis (int, default: 0) – Location of the new dimension.

Returns:

TypeVar(DimArr, bound= DimensionedArray) – Stacked array.