Skip to main content

flatten

Function flatten 

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

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

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