pub fn numpy_broadcast(a: &[usize], b: &[usize]) -> Option<Vec<usize>>
The general NumPy broadcasting rule: align trailing dimensions; a dimension of 1 or a missing dimension stretches to the other operand’s.