diff --git a/numerical_methods/fast_fourier_transform.cpp b/numerical_methods/fast_fourier_transform.cpp index ef3d0705e..03b98ee0c 100644 --- a/numerical_methods/fast_fourier_transform.cpp +++ b/numerical_methods/fast_fourier_transform.cpp @@ -51,9 +51,9 @@ std::complex* FastFourierTransform(std::complex*p,uint8_t n) std::complex om=std::complex(cos(2*pi/n),sin(2*pi/n)); ///Calculating value of omega - std::complex *pe= new std::complex[n/2]; /// Coefficients of even power + auto *pe= new std::complex[n/2]; /// Coefficients of even power - std::complex *po= new std::complex[n/2]; ///Coefficients of odd power + auto *po= new std::complex[n/2]; ///Coefficients of odd power int k1=0,k2=0; for(int j=0;j* FastFourierTransform(std::complex*p,uint8_t n) std::complex *yo=FastFourierTransform(po,n/2); ///Recursive Call - std::complex *y=new std::complex[n]; /// Final value representation list + auto *y=new std::complex[n]; /// Final value representation list k1=0,k2=0;