Skip to content

Commit

Permalink
Fixed mismatching types
Browse files Browse the repository at this point in the history
  • Loading branch information
spectre-ns committed Apr 24, 2024
1 parent 8b79b82 commit 168236f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/xtensor/xfft.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <stdexcept>

#include <xtl/xcomplex.hpp>

#include <xtensor/xarray.hpp>
#include <xtensor/xaxis_slice_iterator.hpp>
#include <xtensor/xbuilder.hpp>
Expand Down Expand Up @@ -92,7 +91,7 @@ namespace xt
xt::xtensor<std::size_t, 1> i = xt::pow(xt::linspace<std::size_t>(0, n - 1, n), 2);
i %= (n * 2);

auto angles = xt::eval(::xt::numeric_constants<precision>::PI * i / n);
auto angles = xt::eval(precision{3.141592653589793238463} * i / n);
auto j = std::complex<precision>(0, 1);
exp_table = xt::exp(-angles * j);

Expand Down

0 comments on commit 168236f

Please sign in to comment.