Skip to content

Commit

Permalink
Change convolution kernel dtype for JAX backend
Browse files Browse the repository at this point in the history
  • Loading branch information
eelregit committed Mar 10, 2023
1 parent 4616acf commit 23a93de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mcfit/mcfit.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def _setup(self):
m = numpy.arange(0, self.N//2 + 1)
self._u = self.MK(self.q + 2j * math.pi / self.N / Delta * m)
self._u *= numpy.exp(-2j * math.pi * lnxy / self.N / Delta * m)
self._u = self.np.asarray(self._u)
self._u = self.np.asarray(self._u, dtype=(self.x[0] + 0j).dtype)

# following is unnecessary because hfft ignores the imag at Nyquist anyway
#if not self.lowring and self.N % 2 == 0:
Expand Down

0 comments on commit 23a93de

Please sign in to comment.