fft and isPowerOf2?

Andre Pany andre at s-e-a-p.de
Fri May 18 03:12:49 UTC 2018


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é


More information about the Digitalmars-d-learn mailing list