Function broadcastshape
Source pub fn broadcastshape(shape1: &[usize], shape2: &[usize]) -> Option<Vec<usize>>
Expand description
Calculate the broadcasted shape from two input shapes
§Arguments
shape1 - First shape as a slice
shape2 - Second shape as a slice
§Returns
The broadcasted shape as a Vec<usize>, or None if the shapes are incompatible