cupy.stack#

cupy.stack(tup, axis=0, out=None)[source]#

Stacks arrays along a new axis.

Parameters:
  • tup (sequence of arrays) – Arrays to be stacked.

  • axis (int) – Axis along which the arrays are stacked.

  • out (cupy.ndarray) – Output array.

Returns:

Stacked array.

Return type:

cupy.ndarray

See also

numpy.stack()