正文
增加 4 行删除 4 行
236 行未改动全部展开237238239240241242243244245246247248249250251227 行未改动全部展开236 行未改动全部展开fcomplex(_Tp X=0,_Tp Y=0) : x(X),y(Y) {}inline fcomplex<_Tp> operator+(const fcomplex<_Tp> b) const {return fcomplex(this->x+b.x,this->y+b.y);}inline fcomplex<_Tp> operator-(const fcomplex<_Tp> b) const {return fcomplex(this->x-b.x,this->y-b.y);}inline fcomplex<_Tp> operator*(const fcomplex<_Tp> b) const {return fcomplex(this->x*b.x-this->y*b.y,this->x*b.y+this->y*b.x);}inline fcomplex<_Tp> operator*(const _Tp b) const {return fcomplex(this->x*b,this->y*b);}inline fcomplex<_Tp> operator/(const _Tp b) const {return fcomplex(this->x/b,this->y/b);}inline fcomplex<_Tp>& operator+=(const fcomplex<_Tp> b) {this->x+=b.x;this->y+=b.y;return *this;}inline fcomplex<_Tp>& operator-=(const fcomplex<_Tp> b) {this->x-=b.x;this->y-=b.y;return *this;}inline fcomplex<_Tp>& operator*=(const fcomplex<_Tp> b) {fcomplex<_Tp> tmp=(*this)*b;this->x=tmp.x;this->y=tmp.y;return *this;}inline fcomplex<_Tp>& operator*=(const _Tp b) {this->x*=b;this->y*=b;return *this;}inline fcomplex<_Tp>& operator/=(const _Tp b) {this->x/=b;this->y/=b;return *this;}};template<typename _Tp=double>void FFT(fcomplex<> a[],int rv[],_Tp type,int lim){227 行未改动全部展开236 行未改动全部展开237238239240241242243244245246247248249250251227 行未改动全部展开236 行未改动全部展开fcomplex(_Tp X=0,_Tp Y=0) : x(X),y(Y) {}inline fcomplex<_Tp> operator+(const fcomplex<_Tp> b) const {return fcomplex(this->x+b.x,this->y+b.y);}inline fcomplex<_Tp> operator-(const fcomplex<_Tp> b) const {return fcomplex(this->x-b.x,this->y-b.y);}inline fcomplex<_Tp> operator*(const fcomplex<_Tp> b) const {return fcomplex(this->x*b.x-this->y*b.y,this->x*b.y+this->y*b.x);}inline fcomplex<_Tp> operator*(const _Tp b) const {return fcomplex(this->x*b,this->y*b);}inline fcomplex<_Tp> operator/(const _Tp b) const {return fcomplex(this->x/b,this->y/b);}inline fcomplex<_Tp>& operator+=(const fcomplex<_Tp> b) {this->x+=b.x;this->y+=b.y;return *this;}inline fcomplex<_Tp>& operator-=(const fcomplex<_Tp> b) {this->x-=b.x;this->y-=b.y;return *this;}inline fcomplex<_Tp>& operator*=(const fcomplex<_Tp> b) {fcomplex<_Tp> tmp=(*this)*b;this->x=tmp.x;this->y=tmp.y;return *this;}inline fcomplex<_Tp>& operator*=(const _Tp b) {this->x*=b;this->y*=b;return *this;}inline fcomplex<_Tp>& operator/=(const _Tp b) {this->x/=b;this->y/=b;return *this;}};template<typename _Tp=double>void FFT(fcomplex<> a[],int rv[],_Tp type,int lim){227 行未改动全部展开