Skip to main content

column_stack

Function column_stack 

Source
pub fn column_stack<T: Element>(
    arrays: &[Array<T, IxDyn>],
) -> FerrayResult<Array<T, IxDyn>>
Expand description

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

Each input becomes one column of the output. For 2-D+ inputs, this is equivalent to hstack.

Analogous to numpy.column_stack().

ยงErrors

Returns FerrayError::InvalidValue if the input is empty, or FerrayError::ShapeMismatch if 1-D inputs have different lengths.