cunumeric.column_stack#

cunumeric.column_stack(tup: Sequence[ndarray]) ndarray#

Stack 1-D arrays as columns into a 2-D array.

Take a sequence of 1-D arrays and stack them as columns to make a single 2-D array. 2-D arrays are stacked as-is, just like with hstack. 1-D arrays are turned into 2-D columns first.

Parameters:

tup (Sequence[ndarray]) – 1-D or 2-D arrays to stack. All of them must have the same first dimension.

Returns:

stacked – The 2-D array formed by stacking the given arrays.

Return type:

ndarray

Availability:

Multiple GPUs, Multiple CPUs