pymor.algorithms.simplify

Module Contents

class pymor.algorithms.simplify.ContractRules[source]

Bases: pymor.algorithms.rules.RuleTable

RuleTable for the contract algorithm.

action_ConcatenationOperator(op)[source]
action_LincombOperator(op)[source]
action_recurse(op)[source]
class pymor.algorithms.simplify.ExpandRules[source]

Bases: pymor.algorithms.rules.RuleTable

RuleTable for the expand algorithm.

action_ConcatenationOperator(op)[source]
action_LincombOperator(op)[source]
action_recurse(op)[source]
pymor.algorithms.simplify.contract(obj)[source]

Contract linear combinations and concatenations of Operators.

To any given Operator or Model, the following transformations are applied recursively:

Parameters

obj

Either a Model or an Operator to which the contraction rules are applied recursively for all children.

Returns

The transformed object.

pymor.algorithms.simplify.expand(obj)[source]

Expand concatenations of LincombOperators.

To any given Operator or Model, the following transformations are applied recursively:

Parameters

obj

Either a Model or an Operator to which the expansion rules are applied recursively for all children.

Returns

The transformed object.