Skip to content

Commit

Permalink
Made templates inline, does not change performance
Browse files Browse the repository at this point in the history
  • Loading branch information
egpbos committed Oct 12, 2017
1 parent 66af823 commit c3bcd90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/xtensor-fftw/basic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ namespace xt {
////

template<typename input_t, typename output_t, typename...>
xt::xarray<output_t> _fft_ (const xt::xarray<input_t> &input) {
inline xt::xarray<output_t> _fft_ (const xt::xarray<input_t> &input) {
static_assert(sizeof(prec_t<input_t>) == 0, "Only specializations of _fft_ can be used");
}

template<typename input_t, typename output_t, typename...>
xt::xarray<output_t> _ifft_ (const xt::xarray<input_t> &input) {
inline xt::xarray<output_t> _ifft_ (const xt::xarray<input_t> &input) {
static_assert(sizeof(prec_t<input_t>) == 0, "Only specializations of _ifft_ can be used");
}

Expand All @@ -92,7 +92,7 @@ namespace xt {
&& std::is_floating_point< prec_t<input_t> >::value
>
>
xt::xarray<output_t> _fft_(const xt::xarray<input_t> &input) {
inline xt::xarray<output_t> _fft_(const xt::xarray<input_t> &input) {
xt::xarray<output_t, layout_type::dynamic> output(input.shape(), input.strides());

using fftw_input_t = fftw_number_t<input_t>;
Expand All @@ -117,7 +117,7 @@ namespace xt {
&& std::is_floating_point< prec_t<input_t> >::value
>
>
xt::xarray<output_t> _ifft_(const xt::xarray<input_t> &input) {
inline xt::xarray<output_t> _ifft_(const xt::xarray<input_t> &input) {
xt::xarray<output_t, layout_type::dynamic> output(input.shape(), input.strides());

using fftw_input_t = fftw_number_t<input_t>;
Expand Down

0 comments on commit c3bcd90

Please sign in to comment.