dune.xt.la package#

Submodules#

_la module#


class dune.xt.la._la.Backends[source]#

Bases: pybind11_builtins.pybind11_object

Members:

common_dense

common_sparse

istl_sparse

eigen_dense

eigen_sparse

none

__eq__()[source]#

(self: object, arg0: object) -> bool

__getstate__()[source]#

(self: object) -> int_

__hash__()[source]#

(self: object) -> int_

__index__(self: dune.xt.la._la.Backends) int[source]#
__int__(self: dune.xt.la._la.Backends) int[source]#
__ne__()[source]#

(self: object, arg0: object) -> bool

__repr__()[source]#

(self: handle) -> str

__setstate__()[source]#

(self: dune.xt.la._la.Backends, arg0: int) -> None

property name[source]#

(self: handle) -> str


class dune.xt.la._la.CommonDenseMatrix[source]#

Bases: pybind11_builtins.pybind11_object

__add__(self: dune.xt.la._la.CommonDenseMatrix, arg0: dune.xt.la._la.CommonDenseMatrix) dune.xt.la._la.CommonDenseMatrix[source]#
__iadd__(self: dune.xt.la._la.CommonDenseMatrix, arg0: dune.xt.la._la.CommonDenseMatrix) dune.xt.la._la.CommonDenseMatrix[source]#
__imul__(*args, **kwargs)[source]#

Overloaded function.

  1. __imul__(self: dune.xt.la._la.CommonDenseMatrix, arg0: dune.xt.la._la.CommonDenseMatrix) -> dune.xt.la._la.CommonDenseMatrix

  2. __imul__(self: dune.xt.la._la.CommonDenseMatrix, arg0: float) -> dune.xt.la._la.CommonDenseMatrix

__isub__(self: dune.xt.la._la.CommonDenseMatrix, arg0: dune.xt.la._la.CommonDenseMatrix) dune.xt.la._la.CommonDenseMatrix[source]#
__itruediv__(self: dune.xt.la._la.CommonDenseMatrix, arg0: dune.xt.la._la.CommonDenseMatrix) dune.xt.la._la.CommonDenseMatrix[source]#
__matmul__(self: dune.xt.la._la.CommonDenseMatrix, arg0: dune.xt.la._la.CommonVector) dune.xt.la._la.CommonVector[source]#

source

__mul__(*args, **kwargs)[source]#

Overloaded function.

  1. __mul__(self: dune.xt.la._la.CommonDenseMatrix, arg0: float) -> dune.xt.la._la.CommonDenseMatrix

  2. __mul__(self: dune.xt.la._la.CommonDenseMatrix, arg0: float) -> dune.xt.la._la.CommonDenseMatrix

__repr__(self: dune.xt.la._la.CommonDenseMatrix) str[source]#

A compact representation of the matrix (only the outer three elements).

__rmul__(self: dune.xt.la._la.CommonDenseMatrix, arg0: float) dune.xt.la._la.CommonDenseMatrix[source]#
__str__(self: dune.xt.la._la.CommonDenseMatrix) str[source]#

A full representation of the matrix.

__sub__(*args, **kwargs)[source]#

Overloaded function.

  1. __sub__(self: dune.xt.la._la.CommonDenseMatrix, arg0: dune.xt.la._la.CommonDenseMatrix) -> dune.xt.la._la.CommonDenseMatrix

  2. __sub__(self: dune.xt.la._la.CommonDenseMatrix, arg0: dune.xt.la._la.CommonDenseMatrix) -> dune.xt.la._la.CommonDenseMatrix

__truediv__(self: dune.xt.la._la.CommonDenseMatrix, arg0: float) dune.xt.la._la.CommonDenseMatrix[source]#
add_to_entry(self: dune.xt.la._la.CommonDenseMatrix, ii: int, jj: int, value: float) None[source]#
almost_equal(self: dune.xt.la._la.CommonDenseMatrix, arg0: dune.xt.la._la.CommonDenseMatrix) bool[source]#
axpy(self: dune.xt.la._la.CommonDenseMatrix, arg0: float, arg1: dune.xt.la._la.CommonDenseMatrix) None[source]#
clear_col(self: dune.xt.la._la.CommonDenseMatrix, jj: int) None[source]#
clear_row(self: dune.xt.la._la.CommonDenseMatrix, ii: int) None[source]#
copy(self: dune.xt.la._la.CommonDenseMatrix, deep: bool = False) dune.xt.la._la.CommonDenseMatrix[source]#
dot(self: dune.xt.la._la.CommonDenseMatrix, arg0: dune.xt.la._la.CommonVector) dune.xt.la._la.CommonVector[source]#

source

static from_file(filename: str, min_rows: int = - 1, min_cols: int = - 1, mode: str = 'ascii') dune.xt.la._la.CommonDenseMatrix[source]#
get_entry(self: dune.xt.la._la.CommonDenseMatrix, ii: int, jj: int) float[source]#
has_equal_shape(self: dune.xt.la._la.CommonDenseMatrix, other: dune.xt.la._la.CommonDenseMatrix) bool[source]#
mtv(self: dune.xt.la._la.CommonDenseMatrix, arg0: dune.xt.la._la.CommonVector, arg1: dune.xt.la._la.CommonVector) None[source]#

range

mv(self: dune.xt.la._la.CommonDenseMatrix, arg0: dune.xt.la._la.CommonVector, arg1: dune.xt.la._la.CommonVector) None[source]#

range

neg(self: dune.xt.la._la.CommonDenseMatrix) dune.xt.la._la.CommonDenseMatrix[source]#
pattern(self: dune.xt.la._la.CommonDenseMatrix, prune: bool = False, eps: float = 1.7763568394002505e-15) dune.xt.la._la.SparsityPatternDefault[source]#
pruned(self: dune.xt.la._la.CommonDenseMatrix, eps: float = 1.7763568394002505e-15) dune.xt.la._la.CommonDenseMatrix[source]#
scal(self: dune.xt.la._la.CommonDenseMatrix, alpha: float) None[source]#
set_entry(self: dune.xt.la._la.CommonDenseMatrix, ii: int, jj: int, value: float) None[source]#
sup_norm(self: dune.xt.la._la.CommonDenseMatrix) float[source]#
to_csr(self: dune.xt.la._la.CommonDenseMatrix, prune: bool = False, eps: float = 1e-15) Tuple[List[float], List[int], List[int]][source]#
to_file(self: dune.xt.la._la.CommonDenseMatrix, filename: str, mode: str = 'ascii') None[source]#
unit_col(self: dune.xt.la._la.CommonDenseMatrix, jj: int) None[source]#
unit_row(self: dune.xt.la._la.CommonDenseMatrix, ii: int) None[source]#
valid(self: dune.xt.la._la.CommonDenseMatrix) bool[source]#
vector_type(self: dune.xt.la._la.CommonDenseMatrix) class_<Dune::XT::LA::CommonDenseVector<double>>[source]#

class dune.xt.la._la.CommonDenseMatrixSolver[source]#

Bases: pybind11_builtins.pybind11_object

apply(*args, **kwargs)[source]#

Overloaded function.

  1. apply(self: dune.xt.la._la.CommonDenseMatrixSolver, rhs: dune.xt.la._la.CommonVector, solution: dune.xt.la._la.CommonVector) -> None

  2. apply(self: dune.xt.la._la.CommonDenseMatrixSolver, rhs: dune.xt.la._la.CommonVector, solution: dune.xt.la._la.CommonVector, type: str) -> None

  3. apply(self: dune.xt.la._la.CommonDenseMatrixSolver, rhs: dune.xt.la._la.CommonVector, solution: dune.xt.la._la.CommonVector, options: Dict[str, str]) -> None

static options(arg0: str) Dict[str, str][source]#
static types() List[str][source]#

class dune.xt.la._la.CommonVector[source]#

Bases: pybind11_builtins.pybind11_object

__add__(self: dune.xt.la._la.CommonVector, arg0: dune.xt.la._la.CommonVector) dune.xt.la._la.CommonVector[source]#
__getitem__(self: dune.xt.la._la.CommonVector, arg0: int) float[source]#
__getstate__(self: dune.xt.la._la.CommonVector) tuple[source]#
__iadd__(self: dune.xt.la._la.CommonVector, arg0: dune.xt.la._la.CommonVector) dune.xt.la._la.CommonVector[source]#
__imul__(*args, **kwargs)[source]#

Overloaded function.

  1. __imul__(self: dune.xt.la._la.CommonVector, arg0: dune.xt.la._la.CommonVector) -> dune.xt.la._la.CommonVector

  2. __imul__(self: dune.xt.la._la.CommonVector, arg0: float) -> dune.xt.la._la.CommonVector

__isub__(self: dune.xt.la._la.CommonVector, arg0: dune.xt.la._la.CommonVector) dune.xt.la._la.CommonVector[source]#
__iter__(self: dune.xt.la._la.CommonVector) iterator[source]#
__itruediv__(self: dune.xt.la._la.CommonVector, arg0: dune.xt.la._la.CommonVector) dune.xt.la._la.CommonVector[source]#
__len__(self: dune.xt.la._la.CommonVector) int[source]#
__mul__(*args, **kwargs)[source]#

Overloaded function.

  1. __mul__(self: dune.xt.la._la.CommonVector, arg0: float) -> dune.xt.la._la.CommonVector

  2. __mul__(self: dune.xt.la._la.CommonVector, arg0: float) -> dune.xt.la._la.CommonVector

__repr__(self: dune.xt.la._la.CommonVector) str[source]#

A compact representation of the vector (only the first and last three elements).

__rmul__(self: dune.xt.la._la.CommonVector, arg0: float) dune.xt.la._la.CommonVector[source]#
__setitem__(self: dune.xt.la._la.CommonVector, arg0: int, arg1: float) None[source]#
__setstate__(self: dune.xt.la._la.CommonVector, arg0: tuple) None[source]#
__str__(self: dune.xt.la._la.CommonVector) str[source]#

A full representation of the vector.

__sub__(*args, **kwargs)[source]#

Overloaded function.

  1. __sub__(self: dune.xt.la._la.CommonVector, arg0: dune.xt.la._la.CommonVector) -> dune.xt.la._la.CommonVector

  2. __sub__(self: dune.xt.la._la.CommonVector, arg0: dune.xt.la._la.CommonVector) -> dune.xt.la._la.CommonVector

__truediv__(self: dune.xt.la._la.CommonVector, arg0: float) dune.xt.la._la.CommonVector[source]#
add_to_entry(self: dune.xt.la._la.CommonVector, ii: int, value: float) None[source]#
almost_equal(self: dune.xt.la._la.CommonVector, other: dune.xt.la._la.CommonVector, epsilon: float = 1.7763568394002505e-15) bool[source]#
amax(self: dune.xt.la._la.CommonVector) Tuple[int, float][source]#
axpy(self: dune.xt.la._la.CommonVector, arg0: float, arg1: dune.xt.la._la.CommonVector) None[source]#
copy(self: dune.xt.la._la.CommonVector, deep: bool = False) dune.xt.la._la.CommonVector[source]#
dim(self: dune.xt.la._la.CommonVector) int[source]#
dot(self: dune.xt.la._la.CommonVector, arg0: dune.xt.la._la.CommonVector) float[source]#
static from_file(filename: str, min_size: int = - 1, mode: str = 'ascii') dune.xt.la._la.CommonVector[source]#
get_entry(self: dune.xt.la._la.CommonVector, jj: int) float[source]#
has_equal_shape(self: dune.xt.la._la.CommonVector, other: dune.xt.la._la.CommonVector) bool[source]#
l1_norm(self: dune.xt.la._la.CommonVector) float[source]#
l2_norm(self: dune.xt.la._la.CommonVector) float[source]#
matrix_type(self: dune.xt.la._la.CommonVector) class_<Dune::XT::LA::CommonDenseMatrix<double, (Dune::XT::Common::StorageLayout)0>>[source]#
mean(self: dune.xt.la._la.CommonVector) float[source]#
neg(self: dune.xt.la._la.CommonVector) dune.xt.la._la.CommonVector[source]#
scal(self: dune.xt.la._la.CommonVector, alpha: float) None[source]#
set_all(self: dune.xt.la._la.CommonVector, value: float) None[source]#
set_entry(self: dune.xt.la._la.CommonVector, ii: int, value: float) None[source]#
standard_deviation(self: dune.xt.la._la.CommonVector) float[source]#
sup_norm(self: dune.xt.la._la.CommonVector) float[source]#
to_file(self: dune.xt.la._la.CommonVector, filename: str, mode: str = 'ascii') None[source]#
valid(self: dune.xt.la._la.CommonVector) bool[source]#

class dune.xt.la._la.CommonVectorSizeT[source]#

Bases: pybind11_builtins.pybind11_object

__add__(self: dune.xt.la._la.CommonVectorSizeT, arg0: dune.xt.la._la.CommonVectorSizeT) dune.xt.la._la.CommonVectorSizeT[source]#
__getitem__(self: dune.xt.la._la.CommonVectorSizeT, arg0: int) int[source]#
__getstate__(self: dune.xt.la._la.CommonVectorSizeT) tuple[source]#
__iadd__(self: dune.xt.la._la.CommonVectorSizeT, arg0: dune.xt.la._la.CommonVectorSizeT) dune.xt.la._la.CommonVectorSizeT[source]#
__imul__(*args, **kwargs)[source]#

Overloaded function.

  1. __imul__(self: dune.xt.la._la.CommonVectorSizeT, arg0: dune.xt.la._la.CommonVectorSizeT) -> dune.xt.la._la.CommonVectorSizeT

  2. __imul__(self: dune.xt.la._la.CommonVectorSizeT, arg0: int) -> dune.xt.la._la.CommonVectorSizeT

__isub__(self: dune.xt.la._la.CommonVectorSizeT, arg0: dune.xt.la._la.CommonVectorSizeT) dune.xt.la._la.CommonVectorSizeT[source]#
__iter__(self: dune.xt.la._la.CommonVectorSizeT) iterator[source]#
__itruediv__(self: dune.xt.la._la.CommonVectorSizeT, arg0: dune.xt.la._la.CommonVectorSizeT) dune.xt.la._la.CommonVectorSizeT[source]#
__len__(self: dune.xt.la._la.CommonVectorSizeT) int[source]#
__mul__(*args, **kwargs)[source]#

Overloaded function.

  1. __mul__(self: dune.xt.la._la.CommonVectorSizeT, arg0: int) -> dune.xt.la._la.CommonVectorSizeT

  2. __mul__(self: dune.xt.la._la.CommonVectorSizeT, arg0: int) -> dune.xt.la._la.CommonVectorSizeT

__repr__(self: dune.xt.la._la.CommonVectorSizeT) str[source]#

A compact representation of the vector (only the first and last three elements).

__rmul__(self: dune.xt.la._la.CommonVectorSizeT, arg0: int) dune.xt.la._la.CommonVectorSizeT[source]#
__setitem__(self: dune.xt.la._la.CommonVectorSizeT, arg0: int, arg1: int) None[source]#
__setstate__(self: dune.xt.la._la.CommonVectorSizeT, arg0: tuple) None[source]#
__str__(self: dune.xt.la._la.CommonVectorSizeT) str[source]#

A full representation of the vector.

__sub__(*args, **kwargs)[source]#

Overloaded function.

  1. __sub__(self: dune.xt.la._la.CommonVectorSizeT, arg0: dune.xt.la._la.CommonVectorSizeT) -> dune.xt.la._la.CommonVectorSizeT

  2. __sub__(self: dune.xt.la._la.CommonVectorSizeT, arg0: dune.xt.la._la.CommonVectorSizeT) -> dune.xt.la._la.CommonVectorSizeT

__truediv__(self: dune.xt.la._la.CommonVectorSizeT, arg0: int) dune.xt.la._la.CommonVectorSizeT[source]#
add_to_entry(self: dune.xt.la._la.CommonVectorSizeT, ii: int, value: int) None[source]#
almost_equal(self: dune.xt.la._la.CommonVectorSizeT, other: dune.xt.la._la.CommonVectorSizeT, epsilon: int = 0) bool[source]#
amax(self: dune.xt.la._la.CommonVectorSizeT) Tuple[int, int][source]#
axpy(self: dune.xt.la._la.CommonVectorSizeT, arg0: int, arg1: dune.xt.la._la.CommonVectorSizeT) None[source]#
copy(self: dune.xt.la._la.CommonVectorSizeT, deep: bool = False) dune.xt.la._la.CommonVectorSizeT[source]#
dim(self: dune.xt.la._la.CommonVectorSizeT) int[source]#
dot(self: dune.xt.la._la.CommonVectorSizeT, arg0: dune.xt.la._la.CommonVectorSizeT) int[source]#
static from_file(filename: str, min_size: int = - 1, mode: str = 'ascii') dune.xt.la._la.CommonVectorSizeT[source]#
get_entry(self: dune.xt.la._la.CommonVectorSizeT, jj: int) int[source]#
has_equal_shape(self: dune.xt.la._la.CommonVectorSizeT, other: dune.xt.la._la.CommonVectorSizeT) bool[source]#
l1_norm(self: dune.xt.la._la.CommonVectorSizeT) int[source]#
l2_norm(self: dune.xt.la._la.CommonVectorSizeT) int[source]#
mean(self: dune.xt.la._la.CommonVectorSizeT) int[source]#
neg(self: dune.xt.la._la.CommonVectorSizeT) dune.xt.la._la.CommonVectorSizeT[source]#
scal(self: dune.xt.la._la.CommonVectorSizeT, alpha: int) None[source]#
set_all(self: dune.xt.la._la.CommonVectorSizeT, value: int) None[source]#
set_entry(self: dune.xt.la._la.CommonVectorSizeT, ii: int, value: int) None[source]#
standard_deviation(self: dune.xt.la._la.CommonVectorSizeT) int[source]#
sup_norm(self: dune.xt.la._la.CommonVectorSizeT) int[source]#
to_file(self: dune.xt.la._la.CommonVectorSizeT, filename: str, mode: str = 'ascii') None[source]#
valid(self: dune.xt.la._la.CommonVectorSizeT) bool[source]#

class dune.xt.la._la.EigenDenseMatrixSolver[source]#

Bases: pybind11_builtins.pybind11_object

apply(*args, **kwargs)[source]#

Overloaded function.

  1. apply(self: dune.xt.la._la.EigenDenseMatrixSolver, rhs: dune.xt.la._la.EigenVector, solution: dune.xt.la._la.EigenVector) -> None

  2. apply(self: dune.xt.la._la.EigenDenseMatrixSolver, rhs: dune.xt.la._la.EigenVector, solution: dune.xt.la._la.EigenVector, type: str) -> None

  3. apply(self: dune.xt.la._la.EigenDenseMatrixSolver, rhs: dune.xt.la._la.EigenVector, solution: dune.xt.la._la.EigenVector, options: Dict[str, str]) -> None

static options(arg0: str) Dict[str, str][source]#
static types() List[str][source]#

class dune.xt.la._la.EigenSparseMatrix[source]#

Bases: pybind11_builtins.pybind11_object

__add__(self: dune.xt.la._la.EigenSparseMatrix, arg0: dune.xt.la._la.EigenSparseMatrix) dune.xt.la._la.EigenSparseMatrix[source]#
__iadd__(self: dune.xt.la._la.EigenSparseMatrix, arg0: dune.xt.la._la.EigenSparseMatrix) dune.xt.la._la.EigenSparseMatrix[source]#
__imul__(*args, **kwargs)[source]#

Overloaded function.

  1. __imul__(self: dune.xt.la._la.EigenSparseMatrix, arg0: dune.xt.la._la.EigenSparseMatrix) -> dune.xt.la._la.EigenSparseMatrix

  2. __imul__(self: dune.xt.la._la.EigenSparseMatrix, arg0: float) -> dune.xt.la._la.EigenSparseMatrix

__isub__(self: dune.xt.la._la.EigenSparseMatrix, arg0: dune.xt.la._la.EigenSparseMatrix) dune.xt.la._la.EigenSparseMatrix[source]#
__itruediv__(self: dune.xt.la._la.EigenSparseMatrix, arg0: dune.xt.la._la.EigenSparseMatrix) dune.xt.la._la.EigenSparseMatrix[source]#
__matmul__(self: dune.xt.la._la.EigenSparseMatrix, arg0: dune.xt.la._la.EigenVector) dune.xt.la._la.EigenVector[source]#

source

__mul__(*args, **kwargs)[source]#

Overloaded function.

  1. __mul__(self: dune.xt.la._la.EigenSparseMatrix, arg0: float) -> dune.xt.la._la.EigenSparseMatrix

  2. __mul__(self: dune.xt.la._la.EigenSparseMatrix, arg0: float) -> dune.xt.la._la.EigenSparseMatrix

__repr__(self: dune.xt.la._la.EigenSparseMatrix) str[source]#

A compact representation of the matrix (only the outer three elements).

__rmul__(self: dune.xt.la._la.EigenSparseMatrix, arg0: float) dune.xt.la._la.EigenSparseMatrix[source]#
__str__(self: dune.xt.la._la.EigenSparseMatrix) str[source]#

A full representation of the matrix.

__sub__(*args, **kwargs)[source]#

Overloaded function.

  1. __sub__(self: dune.xt.la._la.EigenSparseMatrix, arg0: dune.xt.la._la.EigenSparseMatrix) -> dune.xt.la._la.EigenSparseMatrix

  2. __sub__(self: dune.xt.la._la.EigenSparseMatrix, arg0: dune.xt.la._la.EigenSparseMatrix) -> dune.xt.la._la.EigenSparseMatrix

__truediv__(self: dune.xt.la._la.EigenSparseMatrix, arg0: float) dune.xt.la._la.EigenSparseMatrix[source]#
add_to_entry(self: dune.xt.la._la.EigenSparseMatrix, ii: int, jj: int, value: float) None[source]#
almost_equal(self: dune.xt.la._la.EigenSparseMatrix, arg0: dune.xt.la._la.EigenSparseMatrix) bool[source]#
axpy(self: dune.xt.la._la.EigenSparseMatrix, arg0: float, arg1: dune.xt.la._la.EigenSparseMatrix) None[source]#
clear_col(self: dune.xt.la._la.EigenSparseMatrix, jj: int) None[source]#
clear_row(self: dune.xt.la._la.EigenSparseMatrix, ii: int) None[source]#
copy(self: dune.xt.la._la.EigenSparseMatrix, deep: bool = False) dune.xt.la._la.EigenSparseMatrix[source]#
dot(self: dune.xt.la._la.EigenSparseMatrix, arg0: dune.xt.la._la.EigenVector) dune.xt.la._la.EigenVector[source]#

source

static from_file(filename: str, min_rows: int = - 1, min_cols: int = - 1, mode: str = 'ascii') dune.xt.la._la.EigenSparseMatrix[source]#
get_entry(self: dune.xt.la._la.EigenSparseMatrix, ii: int, jj: int) float[source]#
has_equal_shape(self: dune.xt.la._la.EigenSparseMatrix, other: dune.xt.la._la.EigenSparseMatrix) bool[source]#
mtv(self: dune.xt.la._la.EigenSparseMatrix, arg0: dune.xt.la._la.EigenVector, arg1: dune.xt.la._la.EigenVector) None[source]#

range

mv(self: dune.xt.la._la.EigenSparseMatrix, arg0: dune.xt.la._la.EigenVector, arg1: dune.xt.la._la.EigenVector) None[source]#

range

neg(self: dune.xt.la._la.EigenSparseMatrix) dune.xt.la._la.EigenSparseMatrix[source]#
pattern(self: dune.xt.la._la.EigenSparseMatrix, prune: bool = False, eps: float = 1.7763568394002505e-15) dune.xt.la._la.SparsityPatternDefault[source]#
pruned(self: dune.xt.la._la.EigenSparseMatrix, eps: float = 1.7763568394002505e-15) dune.xt.la._la.EigenSparseMatrix[source]#
scal(self: dune.xt.la._la.EigenSparseMatrix, alpha: float) None[source]#
set_entry(self: dune.xt.la._la.EigenSparseMatrix, ii: int, jj: int, value: float) None[source]#
sup_norm(self: dune.xt.la._la.EigenSparseMatrix) float[source]#
to_csr(self: dune.xt.la._la.EigenSparseMatrix, prune: bool = False, eps: float = 1e-15) Tuple[List[float], List[int], List[int]][source]#
to_file(self: dune.xt.la._la.EigenSparseMatrix, filename: str, mode: str = 'ascii') None[source]#
unit_col(self: dune.xt.la._la.EigenSparseMatrix, jj: int) None[source]#
unit_row(self: dune.xt.la._la.EigenSparseMatrix, ii: int) None[source]#
valid(self: dune.xt.la._la.EigenSparseMatrix) bool[source]#
vector_type(self: dune.xt.la._la.EigenSparseMatrix) class_<Dune::XT::LA::EigenDenseVector<double>>[source]#

class dune.xt.la._la.EigenSparseMatrixSolver[source]#

Bases: pybind11_builtins.pybind11_object

apply(*args, **kwargs)[source]#

Overloaded function.

  1. apply(self: dune.xt.la._la.EigenSparseMatrixSolver, rhs: dune.xt.la._la.EigenVector, solution: dune.xt.la._la.EigenVector) -> None

  2. apply(self: dune.xt.la._la.EigenSparseMatrixSolver, rhs: dune.xt.la._la.EigenVector, solution: dune.xt.la._la.EigenVector, type: str) -> None

  3. apply(self: dune.xt.la._la.EigenSparseMatrixSolver, rhs: dune.xt.la._la.EigenVector, solution: dune.xt.la._la.EigenVector, options: Dict[str, str]) -> None

static options(arg0: str) Dict[str, str][source]#
static types() List[str][source]#

class dune.xt.la._la.EigenVector[source]#

Bases: pybind11_builtins.pybind11_object

__add__(self: dune.xt.la._la.EigenVector, arg0: dune.xt.la._la.EigenVector) dune.xt.la._la.EigenVector[source]#
__getitem__(self: dune.xt.la._la.EigenVector, arg0: int) float[source]#
__getstate__(self: dune.xt.la._la.EigenVector) tuple[source]#
__iadd__(self: dune.xt.la._la.EigenVector, arg0: dune.xt.la._la.EigenVector) dune.xt.la._la.EigenVector[source]#
__imul__(*args, **kwargs)[source]#

Overloaded function.

  1. __imul__(self: dune.xt.la._la.EigenVector, arg0: dune.xt.la._la.EigenVector) -> dune.xt.la._la.EigenVector

  2. __imul__(self: dune.xt.la._la.EigenVector, arg0: float) -> dune.xt.la._la.EigenVector

__isub__(self: dune.xt.la._la.EigenVector, arg0: dune.xt.la._la.EigenVector) dune.xt.la._la.EigenVector[source]#
__iter__(self: dune.xt.la._la.EigenVector) iterator[source]#
__itruediv__(self: dune.xt.la._la.EigenVector, arg0: dune.xt.la._la.EigenVector) dune.xt.la._la.EigenVector[source]#
__len__(self: dune.xt.la._la.EigenVector) int[source]#
__mul__(*args, **kwargs)[source]#

Overloaded function.

  1. __mul__(self: dune.xt.la._la.EigenVector, arg0: float) -> dune.xt.la._la.EigenVector

  2. __mul__(self: dune.xt.la._la.EigenVector, arg0: float) -> dune.xt.la._la.EigenVector

__repr__(self: dune.xt.la._la.EigenVector) str[source]#

A compact representation of the vector (only the first and last three elements).

__rmul__(self: dune.xt.la._la.EigenVector, arg0: float) dune.xt.la._la.EigenVector[source]#
__setitem__(self: dune.xt.la._la.EigenVector, arg0: int, arg1: float) None[source]#
__setstate__(self: dune.xt.la._la.EigenVector, arg0: tuple) None[source]#
__str__(self: dune.xt.la._la.EigenVector) str[source]#

A full representation of the vector.

__sub__(*args, **kwargs)[source]#

Overloaded function.

  1. __sub__(self: dune.xt.la._la.EigenVector, arg0: dune.xt.la._la.EigenVector) -> dune.xt.la._la.EigenVector

  2. __sub__(self: dune.xt.la._la.EigenVector, arg0: dune.xt.la._la.EigenVector) -> dune.xt.la._la.EigenVector

__truediv__(self: dune.xt.la._la.EigenVector, arg0: float) dune.xt.la._la.EigenVector[source]#
add_to_entry(self: dune.xt.la._la.EigenVector, ii: int, value: float) None[source]#
almost_equal(self: dune.xt.la._la.EigenVector, other: dune.xt.la._la.EigenVector, epsilon: float = 1.7763568394002505e-15) bool[source]#
amax(self: dune.xt.la._la.EigenVector) Tuple[int, float][source]#
axpy(self: dune.xt.la._la.EigenVector, arg0: float, arg1: dune.xt.la._la.EigenVector) None[source]#
copy(self: dune.xt.la._la.EigenVector, deep: bool = False) dune.xt.la._la.EigenVector[source]#
dim(self: dune.xt.la._la.EigenVector) int[source]#
dot(self: dune.xt.la._la.EigenVector, arg0: dune.xt.la._la.EigenVector) float[source]#
static from_file(filename: str, min_size: int = - 1, mode: str = 'ascii') dune.xt.la._la.EigenVector[source]#
get_entry(self: dune.xt.la._la.EigenVector, jj: int) float[source]#
has_equal_shape(self: dune.xt.la._la.EigenVector, other: dune.xt.la._la.EigenVector) bool[source]#
l1_norm(self: dune.xt.la._la.EigenVector) float[source]#
l2_norm(self: dune.xt.la._la.EigenVector) float[source]#
matrix_type(self: dune.xt.la._la.EigenVector) class_<Dune::XT::LA::EigenRowMajorSparseMatrix<double>>[source]#
mean(self: dune.xt.la._la.EigenVector) float[source]#
neg(self: dune.xt.la._la.EigenVector) dune.xt.la._la.EigenVector[source]#
scal(self: dune.xt.la._la.EigenVector, alpha: float) None[source]#
set_all(self: dune.xt.la._la.EigenVector, value: float) None[source]#
set_entry(self: dune.xt.la._la.EigenVector, ii: int, value: float) None[source]#
standard_deviation(self: dune.xt.la._la.EigenVector) float[source]#
sup_norm(self: dune.xt.la._la.EigenVector) float[source]#
to_file(self: dune.xt.la._la.EigenVector, filename: str, mode: str = 'ascii') None[source]#
valid(self: dune.xt.la._la.EigenVector) bool[source]#

class dune.xt.la._la.IstlSparseMatrix[source]#

Bases: pybind11_builtins.pybind11_object

__add__(self: dune.xt.la._la.IstlSparseMatrix, arg0: dune.xt.la._la.IstlSparseMatrix) dune.xt.la._la.IstlSparseMatrix[source]#
__iadd__(self: dune.xt.la._la.IstlSparseMatrix, arg0: dune.xt.la._la.IstlSparseMatrix) dune.xt.la._la.IstlSparseMatrix[source]#
__imul__(*args, **kwargs)[source]#

Overloaded function.

  1. __imul__(self: dune.xt.la._la.IstlSparseMatrix, arg0: dune.xt.la._la.IstlSparseMatrix) -> dune.xt.la._la.IstlSparseMatrix

  2. __imul__(self: dune.xt.la._la.IstlSparseMatrix, arg0: float) -> dune.xt.la._la.IstlSparseMatrix

__isub__(self: dune.xt.la._la.IstlSparseMatrix, arg0: dune.xt.la._la.IstlSparseMatrix) dune.xt.la._la.IstlSparseMatrix[source]#
__itruediv__(self: dune.xt.la._la.IstlSparseMatrix, arg0: dune.xt.la._la.IstlSparseMatrix) dune.xt.la._la.IstlSparseMatrix[source]#
__matmul__(self: dune.xt.la._la.IstlSparseMatrix, arg0: dune.xt.la._la.IstlVector) dune.xt.la._la.IstlVector[source]#

source

__mul__(*args, **kwargs)[source]#

Overloaded function.

  1. __mul__(self: dune.xt.la._la.IstlSparseMatrix, arg0: float) -> dune.xt.la._la.IstlSparseMatrix

  2. __mul__(self: dune.xt.la._la.IstlSparseMatrix, arg0: float) -> dune.xt.la._la.IstlSparseMatrix

__repr__(self: dune.xt.la._la.IstlSparseMatrix) str[source]#

A compact representation of the matrix (only the outer three elements).

__rmul__(self: dune.xt.la._la.IstlSparseMatrix, arg0: float) dune.xt.la._la.IstlSparseMatrix[source]#
__str__(self: dune.xt.la._la.IstlSparseMatrix) str[source]#

A full representation of the matrix.

__sub__(*args, **kwargs)[source]#

Overloaded function.

  1. __sub__(self: dune.xt.la._la.IstlSparseMatrix, arg0: dune.xt.la._la.IstlSparseMatrix) -> dune.xt.la._la.IstlSparseMatrix

  2. __sub__(self: dune.xt.la._la.IstlSparseMatrix, arg0: dune.xt.la._la.IstlSparseMatrix) -> dune.xt.la._la.IstlSparseMatrix

__truediv__(self: dune.xt.la._la.IstlSparseMatrix, arg0: float) dune.xt.la._la.IstlSparseMatrix[source]#
add_to_entry(self: dune.xt.la._la.IstlSparseMatrix, ii: int, jj: int, value: float) None[source]#
almost_equal(self: dune.xt.la._la.IstlSparseMatrix, arg0: dune.xt.la._la.IstlSparseMatrix) bool[source]#
axpy(self: dune.xt.la._la.IstlSparseMatrix, arg0: float, arg1: dune.xt.la._la.IstlSparseMatrix) None[source]#
clear_col(self: dune.xt.la._la.IstlSparseMatrix, jj: int) None[source]#
clear_row(self: dune.xt.la._la.IstlSparseMatrix, ii: int) None[source]#
copy(self: dune.xt.la._la.IstlSparseMatrix, deep: bool = False) dune.xt.la._la.IstlSparseMatrix[source]#
dot(self: dune.xt.la._la.IstlSparseMatrix, arg0: dune.xt.la._la.IstlVector) dune.xt.la._la.IstlVector[source]#

source

static from_file(filename: str, min_rows: int = - 1, min_cols: int = - 1, mode: str = 'ascii') dune.xt.la._la.IstlSparseMatrix[source]#
get_entry(self: dune.xt.la._la.IstlSparseMatrix, ii: int, jj: int) float[source]#
has_equal_shape(self: dune.xt.la._la.IstlSparseMatrix, other: dune.xt.la._la.IstlSparseMatrix) bool[source]#
mtv(self: dune.xt.la._la.IstlSparseMatrix, arg0: dune.xt.la._la.IstlVector, arg1: dune.xt.la._la.IstlVector) None[source]#

range

mv(self: dune.xt.la._la.IstlSparseMatrix, arg0: dune.xt.la._la.IstlVector, arg1: dune.xt.la._la.IstlVector) None[source]#

range

neg(self: dune.xt.la._la.IstlSparseMatrix) dune.xt.la._la.IstlSparseMatrix[source]#
pattern(self: dune.xt.la._la.IstlSparseMatrix, prune: bool = False, eps: float = 1.7763568394002505e-15) dune.xt.la._la.SparsityPatternDefault[source]#
pruned(self: dune.xt.la._la.IstlSparseMatrix, eps: float = 1.7763568394002505e-15) dune.xt.la._la.IstlSparseMatrix[source]#
scal(self: dune.xt.la._la.IstlSparseMatrix, alpha: float) None[source]#
set_entry(self: dune.xt.la._la.IstlSparseMatrix, ii: int, jj: int, value: float) None[source]#
sup_norm(self: dune.xt.la._la.IstlSparseMatrix) float[source]#
to_csr(self: dune.xt.la._la.IstlSparseMatrix, prune: bool = False, eps: float = 1e-15) Tuple[List[float], List[int], List[int]][source]#
to_file(self: dune.xt.la._la.IstlSparseMatrix, filename: str, mode: str = 'ascii') None[source]#
unit_col(self: dune.xt.la._la.IstlSparseMatrix, jj: int) None[source]#
unit_row(self: dune.xt.la._la.IstlSparseMatrix, ii: int) None[source]#
valid(self: dune.xt.la._la.IstlSparseMatrix) bool[source]#
vector_type(self: dune.xt.la._la.IstlSparseMatrix) class_<Dune::XT::LA::IstlDenseVector<double>>[source]#

class dune.xt.la._la.IstlSparseMatrixSolver[source]#

Bases: pybind11_builtins.pybind11_object

apply(*args, **kwargs)[source]#

Overloaded function.

  1. apply(self: dune.xt.la._la.IstlSparseMatrixSolver, rhs: dune.xt.la._la.IstlVector, solution: dune.xt.la._la.IstlVector) -> None

  2. apply(self: dune.xt.la._la.IstlSparseMatrixSolver, rhs: dune.xt.la._la.IstlVector, solution: dune.xt.la._la.IstlVector, type: str) -> None

  3. apply(self: dune.xt.la._la.IstlSparseMatrixSolver, rhs: dune.xt.la._la.IstlVector, solution: dune.xt.la._la.IstlVector, options: Dict[str, str]) -> None

static options(arg0: str) Dict[str, str][source]#
static types() List[str][source]#

class dune.xt.la._la.IstlVector[source]#

Bases: pybind11_builtins.pybind11_object

__add__(self: dune.xt.la._la.IstlVector, arg0: dune.xt.la._la.IstlVector) dune.xt.la._la.IstlVector[source]#
__getitem__(self: dune.xt.la._la.IstlVector, arg0: int) float[source]#
__getstate__(self: dune.xt.la._la.IstlVector) tuple[source]#
__iadd__(self: dune.xt.la._la.IstlVector, arg0: dune.xt.la._la.IstlVector) dune.xt.la._la.IstlVector[source]#
__imul__(*args, **kwargs)[source]#

Overloaded function.

  1. __imul__(self: dune.xt.la._la.IstlVector, arg0: dune.xt.la._la.IstlVector) -> dune.xt.la._la.IstlVector

  2. __imul__(self: dune.xt.la._la.IstlVector, arg0: float) -> dune.xt.la._la.IstlVector

__isub__(self: dune.xt.la._la.IstlVector, arg0: dune.xt.la._la.IstlVector) dune.xt.la._la.IstlVector[source]#
__iter__(self: dune.xt.la._la.IstlVector) iterator[source]#
__itruediv__(self: dune.xt.la._la.IstlVector, arg0: dune.xt.la._la.IstlVector) dune.xt.la._la.IstlVector[source]#
__len__(self: dune.xt.la._la.IstlVector) int[source]#
__mul__(*args, **kwargs)[source]#

Overloaded function.

  1. __mul__(self: dune.xt.la._la.IstlVector, arg0: float) -> dune.xt.la._la.IstlVector

  2. __mul__(self: dune.xt.la._la.IstlVector, arg0: float) -> dune.xt.la._la.IstlVector

__repr__(self: dune.xt.la._la.IstlVector) str[source]#

A compact representation of the vector (only the first and last three elements).

__rmul__(self: dune.xt.la._la.IstlVector, arg0: float) dune.xt.la._la.IstlVector[source]#
__setitem__(self: dune.xt.la._la.IstlVector, arg0: int, arg1: float) None[source]#
__setstate__(self: dune.xt.la._la.IstlVector, arg0: tuple) None[source]#
__str__(self: dune.xt.la._la.IstlVector) str[source]#

A full representation of the vector.

__sub__(*args, **kwargs)[source]#

Overloaded function.

  1. __sub__(self: dune.xt.la._la.IstlVector, arg0: dune.xt.la._la.IstlVector) -> dune.xt.la._la.IstlVector

  2. __sub__(self: dune.xt.la._la.IstlVector, arg0: dune.xt.la._la.IstlVector) -> dune.xt.la._la.IstlVector

__truediv__(self: dune.xt.la._la.IstlVector, arg0: float) dune.xt.la._la.IstlVector[source]#
add_to_entry(self: dune.xt.la._la.IstlVector, ii: int, value: float) None[source]#
almost_equal(self: dune.xt.la._la.IstlVector, other: dune.xt.la._la.IstlVector, epsilon: float = 1.7763568394002505e-15) bool[source]#
amax(self: dune.xt.la._la.IstlVector) Tuple[int, float][source]#
axpy(self: dune.xt.la._la.IstlVector, arg0: float, arg1: dune.xt.la._la.IstlVector) None[source]#
copy(self: dune.xt.la._la.IstlVector, deep: bool = False) dune.xt.la._la.IstlVector[source]#
dim(self: dune.xt.la._la.IstlVector) int[source]#
dot(self: dune.xt.la._la.IstlVector, arg0: dune.xt.la._la.IstlVector) float[source]#
static from_file(filename: str, min_size: int = - 1, mode: str = 'ascii') dune.xt.la._la.IstlVector[source]#
get_entry(self: dune.xt.la._la.IstlVector, jj: int) float[source]#
has_equal_shape(self: dune.xt.la._la.IstlVector, other: dune.xt.la._la.IstlVector) bool[source]#
l1_norm(self: dune.xt.la._la.IstlVector) float[source]#
l2_norm(self: dune.xt.la._la.IstlVector) float[source]#
matrix_type(self: dune.xt.la._la.IstlVector) class_<Dune::XT::LA::IstlRowMajorSparseMatrix<double>>[source]#
mean(self: dune.xt.la._la.IstlVector) float[source]#
neg(self: dune.xt.la._la.IstlVector) dune.xt.la._la.IstlVector[source]#
scal(self: dune.xt.la._la.IstlVector, alpha: float) None[source]#
set_all(self: dune.xt.la._la.IstlVector, value: float) None[source]#
set_entry(self: dune.xt.la._la.IstlVector, ii: int, value: float) None[source]#
standard_deviation(self: dune.xt.la._la.IstlVector) float[source]#
sup_norm(self: dune.xt.la._la.IstlVector) float[source]#
to_file(self: dune.xt.la._la.IstlVector, filename: str, mode: str = 'ascii') None[source]#
valid(self: dune.xt.la._la.IstlVector) bool[source]#

class dune.xt.la._la.SparsityPatternDefault[source]#

Bases: pybind11_builtins.pybind11_object

__eq__(self: dune.xt.la._la.SparsityPatternDefault, arg0: dune.xt.la._la.SparsityPatternDefault) bool[source]#
__ne__(self: dune.xt.la._la.SparsityPatternDefault, arg0: dune.xt.la._la.SparsityPatternDefault) bool[source]#
insert(self: dune.xt.la._la.SparsityPatternDefault, outer_index: int, inner_index: int) None[source]#
sort(*args, **kwargs)[source]#

Overloaded function.

  1. sort(self: dune.xt.la._la.SparsityPatternDefault, outer_index: int) -> None

  2. sort(self: dune.xt.la._la.SparsityPatternDefault) -> None

_la_traits module#


class dune.xt.la._la_traits.Common[source]#

Bases: pybind11_builtins.pybind11_object

tag: Common

__repr__(self: dune.xt.la._la_traits.Common) str[source]#

class dune.xt.la._la_traits.Dense[source]#

Bases: pybind11_builtins.pybind11_object

tag: Dense

__repr__(self: dune.xt.la._la_traits.Dense) str[source]#

class dune.xt.la._la_traits.Eigen[source]#

Bases: pybind11_builtins.pybind11_object

tag: Eigen

__repr__(self: dune.xt.la._la_traits.Eigen) str[source]#

class dune.xt.la._la_traits.Istl[source]#

Bases: pybind11_builtins.pybind11_object

tag: Istl

__repr__(self: dune.xt.la._la_traits.Istl) str[source]#

class dune.xt.la._la_traits.Sparse[source]#

Bases: pybind11_builtins.pybind11_object

tag: Sparse

__repr__(self: dune.xt.la._la_traits.Sparse) str[source]#