Spenso · latest
On this page

SymbolicParallelism

symbolica.community.tensor 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)

Member details

Auto

Field#
Auto: typing.ClassVar[SymbolicParallelism]

Permit Rayon when licensed and use workload heuristics where available.

Serial

Field#
Serial: typing.ClassVar[SymbolicParallelism]

Keep symbolic operations on the calling thread.

Parallel

Field#
Parallel: typing.ClassVar[SymbolicParallelism]

Force Rayon without Auto's Symbolica license safety check.

__int__

Method#
__int__() -> int

Return the underlying integer discriminant.