Skip to content

Commit

Permalink
Update comment regarding whether PyFFTW can normalise in forward dire…
Browse files Browse the repository at this point in the history
…ction.
  • Loading branch information
leftaroundabout committed Dec 7, 2024
1 parent 6ac6d84 commit 53499de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion odl/trafos/fourier.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,8 @@ def _call_pyfftw(self, x, out, **kwargs):
halfcomplex=self.halfcomplex, planning_effort=effort,
fftw_plan=self._fftw_plan, normalise_idft=True)

# Need to normalize for 'forward', no way to force pyfftw
# Need to normalize for 'forward', pyfftw before version 0.13
# does not offer a way to do this.
if self.sign == '-':
out /= np.prod(np.take(self.domain.shape, self.axes))

Expand Down

0 comments on commit 53499de

Please sign in to comment.