title: scaling factor for CUFFT
body: <p>I wrote a simple test program, where I was doing Complex to Complex FT's and I just generated some data 1..50 and stuck it in for the real and imaginary part for each index of the array.</p>
  
  <p>When I do an operation like this IFFT(FFT(A)) = A</p>
  
  <p>to test them out, I am getting different results for each library.</p>
  
  <p>FFTW, I have to divide the output by len(A) to get back the original A</p>
  
  <p>However, doing this forward then reverse FFT with CUFFT, it looks like I have to divide by (sqrt(2)*50) to get back to the original data.</p>
  
  <p>Where is this extra square root factor coming from?</p>
  
  <p>according to the CUFFT documentation:
  CUFFT performs un normalized FFTs; that is, performing a forward
  FFT on an input data set followed by an inverse FFT on the resulting
  set yields data that is equal to the input scaled by the number of
  elements. Scaling either transform by the reciprocal of the size of the
  data set is left for the user to perform as seen fit.</p>
  
  <p>Thanks in Advance</p>