sprout/functional/dft.hpp 追加

sprout/complex.hpp 修正
This commit is contained in:
bolero-MURAKAMI 2012-02-25 23:59:46 +09:00
parent aa96f9ce73
commit 10c73ea3e3
17 changed files with 453 additions and 24 deletions

25
sprout/math/constants.hpp Normal file
View file

@ -0,0 +1,25 @@
#ifndef SPROUT_MATH_CONSTANTS_HPP
#define SPROUT_MATH_CONSTANTS_HPP
#include <sprout/config.hpp>
namespace sprout {
namespace math {
//
// pi
//
template<typename T>
SPROUT_CONSTEXPR inline T pi() {
return 3.141592653589793238462643383279502884197169399375105820974944L;
}
//
// pi_div_two
//
template<typename T>
SPROUT_CONSTEXPR inline T pi_div_two() {
return 1.570796326794896619231321691639751442098584699687552910487472L;
}
} // namespace math
} // namespace sprout
#endif // #ifndef SPROUT_MATH_CONSTANTS_HPP