Commit 9c2568a9 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

warning fixes

parent a386e0d0
...@@ -76,7 +76,7 @@ shape_t makeaxes(const py::array &in, py::object axes) ...@@ -76,7 +76,7 @@ shape_t makeaxes(const py::array &in, py::object axes)
throw runtime_error("unsupported data type"); throw runtime_error("unsupported data type");
template<typename T> py::array xfftn_internal(const py::array &in, template<typename T> py::array xfftn_internal(const py::array &in,
const shape_t &axes, double fct, bool inplace, bool fwd, size_t nthreads) const shape_t &axes, long double fct, bool inplace, bool fwd, size_t nthreads)
{ {
auto dims(copy_shape(in)); auto dims(copy_shape(in));
py::array res = inplace ? in : py::array_t<complex<T>>(dims); py::array res = inplace ? in : py::array_t<complex<T>>(dims);
...@@ -102,7 +102,7 @@ py::array ifftn(const py::array &a, py::object axes, double fct, bool inplace, ...@@ -102,7 +102,7 @@ py::array ifftn(const py::array &a, py::object axes, double fct, bool inplace,
{ return xfftn(a, axes, fct, inplace, false, nthreads); } { return xfftn(a, axes, fct, inplace, false, nthreads); }
template<typename T> py::array rfftn_internal(const py::array &in, template<typename T> py::array rfftn_internal(const py::array &in,
py::object axes_, T fct, size_t nthreads) py::object axes_, long double fct, size_t nthreads)
{ {
auto axes = makeaxes(in, axes_); auto axes = makeaxes(in, axes_);
auto dims_in(copy_shape(in)), dims_out(dims_in); auto dims_in(copy_shape(in)), dims_out(dims_in);
...@@ -121,7 +121,7 @@ py::array rfftn(const py::array &in, py::object axes_, double fct, ...@@ -121,7 +121,7 @@ py::array rfftn(const py::array &in, py::object axes_, double fct,
} }
template<typename T> py::array xrfft_scipy(const py::array &in, template<typename T> py::array xrfft_scipy(const py::array &in,
size_t axis, double fct, bool inplace, bool fwd, size_t nthreads) size_t axis, long double fct, bool inplace, bool fwd, size_t nthreads)
{ {
auto dims(copy_shape(in)); auto dims(copy_shape(in));
py::array res = inplace ? in : py::array_t<T>(dims); py::array res = inplace ? in : py::array_t<T>(dims);
...@@ -145,7 +145,7 @@ py::array irfft_scipy(const py::array &in, size_t axis, double fct, ...@@ -145,7 +145,7 @@ py::array irfft_scipy(const py::array &in, size_t axis, double fct,
nthreads)) nthreads))
} }
template<typename T> py::array irfftn_internal(const py::array &in, template<typename T> py::array irfftn_internal(const py::array &in,
py::object axes_, size_t lastsize, T fct, size_t nthreads) py::object axes_, size_t lastsize, long double fct, size_t nthreads)
{ {
auto axes = makeaxes(in, axes_); auto axes = makeaxes(in, axes_);
size_t axis = axes.back(); size_t axis = axes.back();
...@@ -169,7 +169,7 @@ py::array irfftn(const py::array &in, py::object axes_, size_t lastsize, ...@@ -169,7 +169,7 @@ py::array irfftn(const py::array &in, py::object axes_, size_t lastsize,
} }
template<typename T> py::array hartley_internal(const py::array &in, template<typename T> py::array hartley_internal(const py::array &in,
py::object axes_, double fct, bool inplace, size_t nthreads) py::object axes_, long double fct, bool inplace, size_t nthreads)
{ {
auto dims(copy_shape(in)); auto dims(copy_shape(in));
py::array res = inplace ? in : py::array_t<T>(dims); py::array res = inplace ? in : py::array_t<T>(dims);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment