We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b0942f commit d3460e8Copy full SHA for d3460e8
tests/windows.rs
@@ -266,6 +266,18 @@ fn test_axis_windows_3d() {
266
);
267
}
268
269
+#[test]
270
+fn tests_axis_windows_3d_zips_with_1d() {
271
+ let a = Array::from_iter(0..27).into_shape((3, 3, 3)).unwrap();
272
+ let mut b = Array::zeros(2);
273
+
274
+ Zip::from(b.view_mut())
275
+ .and(a.axis_windows(Axis(1), 2))
276
+ .for_each(|b,a|{
277
+ *b = a.sum();
278
+ });
279
+ assert_eq!(b,arr1(&[207, 261]));
280
+}
281
282
#[test]
283
fn test_window_neg_stride() {
0 commit comments