aboutsummaryrefslogtreecommitdiffstats
path: root/utils/makemhr
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-12-14 16:23:10 -0800
committerChris Robinson <[email protected]>2022-12-14 16:23:10 -0800
commit42090e93719748675384cc6ec9106fb39f869920 (patch)
tree70715c1514d2db153ca66fbc26ed30302eb54fd6 /utils/makemhr
parent7c3f201f2625e37807c608e718b190cc48107b9c (diff)
Avoid manually specifying FFT template parameters
Diffstat (limited to 'utils/makemhr')
-rw-r--r--utils/makemhr/makemhr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/makemhr/makemhr.h b/utils/makemhr/makemhr.h
index 82604528..ce21af1d 100644
--- a/utils/makemhr/makemhr.h
+++ b/utils/makemhr/makemhr.h
@@ -113,12 +113,12 @@ void MagnitudeResponse(const uint n, const complex_d *in, double *out);
// Performs a forward FFT.
inline void FftForward(const uint n, complex_d *inout)
-{ forward_fft<double>({inout, n}); }
+{ forward_fft(al::as_span(inout, n)); }
// Performs an inverse FFT.
inline void FftInverse(const uint n, complex_d *inout)
{
- inverse_fft<double>({inout, n});
+ inverse_fft(al::as_span(inout, n));
double f{1.0 / n};
for(uint i{0};i < n;i++)
inout[i] *= f;