pymor.algorithms.preassemble

Module Contents

Classes

PreAssembleRules

Define algorithm by a table of match conditions and corresponding actions.

Functions

preassemble

Preassemble non-parametric operators.

pymor.algorithms.preassemble.preassemble(obj)[source]

Preassemble non-parametric operators.

If obj is a non-parametric Operator, return obj.assemble() otherwise return obj. Recursively replaces children of obj.

class pymor.algorithms.preassemble.PreAssembleRules[source]

Bases: pymor.algorithms.rules.RuleTable

Define algorithm by a table of match conditions and corresponding actions.

RuleTable manages a table of rules, stored in the rules attributes, which can be applied to given objects.

A new table is created by subclassing RuleTable and defining new methods which are decorated with match_class, match_generic or another rule subclass. The order of the method definitions determines the order in which the defined rules are applied.

Parameters

use_caching

If True, cache results of apply.

rules[source]

list of all defined rules.

action_recurse(self, op)[source]
action_recurse_and_assemble(self, op)[source]
action_AdjointOperator(self, op)[source]
action_assemble(self, op)[source]
action_identity(self, op)[source]