Skip to main content

binary_operation

Function binary_operation 

Source
fn binary_operation(
    context: &Context<'_>,
    binary: &BinaryExpr,
) -> Result<NativeNode>
Expand description

Compiles a binary operation, preserving written operand order and vector matching modifiers.

A scalar carries no labels, so broadcasting it over a vector is unambiguous. Vector operands retain their own input bindings and matching, including a fill on either side.