[][src]Function safe_arch::reciprocal_m256

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

Reciprocal of f32 lanes.

let a = m256::from_array([1.0, 2.0, 4.0, 8.0, 0.5, 2.0, 8.0, 16.0]);
let b = reciprocal_m256(a).to_array();
let expected = [1.0, 0.5, 0.25, 0.125, 2.0, 0.5, 0.125, 0.0625];
for i in 0..4 {
  assert!((b[i] - expected[i]).abs() < 0.001);
}