diff options
author | Chris Robinson <[email protected]> | 2022-01-27 01:38:39 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-01-27 01:38:39 -0800 |
commit | 1bbea9cd3060ef65a2623f156b4f12ebf62c52fe (patch) | |
tree | 005d29f38edcd1b985e52fc49b4e58fb0ba1721e /common/alcomplex.cpp | |
parent | 423888b8162f9d78ec4f1b00b8368f3ba22eedd6 (diff) |
Start and use a standard-like numbers header
Diffstat (limited to 'common/alcomplex.cpp')
-rw-r--r-- | common/alcomplex.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/alcomplex.cpp b/common/alcomplex.cpp index 5cb35f38..6d2b18c1 100644 --- a/common/alcomplex.cpp +++ b/common/alcomplex.cpp @@ -10,8 +10,8 @@ #include <utility> #include "albit.h" +#include "alnumbers.h" #include "alnumeric.h" -#include "math_defs.h" #include "opthelpers.h" @@ -123,7 +123,7 @@ void complex_fft(const al::span<std::complex<double>> buffer, const double sign) size_t step2{1u}; for(size_t i{0};i < log2_size;++i) { - const double arg{al::MathDefs<double>::Pi() / static_cast<double>(step2)}; + const double arg{al::numbers::pi / static_cast<double>(step2)}; const std::complex<double> w{std::cos(arg), std::sin(arg)*sign}; std::complex<double> u{1.0, 0.0}; |