Use reduce_sum in as_simd example
This commit is contained in:
parent
aabaf8430c
commit
2b1f249ecf
1 changed files with 1 additions and 1 deletions
|
@ -3536,7 +3536,7 @@ impl<T> [T] {
|
|||
/// suffix.iter().copied().sum(),
|
||||
/// ]);
|
||||
/// let sums = middle.iter().copied().fold(sums, f32x4::add);
|
||||
/// sums.horizontal_sum()
|
||||
/// sums.reduce_sum()
|
||||
/// }
|
||||
///
|
||||
/// let numbers: Vec<f32> = (1..101).map(|x| x as _).collect();
|
||||
|
|
Loading…
Add table
Reference in a new issue