Scheduled maintenance on Monday 2019-06-24 between 10:00-11:00 CEST

Commit 10c91f2e authored by Platz, Lukas (lplatz)'s avatar Platz, Lukas (lplatz)

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):
Parameters
----------
domain: DomainTuple
domain: Domain or DomainTuple
Domain of the operator.
matrix:
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