Commit 35d64442 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

warning patrol

parent 45edfc90
......@@ -70,7 +70,7 @@ nobase_include_HEADERS = \
libsharp2/sharp_geomhelpers.h \
libsharp2/sharp_almhelpers.h
EXTRA_DIST = runtest.sh
EXTRA_DIST = test/test_libsharp.sh test/test_space_filling.sh
check_PROGRAMS = sharp2_testsuite space_filling_test
sharp2_testsuite_SOURCES = test/sharp2_testsuite.cc
......
......@@ -75,6 +75,7 @@ class sharp_standard_alm_info: public sharp_alm_info
the index for the coefficient with the quantum numbers \a l, \a mi. */
ptrdiff_t index (int l, int mi);
virtual ~sharp_standard_alm_info() {}
virtual size_t lmax() const { return lmax_; }
virtual size_t mmax() const;
virtual size_t nm() const { return mval_.size(); }
......
......@@ -119,7 +119,7 @@ template<typename T> py::array ms2dirty_general2(const py::array &uvw_,
ms2dirty_general(uvw2,freq2,ms2,wgt2,pixsize_x,pixsize_y, nu, nv, epsilon,do_wstacking,
nthreads,dirty2,verbosity);
}
return dirty;
return move(dirty);
}
py::array Pyms2dirty_general(const py::array &uvw,
const py::array &freq, const py::array &ms, const py::object &wgt,
......@@ -201,7 +201,7 @@ template<typename T> py::array dirty2ms_general2(const py::array &uvw_,
dirty2ms_general(uvw2,freq2,dirty2,wgt2,pixsize_x,pixsize_y,nu, nv,epsilon,do_wstacking,
nthreads,ms2,verbosity);
}
return ms;
return move(ms);
}
py::array Pydirty2ms_general(const py::array &uvw,
const py::array &freq, const py::array &dirty, const py::object &wgt,
......
......@@ -222,7 +222,7 @@ template<typename T> py::array r2r_fftpack_internal(const py::array &in,
T fct = norm_fct<T>(inorm, ain.shape(), axes);
mr::r2r_fftpack(ain, aout, axes, real2hermitian, forward, fct, nthreads);
}
return out;
return std::move(out);
}
py::array r2r_fftpack(const py::array &in, const py::object &axes_,
......@@ -248,7 +248,7 @@ template<typename T> py::array dct_internal(const py::array &in,
bool ortho = inorm == true;
mr::dct(ain, aout, axes, type, fct, ortho, nthreads);
}
return out;
return std::move(out);
}
py::array dct(const py::array &in, int type, const py::object &axes_,
......@@ -274,7 +274,7 @@ template<typename T> py::array dst_internal(const py::array &in,
bool ortho = inorm == true;
mr::dst(ain, aout, axes, type, fct, ortho, nthreads);
}
return out;
return std::move(out);
}
py::array dst(const py::array &in, int type, const py::object &axes_,
......@@ -304,7 +304,7 @@ template<typename T> py::array c2r_internal(const py::array &in,
T fct = norm_fct<T>(inorm, aout.shape(), axes);
mr::c2r(ain, aout, axes, forward, fct, nthreads);
}
return out;
return std::move(out);
}
py::array c2r(const py::array &in, const py::object &axes_, size_t lastsize,
......@@ -326,7 +326,7 @@ template<typename T> py::array separable_hartley_internal(const py::array &in,
T fct = norm_fct<T>(inorm, ain.shape(), axes);
mr::r2r_separable_hartley(ain, aout, axes, fct, nthreads);
}
return out;
return std::move(out);
}
py::array separable_hartley(const py::array &in, const py::object &axes_,
......@@ -348,7 +348,7 @@ template<typename T> py::array genuine_hartley_internal(const py::array &in,
T fct = norm_fct<T>(inorm, ain.shape(), axes);
mr::r2r_genuine_hartley(ain, aout, axes, fct, nthreads);
}
return out;
return std::move(out);
}
py::array genuine_hartley(const py::array &in, const py::object &axes_,
......
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