Skip to main content

evaluate_fast

Function evaluate_fast 

Source
pub fn evaluate_fast(expr: &Expression, x: f64) -> Result<EvalResult, EvalError>
Expand description

Evaluate an expression using a thread-local workspace (zero allocations after warmup).

This is ideal for parallel code where each thread needs its own workspace. Note: This version does NOT support user constants. For user constants, use evaluate_with_constants() or evaluate_with_workspace_and_constants().

Note: This is a convenience wrapper for the full evaluate_fast_with_constants_and_functions when you don’t need user constants or functions. It’s provided as a simpler API for common cases.