Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
10c91f2e
Commit
10c91f2e
authored
May 06, 2019
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty5/operators/simple_linear_operators.py
View file @
10c91f2e
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment