You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While implementing fast_fourier_transform_parfor I have noticed that when I remove the variable w calculated inside the loop completely, my tests still pass. I have tried this also in the basic sequential implementation (see diff below) and found that the test still pass even without the w. I suspect there is a problem somewhere, presumably the tests being insufficient to determine actual correctness of the results.
Yes, that's true: because the same implementation (recurse) is being used for both forward and backward transforms, the incorrectness of the forward transform is being cancelled out by the (mirroring) incorrectness of the backward one. Good spot.
The testing only checks for correct DC behaviour and reversability. It should probably be using a reference implementation to compare outputs against, but alas that was not done. I'm not tempted to change the tests now that the coursework has been released, but try to ensure that your implementations are correct; don't just remove w = w*wn because it makes things faster!
While implementing
fast_fourier_transform_parfor
I have noticed that when I remove the variablew
calculated inside the loop completely, my tests still pass. I have tried this also in the basic sequential implementation (see diff below) and found that the test still pass even without thew
. I suspect there is a problem somewhere, presumably the tests being insufficient to determine actual correctness of the results.Example running the test on modified
fast_fourier_tranform.cpp
:The text was updated successfully, but these errors were encountered: