CanonicalizationError

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

CanonicalizationError

class CanonicalizationError

Raised when dummy-index or tensor-factor canonicalization cannot be completed.

Notes

Subclass of ValueError. Catch it around the corresponding tensor operation to handle invalid input or an unsupported symbolic form.

Examples

from symbolica.community.tensor import CanonicalizationError
issubclass(CanonicalizationError, ValueError)
True