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
2455e563
Commit
2455e563
authored
Oct 18, 2018
by
Martin Reinecke
Browse files
fix FFT calls
parent
65592f80
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/operators/harmonic_operators.py
View file @
2455e563
...
...
@@ -75,14 +75,13 @@ class FFTOperator(LinearOperator):
target
.
check_codomain
(
adom
)
def
apply
(
self
,
x
,
mode
):
from
pyfftw.interfaces.numpy_fft
import
fftn
,
ifftn
self
.
_check_input
(
x
,
mode
)
ncells
=
x
.
domain
[
self
.
_space
].
size
if
x
.
domain
[
self
.
_space
].
harmonic
:
# harmonic -> position
func
=
fftn
func
=
fft
.
fftn
fct
=
1.
else
:
func
=
ifftn
func
=
fft
.
ifftn
fct
=
ncells
axes
=
x
.
domain
.
axes
[
self
.
_space
]
tdom
=
self
.
_tgt
(
mode
)
...
...
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