Re: fft and isPowerOf2?

2018-05-17 Thread Andre Pany via Digitalmars-d-learn
On Thursday, 17 May 2018 at 13:36:39 UTC, kdevel wrote: On Thursday, 17 May 2018 at 12:34:25 UTC, Andre Pany wrote: this applications throws an error in std.numeric (Line 2826). => assert(isPowerOf2(range.length)); Isn't it possible to give an arbitrary length of data to fft like in numpy?

Re: fft and isPowerOf2?

2018-05-17 Thread kdevel via Digitalmars-d-learn
On Thursday, 17 May 2018 at 12:34:25 UTC, Andre Pany wrote: this applications throws an error in std.numeric (Line 2826). => assert(isPowerOf2(range.length)); Isn't it possible to give an arbitrary length of data to fft like in numpy? There is a mathematical background which is well explaine

fft and isPowerOf2?

2018-05-17 Thread Andre Pany via Digitalmars-d-learn
Hi, this applications throws an error in std.numeric (Line 2826). => assert(isPowerOf2(range.length)); --- module std.numeric void fftImplPureReal(Ret, R)(R range, Ret buf) const in { assert(range.length >= 4); assert(isPowerOf2(range.length)); } ---