Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 7 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20190919 (experimental)

Options
Optimization
Boost 1.71.0
C++2a(GNU)
no pedantic

Author

anonymous

almost 7 years ago

$ g++ prog.cc -O2 -march=native -I/opt/wandbox/boost-1.71.0/gcc-head/include -std=gnu++2a
prog.cc: In instantiation of 'auto fft(Series) [with int INVERSE = 1; Series = std::vector<std::complex<long double> >]':
prog.cc:85:74:   required from here
prog.cc:78:54: warning: narrowing conversion of 'a.std::vector<std::complex<long double> >::size()' from 'std::vector<std::complex<long double> >::size_type' {aka 'long unsigned int'} to 'long double' [-Wnarrowing]
   78 |     cif(INVERSE) for(auto& i: a) i /= Complex{ a.size(), 0 };
      |                                                ~~~~~~^~
[[10 -20] [-30 40] [50 60] [-70 -80] ]
[[-40 0] [80 -120] [160 80] [-160 -40] ]
[[10 -20] [-30 40] [50 60] [-70 -80] ]

[[10 -20] [-30 40] [50 60] [-70 -80] ]
[[-10 0] [-40 -10] [40 20] [20 -30] ]
[[10 -20] [-30 40] [50 60] [-70 -80] ]

Exit Code:
0