Matlab to CUDA conversion
2024-03-07 Discrete Fourier Transform Upsamplings: I am currently working on a Matlab code from my research listed below: % Compute kernels and obtain DFT by matrix products kernc=exp((-i*2*pi/(nc*usfac))*( ifftshift([0:nc-1]).' - floor(nc/2) )*( [0:noc-1] - coff )); kernr=exp((-i*2*pi/(nr*usfac))*( [0:nor-1].' - roff )*( ifftshift([0:nr-1]) - floor(nr/2) )); out=kernr*in*kernc; What this code does is creating two kernels for the column and row transformations in Discrete Fourier Transform upsampling process on an image. But man, the conversion from Matlab to CUDA is hard....