SymbolicParallelism

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

SymbolicParallelism

class SymbolicParallelism

Threading policy for operations on symbolic component expressions.

Auto permits parallel work when the Symbolica license supports it, with workload-size heuristics. Serial keeps symbolic work on the calling thread. Parallel requests parallel work without Auto’s license check. This does not set the number of threads or force every operation to parallelize.

Examples

from symbolica.community.tensor import SymbolicParallelism, set_symbolica_rayon_enabled
allowed = set_symbolica_rayon_enabled(SymbolicParallelism.Auto)

Attributes

Name Description
Auto Permit Rayon when licensed and use workload heuristics where available.
Parallel Force Rayon without Auto’s Symbolica license safety check.
Serial Keep symbolic operations on the calling thread.

Auto

Auto: typing.ClassVar[SymbolicParallelism]

Permit Rayon when licensed and use workload heuristics where available.

Parallel

Parallel: typing.ClassVar[SymbolicParallelism]

Force Rayon without Auto’s Symbolica license safety check.

Serial

Serial: typing.ClassVar[SymbolicParallelism]

Keep symbolic operations on the calling thread.

Methods

Name Description
__int__ Return the underlying integer discriminant.

__int__

SymbolicParallelism.__int__() -> builtins.int

Return the underlying integer discriminant.