concatenate

sparse.concatenate(arrays, axis=0)[source]

Concatenate the input arrays along the given dimension.

Parameters
  • arrays (Iterable[SparseArray]) – The input arrays to concatenate.

  • axis (int, optional) – The axis along which to concatenate the input arrays. The default is zero.

Returns

The output concatenated array.

Return type

COO

Raises

ValueError – If all elements of arrays don’t have the same fill-value.

See also

numpy.concatenate()

NumPy equivalent function