diff options
author | Chris Robinson <[email protected]> | 2023-05-05 06:46:00 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-05-05 06:46:00 -0700 |
commit | 3ec03cadd2b5059e54e5e9b8f4d506b4c6ce727d (patch) | |
tree | 623b8e96f8acca9d55fb96b74e8d832877b27451 /utils/makemhr/makemhr.h | |
parent | c14ca5f3aa6da354440a60656062f6bc68d6fca6 (diff) |
Use deduction guides instead of helper functions for spans
Diffstat (limited to 'utils/makemhr/makemhr.h')
-rw-r--r-- | utils/makemhr/makemhr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/makemhr/makemhr.h b/utils/makemhr/makemhr.h index 13b5b2d1..aa18134d 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(al::as_span(inout, n)); } +{ forward_fft(al::span{inout, n}); } // Performs an inverse FFT. inline void FftInverse(const uint n, complex_d *inout) { - inverse_fft(al::as_span(inout, n)); + inverse_fft(al::span{inout, n}); double f{1.0 / n}; for(uint i{0};i < n;i++) inout[i] *= f; |