From c40e1bc1ce4f43fed87508374679f82ed237d79d Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 14 Dec 2022 17:39:47 -0800 Subject: Better handle span sources from iterators --- common/alcomplex.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common/alcomplex.h') diff --git a/common/alcomplex.h b/common/alcomplex.h index a5126f39..794c3526 100644 --- a/common/alcomplex.h +++ b/common/alcomplex.h @@ -13,7 +13,7 @@ */ template std::enable_if_t::value> -complex_fft(const al::span> buffer, const Real sign); +complex_fft(const al::span> buffer, const al::type_identity_t sign); /** * Calculate the frequency-domain response of the time-domain signal in the @@ -22,7 +22,7 @@ complex_fft(const al::span> buffer, const Real sign); template std::enable_if_t::value> forward_fft(const al::span,N> buffer) -{ complex_fft(buffer.subspan(0), Real{-1}); } +{ complex_fft(buffer.subspan(0), -1); } /** * Calculate the time-domain signal of the frequency-domain response in the @@ -31,7 +31,7 @@ forward_fft(const al::span,N> buffer) template std::enable_if_t::value> inverse_fft(const al::span,N> buffer) -{ complex_fft(buffer.subspan(0), Real{1}); } +{ complex_fft(buffer.subspan(0), 1); } /** * Calculate the complex helical sequence (discrete-time analytical signal) of -- cgit v1.2.3