From 168236f7a46c74b289732d9711c14084d9e112a0 Mon Sep 17 00:00:00 2001 From: Drew Hubley Date: Wed, 24 Apr 2024 20:12:31 -0300 Subject: [PATCH] Fixed mismatching types --- include/xtensor/xfft.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/xtensor/xfft.hpp b/include/xtensor/xfft.hpp index 30ef6b01c..b54f09064 100644 --- a/include/xtensor/xfft.hpp +++ b/include/xtensor/xfft.hpp @@ -5,7 +5,6 @@ #include #include - #include #include #include @@ -92,7 +91,7 @@ namespace xt xt::xtensor i = xt::pow(xt::linspace(0, n - 1, n), 2); i %= (n * 2); - auto angles = xt::eval(::xt::numeric_constants::PI * i / n); + auto angles = xt::eval(precision{3.141592653589793238463} * i / n); auto j = std::complex(0, 1); exp_table = xt::exp(-angles * j);