Skip to main content

pair

Function pair 

Source
pub fn pair(
    arena: &mut MorselArena,
    op: MathPair,
    l: &ValueVector,
    r: &ValueVector,
    sel: Option<&SelVector>,
) -> Result<ValueVector>
Expand description

Evaluate op(l, r) into a new flat vector.

These are the expensive ones, a power and a logarithm each costing tens of instructions, so the order here is the other way round from the kernel above: the answers are computed first and the conditions are read off the answers. A power that left the range is an infinity sitting in the output, and finding it is a pass over the numbers the loop just wrote rather than a second power per row.