From 41eaa0fb498d940406afdda57c9f10d7eb3747da Mon Sep 17 00:00:00 2001 From: Ameya Chawla <88154798+ameyachawlaggsipu@users.noreply.github.com> Date: Thu, 21 Oct 2021 23:22:29 +0530 Subject: [PATCH] fix : updated documentation --- numerical_methods/fast_fourier_transform.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/numerical_methods/fast_fourier_transform.cpp b/numerical_methods/fast_fourier_transform.cpp index 45014ccfa..612699525 100644 --- a/numerical_methods/fast_fourier_transform.cpp +++ b/numerical_methods/fast_fourier_transform.cpp @@ -47,7 +47,8 @@ std::complex *FastFourierTransform(std::complex *p, auto om = std::complex( cos(2 * pi / n), sin(2 * pi / n)); /// Calculating value of omega - + + /// auto is used inplace of std::complex to reduce complexity auto *pe = new std::complex[n / 2]; /// Coefficents of even power auto *po = new std::complex[n / 2]; /// Coefficents of odd power @@ -92,7 +93,7 @@ static void test() { auto *t1 = new std::complex[2]; /// Test case 1 t1[0] = {1, 0}; t1[1] = {2, 0}; - + /// auto is used inplace of std::complex to reduce complexity auto *t2 = new std::complex[4]; /// Test case 2 t2[0] = {1, 0}; t2[1] = {2, 0};