pub fn elementwise_binary<T: Scalar, B: ElementwiseOps<T>>(
a: &Tensor<T, B>,
b: &Tensor<T, B>,
backend: &B,
op: BinaryOp,
) -> Result<Tensor<T, B>, B::Error>Expand description
Element-wise binary operation with broadcasting.
Uses Tensor::alloc_on (no zero-init) because every output element is
unconditionally overwritten by the broadcast kernel.