Evaluator

Evaluator()

An optimized evaluator of an expression.

Methods

Name Description
compile Compile the evaluator to a shared library using C++ and optionally inline assembly and load it.
evaluate Evaluate the expression for multiple inputs and return the result.
evaluate_complex Evaluate the expression for multiple inputs and return the result.
evaluate_complex_single Evaluate the expression for multiple inputs and return the result, which
evaluate_single Evaluate the expression for multiple inputs and return the result, which

compile

Evaluator.compile(function_name, filename, library_name, inline_asm=True, optimization_level=3, compiler_path=None)

Compile the evaluator to a shared library using C++ and optionally inline assembly and load it.

evaluate

Evaluator.evaluate(inputs)

Evaluate the expression for multiple inputs and return the result.

evaluate_complex

Evaluator.evaluate_complex(inputs)

Evaluate the expression for multiple inputs and return the result.

evaluate_complex_single

Evaluator.evaluate_complex_single(inputs)

Evaluate the expression for multiple inputs and return the result, which is a single value.

evaluate_single

Evaluator.evaluate_single(inputs)

Evaluate the expression for multiple inputs and return the result, which is a single value.