<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hi vahid, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Incorrect-result-with-both-FFTW-and-MKL-FFT/m-p/1131414#M25617</link>
    <description>&lt;P&gt;Hi vahid,&lt;/P&gt;

&lt;P&gt;If you would like get inverse of forward, you have to set backward scale factor. For you case, please set bscale to 1.0 / real(L(1)*L(2)), the result would be correct. For 1D, make sure fscale*bscale=1/len. For 2D, make sure fscale*bscale=1/ (col*row). If you would like to get similar matlab result for forward &amp;amp; backward, please set fscale=1/col, and bscale=1/row.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2017 04:15:29 GMT</pubDate>
    <dc:creator>Zhen_Z_Intel</dc:creator>
    <dc:date>2017-09-27T04:15:29Z</dc:date>
    <item>
      <title>Incorrect result with both FFTW and MKL FFT</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Incorrect-result-with-both-FFTW-and-MKL-FFT/m-p/1131412#M25615</link>
      <description>&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Hello everyone,&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;I've noticed that both MKL FFT and FFTW is giving me a wrong result while calculating 2D complex-to-complex BACKWARD FFT. I am attaching the source codes that I used on this forum to discuss it with the experts.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;While the input array is :&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt; 1.0+0.0i  1.0+0.0i  1.0+0.0i
 1.0+0.0i  1.0+0.0i  1.0+0.0i
 1.0+0.0i  1.0+0.0i  1.0+0.0i&lt;/PRE&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;The forward transform should be:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt; 9.0+0.0i  0.0+0.0i  0.0+0.0i
 0.0+0.0i  0.0+0.0i  0.0+0.0i
 0.0+0.0i  0.0+0.0i  0.0+0.0i&lt;/PRE&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;And the backward transform should be again the initial&amp;nbsp;array. However, it is:&lt;/P&gt;

&lt;PRE class="brush:fortran;" style="font-size: 13.008px;"&gt; 9.0+0.0i  9.0+0.0i  9.0+0.0i
 9.0+0.0i  9.0+0.0i  9.0+0.0i
 9.0+0.0i  9.0+0.0i  9.0+0.0i&lt;/PRE&gt;

&lt;P&gt;I attached my test code here. Could you pls. let me know why&amp;nbsp;this is happening?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 16:28:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Incorrect-result-with-both-FFTW-and-MKL-FFT/m-p/1131412#M25615</guid>
      <dc:creator>vahid_a_</dc:creator>
      <dc:date>2017-09-26T16:28:02Z</dc:date>
    </item>
    <item>
      <title>I have noticed that there is</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Incorrect-result-with-both-FFTW-and-MKL-FFT/m-p/1131413#M25616</link>
      <description>&lt;P&gt;I have noticed that there is a&amp;nbsp;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;STRONG&gt;scale factor (\sigma)&lt;/STRONG&gt;&lt;/EM&gt; in the original formulation of Discrete Fast Fourier (DFT) approach as it is implemented in Intel MKL here:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/mkl-developer-reference-c-fourier-transform-functions" target="_blank"&gt;https://software.intel.com/en-us/mkl-developer-reference-c-fourier-transform-functions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In the above example array, we need to divide the array to some scaling factor to obtain the exact initial array. &lt;STRONG&gt;How should we access to the value of the (\sigma) or the scaling factor?&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Point 1:&lt;/STRONG&gt;&lt;/EM&gt; It seems that the scaling factor is "1" when it is the forward transform. However, it changes during the backward transform.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Point 2: &lt;/STRONG&gt;&lt;/EM&gt;The implemented FFT formulation in MATLAB does not include any scaling factor!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 01:57:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Incorrect-result-with-both-FFTW-and-MKL-FFT/m-p/1131413#M25616</guid>
      <dc:creator>vahid_a_</dc:creator>
      <dc:date>2017-09-27T01:57:00Z</dc:date>
    </item>
    <item>
      <title>Hi vahid,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Incorrect-result-with-both-FFTW-and-MKL-FFT/m-p/1131414#M25617</link>
      <description>&lt;P&gt;Hi vahid,&lt;/P&gt;

&lt;P&gt;If you would like get inverse of forward, you have to set backward scale factor. For you case, please set bscale to 1.0 / real(L(1)*L(2)), the result would be correct. For 1D, make sure fscale*bscale=1/len. For 2D, make sure fscale*bscale=1/ (col*row). If you would like to get similar matlab result for forward &amp;amp; backward, please set fscale=1/col, and bscale=1/row.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 04:15:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Incorrect-result-with-both-FFTW-and-MKL-FFT/m-p/1131414#M25617</guid>
      <dc:creator>Zhen_Z_Intel</dc:creator>
      <dc:date>2017-09-27T04:15:29Z</dc:date>
    </item>
  </channel>
</rss>

