[][src]Function safe_arch::duplicate_odd_lanes_m256

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

Duplicate the odd-indexed lanes to the even lanes.

let a = m256::from_array([1.0, 12.0, -1.0, 3.0, 0.0, 7.0, 2.0, 50.0]);
let c = duplicate_odd_lanes_m256(a).to_array();
assert_eq!(c, [1.0, 1.0, -1.0, -1.0, 0.0, 0.0, 2.0, 2.0]);