VkFFT icon indicating copy to clipboard operation
VkFFT copied to clipboard

Merge DCT and DST into DTT

Open davebayer opened this issue 1 year ago • 4 comments

Hi,

I was wondering if it would be possible to merge DCT and DST computation into single DTT type where you could select the right DTT type for each axis (same as FFTW). It would help me a lot, because in our project we mix different DCT and DST types.

Thanks a lot!

David

davebayer avatar Jan 18 '24 08:01 davebayer

Hello,

Sure, this is not hard to add. I will keep the legacy functionality and just add another parameter performDTT[fftDim] that will take predefined values VKFFT_REDFTXX/VKFFT_RODFTXX like FFTW_REDFTXX/FFTW_RODFTXX in FFTW.

Best regards, Dmitrii

DTolm avatar Jan 18 '24 13:01 DTolm

That would be awesome! However I would consider naming it performR2R[fftDim] in case any other transforms R2R are added in the future.

Thank you very much.

David

davebayer avatar Jan 18 '24 14:01 davebayer

I have added performR2R option. It passed quick simple tests and should work (as it didn't require any new algorithms).

DTolm avatar Feb 06 '24 20:02 DTolm

Great job! Thanks a lot.

davebayer avatar Feb 07 '24 07:02 davebayer