Skip to content

Commit 809e4f7

Browse files
authored
Add files via upload
1 parent eb5f773 commit 809e4f7

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

FFT.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
#ifndef FFT_H
22
#define FFT_H
3-
#include<iostream>
3+
#include "core.h"
44
#include<vector>
5-
#include<cmath>
65
#include<cstdlib>
76
#include<complex>
87
#include<algorithm>
98
#include<iterator>
109
#include<cstdint>
1110
using std::complex;
1211
using std::string;
13-
using std::vector;
12+
using namespace cor;
1413

1514
namespace fft{
1615

17-
//-----常量部分-----
18-
template<class DC> const DC Pi = 3.1415926535897932;
19-
2016
//-----定义部分-----
2117

2218
//快速傅里叶变换

core.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ namespace cor{
1414

1515
//-----常量部分-----
1616
const double Machine_Epsilon = pow(2, -52);
17+
template<class DC> const DC Pi = 3.1415926535897932;
1718

1819
//-----声明部分-----
1920

0 commit comments

Comments
 (0)