SchoonschipSettings
symbolica.community.idenso Class
SchoonschipSettings(*, depth_limit: Optional[int] = 1, mode: Optional[SchoonschipMode] = None, traversal: Optional[SchoonschipTraversal] = None, expand_contracted_sums: bool = False, simplify_chain_like_functions: bool = False, schoonschip_rank1_tensors: bool = True, contraction_order: Optional[SchoonschipContractionOrder] = None)Immutable configuration for expression and network Schoonschip passes.
Constructor
#Configure traversal, depth, shorthand expansion, and network-contraction policies.
depth_limit=None removes the recursion-depth limit. traversal is ignored in SinglePass mode. mode=None, traversal=None, and contraction_order=None select Recursive, BreadthFirst, and SmallestDegree, respectively.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
depth_limit | Optional[int] | 1 | — |
mode | Optional[SchoonschipMode] | None | — |
traversal | Optional[SchoonschipTraversal] | None | — |
expand_contracted_sums | bool | False | — |
simplify_chain_like_functions | bool | False | — |
schoonschip_rank1_tensors | bool | True | — |
contraction_order | Optional[SchoonschipContractionOrder] | None | — |
Member details
depth_limit
Property · read-onlymode
Property · read-onlytraversal
Property · read-onlyexpand_contracted_sums
Property · read-onlysimplify_chain_like_functions
Property · read-onlysimplify_chain_like_functions: boolWhether chain-like function payloads are simplified recursively.
schoonschip_rank1_tensors
Property · read-onlycontraction_order
Property · read-onlypartial
Static methodpartial() -> SchoonschipSettingsApply the default shallow recursive expression pass without rank-one tensors.
full
Static methoddefault_network
Static methoddefault_network() -> SchoonschipSettingsUse the settings applied by schoonschip_net when no settings are supplied.
depth_first
Static methoddepth_first(depth_limit: Optional[int] = None) -> SchoonschipSettingsRecursively simplify each branch before visiting its siblings.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
depth_limit | Optional[int] | None | — |
breadth_first
Static methodbreadth_first(depth_limit: Optional[int] = None) -> SchoonschipSettingsRecursively simplify all branches one level at a time.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
depth_limit | Optional[int] | None | — |
single_pass
Static methodsingle_pass(depth_limit: Optional[int] = None) -> SchoonschipSettingsVisit each eligible expression once, subject to depth_limit.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
depth_limit | Optional[int] | None | — |
View generated signature source: docs/api/python/idenso-community.pyi:223