<?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 Simple fft question in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Simple-fft-question/m-p/922335#M13137</link>
    <description>&lt;DIV&gt;&lt;FONT size="2"&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to use the fft routine(for the first time), cfft1dc but it seems not to work the way I thought it should. &lt;/P&gt;
&lt;P&gt;Here is the code:&lt;/P&gt;
&lt;P&gt;void fft_init(INTEGER N) {&lt;/P&gt;
&lt;P&gt;#ifdef WIN32&lt;/P&gt;
&lt;P&gt;wsave = FLOAT_ALLOC(3*N);&lt;/P&gt;
&lt;P&gt;#endif&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;void fft_deinit() {&lt;/P&gt;
&lt;P&gt;#ifdef WIN32&lt;/P&gt;
&lt;P&gt;FLOAT_FREE(wsave);&lt;/P&gt;
&lt;P&gt;#endif&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;void fft(FLOAT* real_input, FLOAT* imag_input, FLOAT* real_output, FLOAT* imag_output, INTEGER N) {&lt;/P&gt;
&lt;P&gt;cblas_scopy(N, real_output, 1, real_input, 1);&lt;/P&gt;
&lt;P&gt;cblas_scopy(N, imag_output, 1, imag_input, 1);&lt;/P&gt;
&lt;P&gt;cfft1dc(real_output, imag_output, N, 0, wsave);&lt;/P&gt;
&lt;P&gt;cfft1dc(real_output, imag_output, N, -1, wsave);&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;As I understood from the doc, wsave is an output parameter if isign=0 and if isign!=0,&lt;/P&gt;
&lt;P&gt;wsave contains the FFT coeff initialized on a prevoius call with isign=0.&lt;/P&gt;
&lt;P&gt;So, where do I miss the thing?&lt;/P&gt;
&lt;P&gt;Regards, Per&lt;/P&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 19 Dec 2004 03:29:00 GMT</pubDate>
    <dc:creator>perco754</dc:creator>
    <dc:date>2004-12-19T03:29:00Z</dc:date>
    <item>
      <title>Simple fft question</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Simple-fft-question/m-p/922335#M13137</link>
      <description>&lt;DIV&gt;&lt;FONT size="2"&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to use the fft routine(for the first time), cfft1dc but it seems not to work the way I thought it should. &lt;/P&gt;
&lt;P&gt;Here is the code:&lt;/P&gt;
&lt;P&gt;void fft_init(INTEGER N) {&lt;/P&gt;
&lt;P&gt;#ifdef WIN32&lt;/P&gt;
&lt;P&gt;wsave = FLOAT_ALLOC(3*N);&lt;/P&gt;
&lt;P&gt;#endif&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;void fft_deinit() {&lt;/P&gt;
&lt;P&gt;#ifdef WIN32&lt;/P&gt;
&lt;P&gt;FLOAT_FREE(wsave);&lt;/P&gt;
&lt;P&gt;#endif&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;void fft(FLOAT* real_input, FLOAT* imag_input, FLOAT* real_output, FLOAT* imag_output, INTEGER N) {&lt;/P&gt;
&lt;P&gt;cblas_scopy(N, real_output, 1, real_input, 1);&lt;/P&gt;
&lt;P&gt;cblas_scopy(N, imag_output, 1, imag_input, 1);&lt;/P&gt;
&lt;P&gt;cfft1dc(real_output, imag_output, N, 0, wsave);&lt;/P&gt;
&lt;P&gt;cfft1dc(real_output, imag_output, N, -1, wsave);&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;As I understood from the doc, wsave is an output parameter if isign=0 and if isign!=0,&lt;/P&gt;
&lt;P&gt;wsave contains the FFT coeff initialized on a prevoius call with isign=0.&lt;/P&gt;
&lt;P&gt;So, where do I miss the thing?&lt;/P&gt;
&lt;P&gt;Regards, Per&lt;/P&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 19 Dec 2004 03:29:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Simple-fft-question/m-p/922335#M13137</guid>
      <dc:creator>perco754</dc:creator>
      <dc:date>2004-12-19T03:29:00Z</dc:date>
    </item>
  </channel>
</rss>

