Skip to main content

assert_shape

Function assert_shape 

Source
pub fn assert_shape<S, D>(
    array: &ArrayBase<S, D>,
    expected: &[usize],
    name: &str,
) -> CoreResult<()>
where S: Data, D: Dimension,
Expand description

Assert that the array has the exact expected shape.