[−][src]Function safe_arch::sub_horizontal_m256d
#[must_use]pub fn sub_horizontal_m256d(a: m256d, b: m256d) -> m256d
This is supported with target feature
avx
only.Subtract adjacent f64
lanes.
let a = m256d::from([1.0, 2.0, 3.0, 4.0]); let b = m256d::from([1.0, 3.0, 5.0, 70.0]); let c = sub_horizontal_m256d(a, b).to_array(); assert_eq!(c, [-1.0, -2.0, -1.0, -65.0]);