pymor.discretizers.builtin.list

Module Contents

class pymor.discretizers.builtin.list.ConvertToNumpyListVectorArrayRules(space)[source]

Bases: pymor.algorithms.rules.RuleTable

RuleTable for the convert_to_numpy_list_vector_array algorithm.

action_NumpyMatrixOperator(op)[source]
action_only_range(op)[source]
action_only_source(op)[source]
action_recurse(op)[source]
pymor.discretizers.builtin.list.convert_to_numpy_list_vector_array(obj, space=None)[source]

Use NumpyListVectorArrayMatrixOperator instead of NumpyMatrixOperator.

This simple function recursively converts NumpyMatrixOperators to corresponding NumpyListVectorArrayMatrixOperators.

Parameters

obj

Either an Operator, e.g. NumpyMatrixOperator or a LincombOperator of NumpyMatrixOperators, or an entire Model that is to be converted.

space

The VectorSpace that is to be converted.

Returns

The converted Operator or Model.