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 3fae09b commit 3cf970fCopy full SHA for 3cf970f
crates/core_simd/tests/ops_macros.rs
@@ -483,7 +483,7 @@ macro_rules! impl_float_tests {
483
test_helpers::test_1(&|x| {
484
test_helpers::prop_assert_biteq! (
485
Vector::<LANES>::from_array(x).sum(),
486
- x.iter().copied().fold(0 as Scalar, <Scalar as core::ops::Add>::add),
+ x.iter().sum(),
487
);
488
Ok(())
489
});
@@ -493,7 +493,7 @@ macro_rules! impl_float_tests {
493
494
495
Vector::<LANES>::from_array(x).product(),
496
- x.iter().copied().fold(1. as Scalar, <Scalar as core::ops::Mul>::mul),
+ x.iter().product(),
497
498
499
0 commit comments