Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace _tables {
- template <uint64_t H>
- class sines {
- public:
- constexpr static std::array<float, H> values{ 0.0 };
- constexpr sines() {
- std::array<float, H> i;
- std::iota(i.begin(), i.end(), 0.0);
- std::transform(i.begin(), i.end(), values.begin(),
- [](const float& a){
- return a / M_PI_2 / static_cast<float>(H);
- });
- }
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment