Skip to main content

binary_supported

Function binary_supported 

Source
fn binary_supported(
    left: &NativeNode,
    right: &NativeNode,
    matching: &BinaryMatching,
) -> bool
Expand description

Whether a binary node over left and right is a shape the runtime builds.

Two evaluated vectors are matched by matching, which the kernel takes as it is bound. Every other pair is a broadcast over one scalar side, and a broadcast has no labels to match and no series to pair: two constants leave no series to carry the result, a modifier a vector match would use has no meaning over a scalar, and arithmetic has no bool form.