simd_map

Function simd_map 

Source
pub fn simd_map<'src, 'dst, T: Elem + 'static, O: NumOps<T>, Op: FnMut(O::Simd) -> O::Simd>(
    ops: O,
    src_dest: impl Into<SrcDest<'src, 'dst, T>>,
    op: Op,
) -> &'dst mut [T]
Expand description

Transform a slice by applying a vectorized map function to its elements.

This function can be applied both in-place (mutable destination) and with separate source/destination buffers.

If the slice is not a multiple of the vector length, the final call to op will use a vector padded with zeros.

The map function must have the same input and output type.