Skip to main content

mul_into

Function mul_into 

Source
pub fn mul_into<D: Copy + MaybeSendSync + 'static, A: Copy + Mul<B, Output = D> + MaybeSendSync + 'static, B: Copy + MaybeSendSync + 'static, OpA: ElementOp<A>, OpB: ElementOp<B>>(
    dest: &mut StridedViewMut<'_, D>,
    a: &StridedView<'_, A, OpA>,
    b: &StridedView<'_, B, OpB>,
) -> Result<()>
Expand description

Element-wise multiplication: dest[i] = a[i] * b[i].

All views must have the same shape. Broadcast operands should be represented as stride-0 views before calling this function.