cupy.column_stack#

cupy.column_stack(tup)[source]#

Stacks 1-D and 2-D arrays as columns into a 2-D array.

A 1-D array is first converted to a 2-D column array. Then, the 2-D arrays are concatenated along the second axis.

Parameters:

tup (sequence of arrays) – 1-D or 2-D arrays to be stacked.

Returns:

A new 2-D array of stacked columns.

Return type:

cupy.ndarray