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 805ce1a commit 37da6a5Copy full SHA for 37da6a5
crates/core_simd/tests/ops_macros.rs
@@ -480,7 +480,7 @@ macro_rules! impl_float_tests {
480
test_helpers::test_1(&|x| {
481
test_helpers::prop_assert_biteq! (
482
Vector::<LANES>::from_array(x).sum(),
483
- x.iter().copied().fold(0 as Scalar, <Scalar as core::ops::Add>::add),
+ x.iter().sum(),
484
);
485
Ok(())
486
});
@@ -490,7 +490,7 @@ macro_rules! impl_float_tests {
490
491
492
Vector::<LANES>::from_array(x).product(),
493
- x.iter().copied().fold(1. as Scalar, <Scalar as core::ops::Mul>::mul),
+ x.iter().product(),
494
495
496
0 commit comments