CompiledComplexEvaluator

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

CompiledComplexEvaluator

CompiledComplexEvaluator()

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

CompiledComplexEvaluator.evaluate(inputs: npt.ArrayLike) -> npt.NDArray[np.complex128]

Evaluate the expression for multiple inputs and return the result.

Parameters

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

load

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

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.