pub fn partial_flatten<T: MatrixValue>(
n: usize,
matrix: AbstractLiteral<T>,
) -> AbstractLiteral<T>Expand description
Given a nested matrix, flatten its first n+1 dimensions into one.
The resulting matrix will be a list because otherwise index domains would get weird, fast…
(unless we want to only support integer indices?)