Idenso · latest
On this page

CompiledTensorEvaluator

symbolica.community.tensor Class

CompiledTensorEvaluator()

Native Symbolica evaluator returning tensors. Construct with TensorEvaluator.compile.

evaluate uses the number_type selected at compilation, as in Symbolica's compiled evaluators. scalar_evaluator exposes the underlying native evaluator.

Member details

parameters

Property · read-only#
parameters: list[Expression]

Symbolic inputs in evaluation order.

input_size

Property · read-only#
input_size: int

Number of entries in each input row.

output_shape

Property · read-only#
output_shape: tuple[int, ...]

Logical shape of each result tensor.

supports_real

Property · read-only#
supports_real: bool

Whether compilation selected a real number type.

scalar_evaluator

Property · read-only#
scalar_evaluator: Any

Underlying Symbolica compiled evaluator.

evaluate

Method#
evaluate(inputs: numpy.ArrayLike) -> list[Tensor]

Evaluate real or complex inputs, according to the compiled number type.

Parameters

NameTypeDefaultDescription
inputsnumpy.ArrayLike——

__repr__

Method#
__repr__() -> str

Describe the compiled output tensor layout and numeric domain.