commit 663e313f7a3526e8972eb178b5c062cf4cef18a0
parent 397e03bce02d04516e49d4618cf4d49528237a9b
Author: d.levin256@gmail.com <d.levin256@gmail.com>
Date: Tue, 6 Jun 2017 21:44:31 +0300
irealdft: fix incorrect size detection in wrapper
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/kfr/dft/cache.hpp b/include/kfr/dft/cache.hpp
@@ -156,7 +156,7 @@ univector<complex<T>> realdft(const univector<T, Tag>& input)
template <typename T, size_t Tag>
univector<T> irealdft(const univector<complex<T>, Tag>& input)
{
- dft_plan_real_ptr<T> dft = dft_cache::instance().getreal(ctype_t<T>(), input.size());
+ dft_plan_real_ptr<T> dft = dft_cache::instance().getreal(ctype_t<T>(), (input.size() - 1) * 2);
univector<T> output((input.size() - 1) * 2);
univector<u8> temp(dft->temp_size);
dft->execute(output, input, temp);