pymor.discretizers.builtin.list
¶
Module Contents¶
- class pymor.discretizers.builtin.list.ConvertToNumpyListVectorArrayRules(space)[source]¶
Bases:
pymor.algorithms.rules.RuleTable
RuleTable
for theconvert_to_numpy_list_vector_array
algorithm.
- 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 correspondingNumpyListVectorArrayMatrixOperators
.Parameters
- obj
Either an
Operator
, e.g.NumpyMatrixOperator
or aLincombOperator
ofNumpyMatrixOperators
, or an entireModel
that is to be converted.- space
The
VectorSpace
that is to be converted.