pub fn broadcast_mul_into<D, A, B, OpA, OpB>(
dest: &mut StridedViewMut<'_, D>,
a: &StridedView<'_, A, OpA>,
a_axes: &[usize],
b: &StridedView<'_, B, OpB>,
b_axes: &[usize],
exec: Exec<'_>,
) -> Result<(), StridedError>Expand description
Broadcasted element-wise multiplication: dest[i] = a[i] * b[i].
a_axes and b_axes map each source axis to an axis of dest. Output axes
not referenced by a source operand are treated as stride-0 broadcast axes.
ยงErrors
Returns StridedError::RankMismatch when an axis list does not have one
entry per source axis, StridedError::InvalidAxis when an axis lies
outside dest or is mapped twice, StridedError::ShapeMismatch when a
source extent is neither the destination extent nor 1, and
StridedError::NonInjectiveOutputLayout when the destination layout
cannot be proven representable and injective: two logical indices name
one offset, or the element count or address span is too large to
represent. Nothing is written unless validation succeeds.