concat — Python array API standard 2023.12 documentation (original) (raw)

concat(arrays: Tuple[array, ...] | List[array], /, *, axis: int | None = 0) → array

Joins a sequence of arrays along an existing axis.

Parameters:

Returns:

out (array) – an output array containing the concatenated values. If the input arrays have different data types, normal Type Promotion Rules must apply. If the input arrays have the same data type, the output array must have the same data type as the input arrays.

Note

This specification leaves type promotion between data type families (i.e., intxx and floatxx) unspecified.