macro_rules! array_parse_shape { ($ndim:expr, $str:expr) => { ... }; }
Calculate shape for array creation