Skip to main content

evaluate_bounded

Function evaluate_bounded 

Source
pub fn evaluate_bounded(
    program: &[u32],
    primitives: &[FieldPrimitive],
    nodes: &[FieldNode],
    point: [f32; 4],
    tolerance: f32,
) -> Result<f32, FieldError>
Expand description

Skips a subtree whose ball’s lower bound exceeds the best value so far by more than tolerance; an empty nodes slice evaluates the whole program.