pub fn erased_zip_into(
dtype: KernelDType,
op: ErasedZipOp,
dest: &mut ErasedRawStridedMut<'_>,
lhs: &ErasedRawStridedPtr<'_>,
rhs: &ErasedRawStridedPtr<'_>,
exec: Exec<'_>,
) -> 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 StridedError::DTypeMismatch when dest, lhs, or rhs does
not carry dtype, StridedError::UnsupportedOp for bool operands or
for a complex remainder/maximum/minimum,
StridedError::OverlappingInputOutput when either input allocation
overlaps the destination, StridedError::InvalidBoolByte when an input
holds a bool byte other than 0 or 1,
StridedError::IntegerDivisionByZero when an integer divide or
remainder finds a zero divisor, StridedError::NonInjectiveOutputLayout
when the destination layout cannot be proven to place logical elements on
distinct offsets, and StridedError::RankMismatch or
StridedError::ShapeMismatch when the destination dims differ from
either input’s dims. Validation completes before any write.