Skip to main content

simd_binary_op

Function simd_binary_op 

Source
pub fn simd_binary_op<F, S1, S2, D>(
    a: &ArrayBase<S1, D>,
    b: &ArrayBase<S2, D>,
    op: fn(F, F) -> F,
) -> Array<F, D>
where F: SimdOps + Float + SimdUnifiedOps, S1: Data<Elem = F>, S2: Data<Elem = F>, D: Dimension,
Expand description

Apply element-wise operation on arrays using unified SIMD operations

Generic helper for binary operations with SIMD support.