<?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 Problems with multi-dimensional Dfti in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-with-multi-dimensional-Dfti/m-p/877456#M9115</link>
    <description>&lt;P&gt;I am new to the MKL, and hope that this will be a simple solution. I am using version 8.0&lt;/P&gt;
&lt;P&gt;I am trying to run a 2D dfti.For testing, I set up a small 3x2 array in MatLab, and ran an fft( ) on it. I then pumped the same array into the MKL, and hoped to get the same results, but I cannot get the results I am looking for.&lt;/P&gt;
&lt;P&gt;Here is the code I am trying to run:&lt;/P&gt;
&lt;P&gt;double q[5][4];&lt;/P&gt;
&lt;P&gt;for (a = 0; a &amp;lt; 5; a++)&lt;BR /&gt; for (b = 0; b &amp;lt; 4; b++)&lt;BR /&gt; q&lt;A&gt;&lt;B&gt; = 0.0;&lt;/B&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;q[0][0] = 1.2;&lt;BR /&gt;q[0][1] = -.5;&lt;BR /&gt;q[1][0] = .3;&lt;BR /&gt;q[1][1] = 1.8;&lt;BR /&gt;q[2][0] = -1.1;&lt;BR /&gt;q[2][1] = .7;&lt;/P&gt;
&lt;P&gt;DFTI_DESCRIPTOR_HANDLE myDescHandle;&lt;BR /&gt;long status;&lt;BR /&gt;long l[2];&lt;BR /&gt;l[0] = 3;&lt;BR /&gt;l[1] = 2;&lt;/P&gt;
&lt;P&gt;status = DftiCreateDescriptor(&amp;amp;myDescHandle, DFTI_DOUBLE, DFTI_REAL, 2, l);&lt;BR /&gt;status = DftiCommitDescriptor(myDescHandle);&lt;BR /&gt;status = DftiComputeForward(myDescHandle, q);&lt;BR /&gt;status = DftiFreeDescriptor(&amp;amp;myDescHandle);&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;When I print out q, I get some very strange results.&lt;/P&gt;
&lt;P&gt;I have tried switching out so that I pipe in a complex, and it seems to make little difference. I have done both INPLACE and NOT_INPLACE. I have tried different data storage formats (PACK vs CCS). I have tried pumping in single precision, rather than double precision. I am assuming/hoping that it is a silly configuration item. Either that, or MatLab's fft works differently and I cannot get the results I want.&lt;/P&gt;
&lt;P&gt;By the way, I ran a single dimension fft vs Dfti, and the results from MatLab and MKL were identical.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I would appreciate any help you can offer.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;- Martin&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Mar 2007 22:31:47 GMT</pubDate>
    <dc:creator>martincco</dc:creator>
    <dc:date>2007-03-13T22:31:47Z</dc:date>
    <item>
      <title>Problems with multi-dimensional Dfti</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-with-multi-dimensional-Dfti/m-p/877456#M9115</link>
      <description>&lt;P&gt;I am new to the MKL, and hope that this will be a simple solution. I am using version 8.0&lt;/P&gt;
&lt;P&gt;I am trying to run a 2D dfti.For testing, I set up a small 3x2 array in MatLab, and ran an fft( ) on it. I then pumped the same array into the MKL, and hoped to get the same results, but I cannot get the results I am looking for.&lt;/P&gt;
&lt;P&gt;Here is the code I am trying to run:&lt;/P&gt;
&lt;P&gt;double q[5][4];&lt;/P&gt;
&lt;P&gt;for (a = 0; a &amp;lt; 5; a++)&lt;BR /&gt; for (b = 0; b &amp;lt; 4; b++)&lt;BR /&gt; q&lt;A&gt;&lt;B&gt; = 0.0;&lt;/B&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;q[0][0] = 1.2;&lt;BR /&gt;q[0][1] = -.5;&lt;BR /&gt;q[1][0] = .3;&lt;BR /&gt;q[1][1] = 1.8;&lt;BR /&gt;q[2][0] = -1.1;&lt;BR /&gt;q[2][1] = .7;&lt;/P&gt;
&lt;P&gt;DFTI_DESCRIPTOR_HANDLE myDescHandle;&lt;BR /&gt;long status;&lt;BR /&gt;long l[2];&lt;BR /&gt;l[0] = 3;&lt;BR /&gt;l[1] = 2;&lt;/P&gt;
&lt;P&gt;status = DftiCreateDescriptor(&amp;amp;myDescHandle, DFTI_DOUBLE, DFTI_REAL, 2, l);&lt;BR /&gt;status = DftiCommitDescriptor(myDescHandle);&lt;BR /&gt;status = DftiComputeForward(myDescHandle, q);&lt;BR /&gt;status = DftiFreeDescriptor(&amp;amp;myDescHandle);&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;When I print out q, I get some very strange results.&lt;/P&gt;
&lt;P&gt;I have tried switching out so that I pipe in a complex, and it seems to make little difference. I have done both INPLACE and NOT_INPLACE. I have tried different data storage formats (PACK vs CCS). I have tried pumping in single precision, rather than double precision. I am assuming/hoping that it is a silly configuration item. Either that, or MatLab's fft works differently and I cannot get the results I want.&lt;/P&gt;
&lt;P&gt;By the way, I ran a single dimension fft vs Dfti, and the results from MatLab and MKL were identical.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I would appreciate any help you can offer.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;- Martin&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2007 22:31:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-with-multi-dimensional-Dfti/m-p/877456#M9115</guid>
      <dc:creator>martincco</dc:creator>
      <dc:date>2007-03-13T22:31:47Z</dc:date>
    </item>
    <item>
      <title>Re:Updated info</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-with-multi-dimensional-Dfti/m-p/877457#M9116</link>
      <description>&lt;P&gt;Spoke (again) with our MatLab guy, and he realized that in MatLab, fft( ) is not a true 2D fft. Rather, it performs an fft on each column individuallly, then combines the results.&lt;/P&gt;
&lt;P&gt;Is therea way to do similar action in the MKL? Is using Strides the right way? I am unfamiliar with them. Thanks.&lt;/P&gt;
&lt;P&gt;- Martin&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2007 22:45:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-with-multi-dimensional-Dfti/m-p/877457#M9116</guid>
      <dc:creator>martincco</dc:creator>
      <dc:date>2007-03-13T22:45:30Z</dc:date>
    </item>
  </channel>
</rss>

