From eaa7f327b27dd172d8da7ad3e000107b3b8b5ff1 Mon Sep 17 00:00:00 2001 From: Ameya Chawla <88154798+ameyachawlaggsipu@users.noreply.github.com> Date: Fri, 22 Oct 2021 12:12:59 +0530 Subject: [PATCH] Update fast_fourier_transform.cpp --- numerical_methods/fast_fourier_transform.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/numerical_methods/fast_fourier_transform.cpp b/numerical_methods/fast_fourier_transform.cpp index 952c553b8..b60f96266 100644 --- a/numerical_methods/fast_fourier_transform.cpp +++ b/numerical_methods/fast_fourier_transform.cpp @@ -38,7 +38,7 @@ namespace numerical_methods { * @returns y if n!=1 */ -std::complex* FastFourierTransform(std::complex*p,double n) +std::complex* FastFourierTransform(std::complex*p,uint64_t n) { if(n==1){ @@ -86,12 +86,12 @@ std::complex* FastFourierTransform(std::complex*p,double n) } delete[] ye; /// Deleting dynamic array ye - delete[] yo; /// Deleting dynamic array yo + delete[] yo; /// Deleting dynamic array yo return y; } -}/// namespace numerical_methods +}// namespace numerical_methods /** * @brief Self-test implementations @@ -113,8 +113,8 @@ std::complex* FastFourierTransform(std::complex*p,double n) t2[2]={3,0}; t2[3]={4,0}; - double n1 = 2; - double n2 = 4; + uint64_t n1 = 2; + uint64_t n2 = 4; std::vector> r1 = { {3, 0}, {-1, 0}}; /// True Answer for test case 1