fix fft implementation

This commit is contained in:
bolero-MURAKAMI 2014-04-18 19:33:48 +09:00
parent 07b5f69ebb
commit d1fc657c1f
5 changed files with 72 additions and 17 deletions

View file

@ -15,9 +15,9 @@ namespace sprout {
class complex;
namespace detail {
template<typename T>
inline SPROUT_CONSTEXPR T
complex_norm(sprout::complex<T> const& x) {
template<typename Complex>
inline SPROUT_CONSTEXPR typename Complex::value_type
complex_norm(Complex const& x) {
return x.real() * x.real() + x.imag() * x.imag();
}
} // namespace detail