Commit 0ee8634b authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed random failures in Core_DFT.complex_output2 test (the case of input_mat.cols == 1)

parent 73f760fd
...@@ -1089,10 +1089,11 @@ RealDFT( const T* src, T* dst, int n, int nf, int* factors, const int* itab, ...@@ -1089,10 +1089,11 @@ RealDFT( const T* src, T* dst, int n, int nf, int* factors, const int* itab,
} }
} }
if( complex_output && (n & 1) == 0 ) if( complex_output && ((n & 1) == 0 || n == 1))
{ {
dst[-1] = dst[0]; dst[-1] = dst[0];
dst[0] = 0; dst[0] = 0;
if( n > 1 )
dst[n] = 0; dst[n] = 0;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment