コンパイル時離散フーリエ変換(DFT) Sprout.Numeric.DFT は、constexpr DFT アルゴリズムを提供します。 https://github.com/bolero-MURAKAMI/Sprout/tree/master/sprout/numeric/dft DFT は周波数解析などに用いられますが、ここでは詳しくは述べません。 とりあえずサンプルコードを見てください。 単純な正弦波の DFT #include <iostream> #include <fstream> #include <sprout/array.hpp> #include <sprout/pit.hpp> #include <sprout/complex.hpp> #include <sprout/numeric/dft.hpp> #include <sprout/range/adaptor.h
![コンパイル時離散フーリエ変換(DFT) - ボレロ村上 - ENiyGmaA Code](https://cdn-ak-scissors.b.st-hatena.com/image/square/42681bd7b0f4c3c0d328be7914cf5b1c88300c78/height=288;version=1;width=512/http%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fb%2Fboleros%2F20120430%2F20120430230605.png)