pymor.algorithms.to_matrix¶
Module Contents¶
- class pymor.algorithms.to_matrix.ToMatrixRules(format, mu)[source]¶
Bases:
pymor.algorithms.rules.RuleTableRuleTablefor theto_matrixalgorithm.Methods
- pymor.algorithms.to_matrix.to_matrix(op, format=None, mu=None)[source]¶
Convert a linear
Operatorto a matrix.Parameters
- op
The
Operatorto convert.- format
Format of the resulting matrix:
NumPy arrayif ‘dense’, otherwise the appropriateSciPy spmatrix. IfNone, a choice between dense and sparse format is automatically made.- mu
The
parameter valuesfor which to convertop.
Returns
- res
The matrix equivalent to
op.