fft and isPowerOf2?

kdevel kdevel at vogtner.de
Thu May 17 13:36:39 UTC 2018


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



More information about the Digitalmars-d-learn mailing list