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,
    input_len: int,
    output_len: int,
) -> CompiledComplexEvaluator

Load a compiled library, previously generated with Evaluator.compile().

Parameters

  • filename (str) The file path to load from or save to.
  • function_name (str) The exported symbol name of the compiled entry point.
  • input_len (int) The number of scalar inputs expected by the compiled evaluator.
  • output_len (int) The number of scalar outputs produced by the compiled evaluator.