pub fn assert_shape<S, D>( array: &ArrayBase<S, D>, expected: &[usize], name: &str, ) -> CoreResult<()>where S: Data, D: Dimension,
Assert that the array has the exact expected shape.