Skip to main content

binary_op_typed

Function binary_op_typed 

Source
pub fn binary_op_typed<E, Op>(
    lhs: HostTensor,
    rhs: &HostTensor,
    op: Op,
) -> HostTensor
where E: Element + Pod, Op: Fn(E, E) -> E,
Expand description

Binary operation with in-place optimization for Pod types.