CompiledRealEvaluator

Symbolica documentation for getting started, symbolic expressions, numerical evaluation, pattern matching, and APIs in Python and Rust.

CompiledRealEvaluator

CompiledRealEvaluator()

A compiled evaluator of an expression.

Methods

Name Description
evaluate Evaluate the expression for multiple inputs and return the result.
load Load a compiled library, previously generated with Evaluator.compile().

evaluate

CompiledRealEvaluator.evaluate(inputs: npt.ArrayLike) -> npt.NDArray[np.float64]

Evaluate the expression for multiple inputs and return the result.

Parameters

  • inputs (npt.ArrayLike) The input values or batches to evaluate.

load

CompiledRealEvaluator.load(
    filename: str,
    function_name: str,
) -> CompiledRealEvaluator

Load a compiled library, previously generated with Evaluator.compile(). Input and output dimensions are read from the library. Libraries generated before Symbolica 3.0 must be re-exported and recompiled.

Parameters

  • filename (str) The file path to load from or save to.
  • function_name (str) The exported symbol name of the compiled entry point.