pub fn matrix_chain_order(dims: &[usize]) -> Result<(u64, String), ErrorsJSL>Expand description
The cheapest way to multiply a chain of matrices where matrix k is dims[k] × dims[k+1]:
(scalar multiplications, parenthesisation such as "((A0A1)A2)"). Needs at least one matrix
(dims.len() >= 2).