Skip to content

Commit bf760c6

Browse files
blussjturner314
andauthored
FIX: Add debug assertion in with_strides_dim
Co-authored-by: Jim Turner <[email protected]>
1 parent 3c84693 commit bf760c6

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)