Commit 10c91f2e authored by Lukas Platz's avatar Lukas Platz
Browse files

remove unused space keyword and add docstring clarification

parent 29f141e5
Pipeline #47797 passed with stages
in 8 minutes and 13 seconds
......@@ -352,17 +352,16 @@ class MatrixProductOperator(EndomorphicOperator):
domain: DomainTuple
domain: Domain or DomainTuple
Domain of the operator.
Matrix of shape (field.shape, field.shape)
space: int, optional
The index of the subdomain on which the operator should act
If DomainTuple it is assumed to have only one entry.
matrix: scipy.sparse matrix or numpy array
Matrix of shape (field.shape, field.shape). Needs to support
`dot()` and `transpose()` in the style of numpy arrays.
def __init__(self, domain, matrix, space=None):
self._domain = DomainTuple.make(domain)
def __init__(self, domain, matrix):
self._domain = domain
self._capability = self.TIMES | self.ADJOINT_TIMES
self._space = utilities.infer_space(self._domain, space)
self._mat = matrix
self._mat_tr = matrix.transpose()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment