pub fn flatten_owned<T>(matrix: AbstractLiteral<T>) -> impl Iterator<Item = T>where
T: MatrixValue,Expand description
Consumes a multi-dimensional matrix and returns a one-dimensional slice of its elements.
The elements are returned in row-major ordering (see enumerate_indices).
ยงPanics
- If the number or type of elements in each dimension is inconsistent.
- If
matrixis not a matrix.