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
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
ift
NIFTy
Commits
2824435b
Commit
2824435b
authored
Jun 28, 2018
by
Christoph Lienhard
Browse files
added docu for MultiAdaptor
parent
be351767
Changes
1
Show whitespace changes
Inline
Side-by-side
nifty5/operators/multi_adaptor.py
View file @
2824435b
...
@@ -21,6 +21,15 @@ from .linear_operator import LinearOperator
...
@@ -21,6 +21,15 @@ from .linear_operator import LinearOperator
class
MultiAdaptor
(
LinearOperator
):
class
MultiAdaptor
(
LinearOperator
):
"""Transforms a Field into a MultiField and vise versa when
using adjoint_times.
Parameters
----------
target: MultiDomain
MultiDomain with only one entry (key).
"""
def
__init__
(
self
,
target
):
def
__init__
(
self
,
target
):
super
(
MultiAdaptor
,
self
).
__init__
()
super
(
MultiAdaptor
,
self
).
__init__
()
if
not
isinstance
(
target
,
MultiDomain
)
or
len
(
target
)
>
1
:
if
not
isinstance
(
target
,
MultiDomain
)
or
len
(
target
)
>
1
:
...
...
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