版本比较
快速傅里叶变换(FFT)
正文
增加 1 行删除 1 行
339 行未改动全部展开340341342343344345346347348136 行未改动全部展开339 行未改动全部展开const double PI = acos(-1);complex<double> tmp[N];// n 表示多项式项数,即次数 +1void FFT(complex<double> *f, int n, int dir){if (!n) return;complex<double> *g = f;complex<double> *h = f + n / 2;memcpy(tmp, f, sizeof (complex<double>) * n);136 行未改动全部展开339 行未改动全部展开340341342343344345346347348136 行未改动全部展开339 行未改动全部展开const double PI = acos(-1);complex<double> tmp[N];// n 表示多项式项数,即次数 +1void FFT(complex<double> *f, int n, int dir){if (!n) return;complex<double> *g = f;complex<double> *h = f + n / 2;memcpy(tmp, f, sizeof (complex<double>) * n);136 行未改动全部展开