<?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 Problem with DftiComputeForward call in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-DftiComputeForward-call/m-p/1561222#M35707</link>
    <description>&lt;P&gt;Using an input data set of&amp;nbsp;std::complex&amp;lt;double&amp;gt; sig2[3]={{0.6,0.5},{0.4,0.3},{0, 0.1}};&lt;/P&gt;&lt;P&gt;The call to status = DftiComputeForward(my_desc1_handle, sig2)&amp;nbsp;results in&lt;/P&gt;&lt;P&gt;sig2 = {{2969.6, 2.046384154832482e-13i}, {2.0463846969335625e-13 , 0.3}, {0, 0.1}}.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A call to Matlab fft(sig2) results in sig2 = {{1.2, 0.9},{0.4732,&amp;nbsp; 0.1268}, { 0.1268,&amp;nbsp; 0.4732}}&lt;/P&gt;&lt;P&gt;The two don't agree and I place more confidence in the Matlab result at this point.&amp;nbsp; The code I am using is copied from the example provided by the library documentation.&amp;nbsp; Below is that code.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;DFTI_DESCRIPTOR_HANDLE my_desc1_handle = nullptr;&lt;BR /&gt;MKL_LONG status;&lt;BR /&gt;std::complex&amp;lt;double&amp;gt; sig2[3]={{0.6,0.5},{0.4,0.3},{0, 0.1}};&lt;BR /&gt;status = DftiCreateDescriptor(&amp;amp;my_desc1_handle, DFTI_SINGLE, DFTI_COMPLEX, 1, 3);&lt;/P&gt;&lt;P&gt;status = DftiCommitDescriptor(my_desc1_handle);&lt;BR /&gt;status = DftiComputeForward(my_desc1_handle, sig2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note all status result l have been check for each step, I ahve not included them.&amp;nbsp; Using debug stepping I have verified that status has been 0 for each call.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;device info:&amp;nbsp;&lt;EM&gt;[Intel(R) Corporation Intel(R) Xeon(R) Gold 5218R CPU @ 2.10GHz Version: 3.0]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Running on Linux5.4.17 x86_64&lt;/P&gt;&lt;P&gt;Mkl installed version is 2023.0.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jan 2024 16:58:26 GMT</pubDate>
    <dc:creator>tdot</dc:creator>
    <dc:date>2024-01-09T16:58:26Z</dc:date>
    <item>
      <title>Problem with DftiComputeForward call</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-DftiComputeForward-call/m-p/1561222#M35707</link>
      <description>&lt;P&gt;Using an input data set of&amp;nbsp;std::complex&amp;lt;double&amp;gt; sig2[3]={{0.6,0.5},{0.4,0.3},{0, 0.1}};&lt;/P&gt;&lt;P&gt;The call to status = DftiComputeForward(my_desc1_handle, sig2)&amp;nbsp;results in&lt;/P&gt;&lt;P&gt;sig2 = {{2969.6, 2.046384154832482e-13i}, {2.0463846969335625e-13 , 0.3}, {0, 0.1}}.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A call to Matlab fft(sig2) results in sig2 = {{1.2, 0.9},{0.4732,&amp;nbsp; 0.1268}, { 0.1268,&amp;nbsp; 0.4732}}&lt;/P&gt;&lt;P&gt;The two don't agree and I place more confidence in the Matlab result at this point.&amp;nbsp; The code I am using is copied from the example provided by the library documentation.&amp;nbsp; Below is that code.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;DFTI_DESCRIPTOR_HANDLE my_desc1_handle = nullptr;&lt;BR /&gt;MKL_LONG status;&lt;BR /&gt;std::complex&amp;lt;double&amp;gt; sig2[3]={{0.6,0.5},{0.4,0.3},{0, 0.1}};&lt;BR /&gt;status = DftiCreateDescriptor(&amp;amp;my_desc1_handle, DFTI_SINGLE, DFTI_COMPLEX, 1, 3);&lt;/P&gt;&lt;P&gt;status = DftiCommitDescriptor(my_desc1_handle);&lt;BR /&gt;status = DftiComputeForward(my_desc1_handle, sig2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note all status result l have been check for each step, I ahve not included them.&amp;nbsp; Using debug stepping I have verified that status has been 0 for each call.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;device info:&amp;nbsp;&lt;EM&gt;[Intel(R) Corporation Intel(R) Xeon(R) Gold 5218R CPU @ 2.10GHz Version: 3.0]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Running on Linux5.4.17 x86_64&lt;/P&gt;&lt;P&gt;Mkl installed version is 2023.0.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 16:58:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-DftiComputeForward-call/m-p/1561222#M35707</guid>
      <dc:creator>tdot</dc:creator>
      <dc:date>2024-01-09T16:58:26Z</dc:date>
    </item>
  </channel>
</rss>

