pymor.algorithms.to_matrix

Module Contents

class pymor.algorithms.to_matrix.ToMatrixRules(format, mu)[source]

Bases: pymor.algorithms.rules.RuleTable

RuleTable for the to_matrix algorithm.

action_AdjointOperator(op)[source]
action_BlockOperator(op)[source]
action_ComponentProjectionOperator(op)[source]
action_ConcatenationOperator(op)[source]
action_IdentityOperator(op)[source]
action_LincombOperator(op)[source]
action_LowRankOperator(op)[source]
action_LowRankUpdatedOperator(op)[source]
action_NumpyHankelOperator(op)[source]
action_NumpyMatrixOperator(op)[source]
action_VectorArrayOperator(op)[source]
action_ZeroOperator(op)[source]
action_as_array(op)[source]
pymor.algorithms.to_matrix.action_DuneXTMatrixOperator(self, op)[source]
pymor.algorithms.to_matrix.to_matrix(op, format=None, mu=None)[source]

Convert a linear Operator to a matrix.

Parameters

op

The Operator to convert.

format

Format of the resulting matrix: NumPy array if ‘dense’, otherwise the appropriate SciPy spmatrix. If None, a choice between dense and sparse format is automatically made.

mu

The parameter values for which to convert op.

Returns

res

The matrix equivalent to op.