From 8ac40bf502ef708bfeb68fbf63171e3eae3ba0df Mon Sep 17 00:00:00 2001 From: Martin Reinecke <martin@mpa-garching.mpg.de> Date: Fri, 10 May 2019 16:39:35 +0200 Subject: [PATCH] bug fix --- pypocketfft.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypocketfft.cc b/pypocketfft.cc index 5c74ef1..e96a0da 100644 --- a/pypocketfft.cc +++ b/pypocketfft.cc @@ -151,7 +151,7 @@ template<typename T> py::array irfftn_internal(const py::array &in, throw runtime_error("bad lastsize"); dims_out[axis] = lastsize; py::array res = py::array_t<T>(dims_out); - c2r(dims_in, lastsize, copy_strides(in), copy_strides(res), axes, + c2r(dims_out, copy_strides(in), copy_strides(res), axes, reinterpret_cast<const complex<T> *>(in.data()), reinterpret_cast<T *>(res.mutable_data()), T(fct)); return res; -- GitLab