Skip to main content

partial_flatten

Function partial_flatten 

Source
pub fn partial_flatten<T>(
    n: usize,
    matrix: AbstractLiteral<T>,
) -> AbstractLiteral<T>
where T: MatrixValue,
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?)