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
c561b6fe
Commit
c561b6fe
authored
Jul 10, 2018
by
Philipp Arras
Browse files
Check type of space in Symmetrizing operator
parent
d88ed387
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/operators/symmetrizing_operator.py
View file @
c561b6fe
...
...
@@ -17,16 +17,19 @@
# and financially supported by the Studienstiftung des deutschen Volkes.
from
__future__
import
absolute_import
,
division
,
print_function
from
..
import
dobj
from
..compat
import
*
from
..domain_tuple
import
DomainTuple
from
..domains.rg_space
import
RGSpace
from
..field
import
Field
from
.endomorphic_operator
import
EndomorphicOperator
from
..
import
dobj
# MR FIXME: we should make sure that the domain is a harmonic RGSpace, correct?
class
SymmetrizingOperator
(
EndomorphicOperator
):
def
__init__
(
self
,
domain
):
if
not
(
isinstance
(
domain
,
RGSpace
)
and
domain
.
harmonic
):
raise
TypeError
self
.
_domain
=
DomainTuple
.
make
(
domain
)
self
.
_ndim
=
len
(
self
.
domain
.
shape
)
...
...
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