pymor.discretizers.builtin.list¶
Module Contents¶
Classes¶
Define algorithm by a table of match conditions and corresponding actions. |
Functions¶
Use NumpyListVectorArrayMatrixOperator instead of NumpyMatrixOperator. |
- pymor.discretizers.builtin.list.convert_to_numpy_list_vector_array(obj)[source]¶
Use NumpyListVectorArrayMatrixOperator instead of NumpyMatrixOperator.
This simple function recursively converts
NumpyMatrixOperatorsto correspondingNumpyListVectorArrayMatrixOperators.Parameters
- obj
Either an
Operator, e.g.NumpyMatrixOperatoror aLincombOperatorofNumpyMatrixOperators, or an entireModelthat is to be converted.
- class pymor.discretizers.builtin.list.ConvertToNumpyListVectorArrayRules[source]¶
Bases:
pymor.algorithms.rules.RuleTableDefine algorithm by a table of match conditions and corresponding actions.
RuleTablemanages a table ofrules, stored in therulesattributes, which can beappliedto given objects.A new table is created by subclassing
RuleTableand defining new methods which are decorated withmatch_class,match_genericor anotherrulesubclass. The order of the method definitions determines the order in which the definedrulesare applied.Parameters
- use_caching
If
True, cache results ofapply.