mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
fix : fixing clang-tidy errors
This commit is contained in:
parent
5c1c4a4a3e
commit
ad7915cdb9
@ -38,7 +38,7 @@ namespace numerical_methods {
|
|||||||
* @returns y if n!=1
|
* @returns y if n!=1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
std::complex<double>* FastFourierTransform(std::complex<double>*p,uint64_t n)
|
std::complex<double>* FastFourierTransform(std::complex<double>*p,double n)
|
||||||
{
|
{
|
||||||
|
|
||||||
if(n==1){
|
if(n==1){
|
||||||
@ -106,8 +106,8 @@ std::complex<double>* FastFourierTransform(std::complex<double>*p,uint64_t n)
|
|||||||
std::complex<double> t1[2]={1,2}; /// Test case 1
|
std::complex<double> t1[2]={1,2}; /// Test case 1
|
||||||
std::complex<double> t2[4]={1,2,3,4}; /// Test case 2
|
std::complex<double> t2[4]={1,2,3,4}; /// Test case 2
|
||||||
|
|
||||||
uint8_t n1 = 2;
|
double n1 = 2;
|
||||||
uint8_t n2 = 4;
|
double n2 = 4;
|
||||||
std::vector<std::complex<double>> r1 = {
|
std::vector<std::complex<double>> r1 = {
|
||||||
{3, 0}, {-1, 0}}; /// True Answer for test case 1
|
{3, 0}, {-1, 0}}; /// True Answer for test case 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user