pymor.bindings.dunegdt

Module Contents

class pymor.bindings.dunegdt.DuneXTMatrixOperator(matrix, source_id='STATE', range_id='STATE', solver_options=None, name=None)[source]

Bases: pymor.operators.list.LinearComplexifiedListVectorArrayOperatorBase

Wraps a dune-xt matrix as an Operator.

Parameters

matrix

The actual matrix from dune.xt.la, usually IstlMatrix.

source_id

Identifier of the source VectorSpace.

range_id

Identifier of the source VectorSpace.

solver_options

If specified, either a string or a dict specifying the solver used in apply_inverse. See https://zivgitlab.uni-muenster.de/ag-ohlberger/dune-community/dune-xt/-/tree/master/dune/xt/la/solver for available options, depending on the type of matrix. E.g., for dune.xt.la.IstlSparseMatrix, (as can be queried from dune.xt.la.IstlSparseMatrixSolver via types() and options(type)): - ‘bicgstab.ssor’ - ‘bicgstab.amg.ssor’ - ‘bicgstab.amg.ilu0’ - ‘bicgstab.ilut’ - ‘bicgstab’ - ‘cg’

name

Optional name of the resulting Operator.

linear = True[source]
class pymor.bindings.dunegdt.DuneXTVector(impl)[source]

Bases: pymor.vectorarrays.list.CopyOnWriteVector

Wraps a vector from dune-xt to make it usable with ListVectorArray.

Parameters

impl

The actual vector from dune.xt.la, usually IstlVector.

amax(self)[source]
dofs(self, dof_indices)[source]
classmethod from_instance(cls, instance)[source]
inner(self, other)[source]
norm(self)[source]
norm2(self)[source]
sup_norm(self)[source]
to_numpy(self, ensure_copy=False)[source]
class pymor.bindings.dunegdt.DuneXTVectorSpace(dim, dune_vector_type=IstlVector, id='STATE')[source]

Bases: pymor.vectorarrays.list.ComplexifiedListVectorSpace

A VectorSpace yielding DuneXTVector

Parameters

dim

Dimension of the VectorSpace, i.e., length of the resulting vectors.

vector_type

Type of the actual vector from dune.xt.la, usually IstlVector.

id

Identifier of the VectorSpace.

real_vector_type[source]
real_full_vector(self, value)[source]
real_make_vector(self, obj)[source]
real_random_vector(self, distribution, random_state, **kwargs)[source]
real_vector_from_numpy(self, data, ensure_copy=False)[source]
real_zero_vector(self)[source]