pub fn ensure_same_shape(a: &[usize], b: &[usize]) -> Result<()>Expand description
Check exact shape agreement before prevalidated replay.
§Examples
use strided_basic::execution::ensure_same_shape;
ensure_same_shape(&[2, 3], &[2, 3]).unwrap();
assert!(ensure_same_shape(&[2, 3], &[3, 2]).is_err());§Errors
Returns StridedError::RankMismatch when the two shapes have different
ranks, and StridedError::ShapeMismatch when their extents differ.