1
0

fix: fix gcc compile issue

This commit is contained in:
2025-12-16 22:04:01 +08:00
parent e864b0115e
commit fece224ec5
4 changed files with 23 additions and 20 deletions

View File

@@ -10,7 +10,7 @@ namespace yycctest::carton::fft {
using TIndex = size_t;
using TFloat = float;
using TComplex = std::complex<TFloat>;
template<size_t N>
template<TIndex N>
using TFft = FFT::Fft<TIndex, TFloat, N>;
// YYC MARK:
@@ -18,7 +18,7 @@ namespace yycctest::carton::fft {
constexpr TFloat TOLERANCE = static_cast<TFloat>(0.0003);
//constexpr TFloat tolerance = std::numeric_limits<TFloat>::epsilon();
template<size_t N>
template<TIndex N>
static void test_fft(const std::vector<TFloat>& real_src, const std::vector<TComplex>& dst) {
// check given data size
ASSERT_EQ(real_src.size(), N);