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?


There is a mathematical background which is well explained here:

https://math.stackexchange.com/questions/77118/non-power-of-2-ffts#77152


Thanks a lot for the details link.

Kind regards
André


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 explained here:

https://math.stackexchange.com/questions/77118/non-power-of-2-ffts#77152