Function slipstream::vectorize_pad [−][src]
pub fn vectorize_pad<V, A>(a: A, pad: A::Padding) -> impl Iterator<Item = V> where
A: Vectorizable<V>,
Free-standing version of Vectorizable::vectorize_pad
.
Equivalent to a.vectorize_pad(pad)
, but may be more convenient or readable in certain cases.
let data = [1, 2, 3, 4, 5, 6]; let v = slipstream::vectorize_pad(&data[..], i32x4::splat(-1)).collect::<Vec<_>>(); assert_eq!(v, vec![i32x4::new([1, 2, 3, 4]), i32x4::new([5, 6, -1, -1])]);