Skip to content

Commit 0d4272f

Browse files
blussjturner314
andcommitted
FIX: Add debug assertion in with_strides_dim
Co-authored-by: Jim Turner <[email protected]>
1 parent bb6c4ab commit 0d4272f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/impl_internal_constructors.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ where
5555
where
5656
E: Dimension
5757
{
58+
debug_assert_eq!(strides.ndim(), dim.ndim());
5859
ArrayBase {
5960
data: self.data,
6061
ptr: self.ptr,

0 commit comments

Comments
 (0)