Skip to main content

evaluate_node_with_overrides

Function evaluate_node_with_overrides 

Source
pub fn evaluate_node_with_overrides(
    arena: &DagArena,
    id: DagNodeId,
    vars: &[f64],
    fn_registry: &FnEvalRegistry,
    op_registry: &OpEvalRegistry,
) -> f64
Expand description

Variant of evaluate_node_with_fns that also accepts an OpEvalRegistry for overriding built-in operator evaluation.

When an operator has a registered override, it is called instead of apply_op. Unregistered operators use the default apply_op logic.