pub fn mul_into_uninit<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<'_, MaybeUninit<D>>,
a: &StridedView<'_, A, OpA>,
b: &StridedView<'_, B, OpB>,
) -> Result<()>Expand description
Multiply two views into a fully overwritten uninitialized output.
Shape, destination-injectivity, and reachable-byte overlap validation completes before the first write. Safe Rust borrows already prevent input/output aliasing; the explicit overlap check preserves the contract for views produced through unsafe constructors.
Ok(()) means every logical destination element is initialized. An error
occurs before writes. A panic during replay may leave a partially initialized
destination, which remains safe to drop as MaybeUninit<D>.
ยงErrors
Returns StridedError::ShapeMismatch for unequal shapes,
StridedError::NonInjectiveOutputLayout for an overlapping output layout,
StridedError::OverlappingInputOutput for aliased storage, or
StridedError::OffsetOverflow when a reachable byte range is not
representable.