mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-12 14:54:10 +00:00
fix fft implementation
This commit is contained in:
parent
07b5f69ebb
commit
d1fc657c1f
5 changed files with 72 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue