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()[source]
dofs(dof_indices)[source]
classmethod from_instance(instance)[source]
inner(other)[source]
norm()[source]
norm2()[source]
sup_norm()[source]
to_numpy(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(value)[source]
real_make_vector(obj)[source]
real_random_vector(distribution, **kwargs)[source]
real_vector_from_numpy(data, ensure_copy=False)[source]
real_zero_vector()[source]