Skip to main content

flatten

Function flatten 

Source
pub fn flatten<T: Element, D: Dimension>(
    a: &Array<T, D>,
) -> FerrayResult<Array<T, Ix1>>
Expand description

Return a flattened (1-D) copy of the array.

Identical to ravel() — analogous to ndarray.flatten().