Skip to content
GitLab
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
0b9700e9
Commit
0b9700e9
authored
Apr 09, 2019
by
Lukas Platz
Browse files
cosmetics
parent
a976d920
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/operators/scaling_operator.py
View file @
0b9700e9
...
...
@@ -66,9 +66,12 @@ class ScalingOperator(EndomorphicOperator):
return
x
if
fct
==
0.
:
return
full
(
self
.
domain
,
0.
)
if
(
mode
&
10
)
!=
0
:
MODES_WITH_ADJOINT
=
self
.
ADJOINT_TIMES
|
self
.
ADJOINT_INVERSE_TIMES
MODES_WITH_INVERSE
=
self
.
INVERSE_TIMES
|
self
.
ADJOINT_INVERSE_TIMES
if
(
mode
&
MODES_WITH_ADJOINT
)
!=
0
:
fct
=
np
.
conj
(
fct
)
if
(
mode
&
12
)
!=
0
:
if
(
mode
&
MODES_WITH_INVERSE
)
!=
0
:
fct
=
1.
/
fct
return
x
*
fct
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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