Skip to main content

erased_zip_into

Function erased_zip_into 

Source
pub fn erased_zip_into(
    dtype: KernelDType,
    op: ErasedZipOp,
    ctx: &ExecContext,
    dest: &mut ErasedRawStridedMut<'_>,
    lhs: &ErasedRawStridedPtr<'_>,
    rhs: &ErasedRawStridedPtr<'_>,
) -> Result<()>
Expand description

Apply one runtime-selected binary operation without compiling a plan.

The destination must not overlap either input. Real dtypes support every ErasedZipOp. Signed integers support every operation with wrapping arithmetic and a pre-write zero-divisor check. Complex dtypes support add/subtract/multiply/divide. bool has no binary one-shot operations.

ยงErrors

Returns a typed StridedError for dtype, shape, output-layout, overlap, or unsupported dtype/op contracts. Validation completes before any write.