[][src]Function safe_arch::add_horizontal_m256

#[must_use]pub fn add_horizontal_m256(a: m256, b: m256) -> m256
This is supported with target feature avx only.

Add adjacent f32 lanes.

let a = m256::from([8.0, 7.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.0]);
let b = m256::from([0.0, 2.0, 4.0, 8.0, 16.0, 32.0, 64.0, 128.0]);
let c = add_horizontal_m256(a, b).to_array();
assert_eq!(c, [15.0, 11.0, 2.0, 12.0, 7.0, 3.0, 48.0, 192.0]);