<?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 Sorry, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-MKL-with-C/m-p/1074282#M22438</link>
    <description>&lt;P&gt;Sorry,&lt;/P&gt;

&lt;P&gt;you can remove the package file ("&lt;SPAN style="font-size: 12px;"&gt;packages.config")&lt;/SPAN&gt;, no package is used in the project.&lt;/P&gt;

&lt;P&gt;BR&lt;/P&gt;

&lt;P&gt;Gianluca&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2016 08:57:55 GMT</pubDate>
    <dc:creator>Gianluca_G_1</dc:creator>
    <dc:date>2016-09-13T08:57:55Z</dc:date>
    <item>
      <title>FFT MKL with C#</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-MKL-with-C/m-p/1074280#M22436</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
	I'm trying to use the FFT MKL (ver. 11.3.3.1) functionality in C# (VS2015), but I'm facing problems that I can &amp;nbsp;not solve after hours of research and tests.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;In particular the DftiSetValue() continues to return different error messages:&lt;BR /&gt;
	"Inconsistent configuration parameter" or if I change the declaration parameters ...&lt;BR /&gt;
	"Functionality is not implemented".&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	I attach the program MKLTest that I use to learn and test the MKL functions.&lt;BR /&gt;
	See the button "FFT" &amp;nbsp;in MainForm (I'm tryng the FFT functionality).&lt;BR /&gt;
	In file files_fft.zip I have some file used to try DftiComputeBackward().&lt;/P&gt;

&lt;P&gt;Thank you very much&lt;/P&gt;

&lt;P&gt;Gianluca&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 15:51:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-MKL-with-C/m-p/1074280#M22436</guid>
      <dc:creator>Gianluca_G_1</dc:creator>
      <dc:date>2016-09-12T15:51:12Z</dc:date>
    </item>
    <item>
      <title>Hi Gianluca,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-MKL-with-C/m-p/1074281#M22437</link>
      <description>&lt;P&gt;Hi Gianluca,&lt;/P&gt;

&lt;P&gt;It seems the Nuget package has been used for System.Numerics. I check with packages.config, it is empty. Could you please provide packages.config with content so that I could reproduce your problem. Thanks.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 08:11:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-MKL-with-C/m-p/1074281#M22437</guid>
      <dc:creator>Zhen_Z_Intel</dc:creator>
      <dc:date>2016-09-13T08:11:29Z</dc:date>
    </item>
    <item>
      <title>Sorry,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-MKL-with-C/m-p/1074282#M22438</link>
      <description>&lt;P&gt;Sorry,&lt;/P&gt;

&lt;P&gt;you can remove the package file ("&lt;SPAN style="font-size: 12px;"&gt;packages.config")&lt;/SPAN&gt;, no package is used in the project.&lt;/P&gt;

&lt;P&gt;BR&lt;/P&gt;

&lt;P&gt;Gianluca&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 08:57:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-MKL-with-C/m-p/1074282#M22438</guid>
      <dc:creator>Gianluca_G_1</dc:creator>
      <dc:date>2016-09-13T08:57:55Z</dc:date>
    </item>
    <item>
      <title>Hi Gianluca,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-MKL-with-C/m-p/1074283#M22439</link>
      <description>&lt;P&gt;Hi Gianluca,&lt;/P&gt;

&lt;P&gt;The problem is you create descriptor for DFTI_REAL, what means that you can't use DFTI_COMPLEX_STORAGE as it's not supproted for DFTI_REAL type.&lt;/P&gt;

&lt;P&gt;Please refer to the page described possible storage variables.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/node/521970#24AAA0B1-A87C-4CAE-921E-E2118A0692AE" target="_blank"&gt;https://software.intel.com/en-us/node/521970#24AAA0B1-A87C-4CAE-921E-E2118A0692AE&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Guess you need DFTI_CONJUGATE_EVEN_STORAGE.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Dmitry.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2016 09:31:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-MKL-with-C/m-p/1074283#M22439</guid>
      <dc:creator>Dmitry_Z_Intel1</dc:creator>
      <dc:date>2016-09-16T09:31:00Z</dc:date>
    </item>
    <item>
      <title>Ok thank you,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-MKL-with-C/m-p/1074284#M22440</link>
      <description>&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;"&gt;Ok thank you,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Now the procedure works without errors ...&lt;/P&gt;

&lt;P&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;" /&gt;
	&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;"&gt;By the way now the results are zero!&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;" /&gt;
	&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;" /&gt;
	&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;"&gt;I pass a Complex[,] array and I expect to obtain a Real one.&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;" /&gt;
	&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;"&gt;What is wrong?&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;" /&gt;
	&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;" /&gt;
	&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2016 09:49:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-MKL-with-C/m-p/1074284#M22440</guid>
      <dc:creator>Gianluca_G_1</dc:creator>
      <dc:date>2016-09-16T09:49:15Z</dc:date>
    </item>
    <item>
      <title>Hi Gianluca,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-MKL-with-C/m-p/1074285#M22441</link>
      <description>&lt;P&gt;Hi Gianluca,&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;I see a slight confusion in attached code.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;The thing is you use 4 arrays passing to compute:&amp;nbsp;status = DftiComputeBackward(des_handle, yre_in, yim_in, xre_out, xim_out); //Compute the Backward FFT&lt;/P&gt;

&lt;P&gt;But this usage of 4 arrays is for only DFTI_COMPLEX forward domain in case when you do so-named "split-complex" FFT when your input data is separated: memory = input_real_parts + input_imaginary_parts.&lt;/P&gt;

&lt;P&gt;So the question is "What exactly do you want to compute? What task do you solve?"&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Dmitry.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 08:23:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-MKL-with-C/m-p/1074285#M22441</guid>
      <dc:creator>Dmitry_Z_Intel1</dc:creator>
      <dc:date>2016-09-19T08:23:13Z</dc:date>
    </item>
    <item>
      <title>The second example MKLTest2</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-MKL-with-C/m-p/1074286#M22442</link>
      <description>&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; background-color: rgb(240, 240, 240);"&gt;The second example MKLTest2 works&amp;nbsp;because it doesn't give any error, but the results are wrong.&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; background-color: rgb(240, 240, 240);" /&gt;
	&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; background-color: rgb(240, 240, 240);"&gt;I tryed to make Backward and Forward FFT with the aim to understand how this functions works. &lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; background-color: rgb(240, 240, 240);"&gt;The final result should be the initial matrix but this is not true.&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; background-color: rgb(240, 240, 240);" /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; background-color: rgb(240, 240, 240);"&gt;&lt;TT&gt;The input vector is a Complex one, it is a result of FFT Forward Transformation of a&amp;nbsp;&lt;/TT&gt;&lt;TT&gt;&lt;TT&gt;current transient in a time domain&lt;/TT&gt;.&amp;nbsp;&lt;/TT&gt;&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; background-color: rgb(240, 240, 240);"&gt;&lt;TT&gt;While the output of&amp;nbsp;&lt;/TT&gt;&lt;TT&gt;&lt;SPAN data-mce-style="font-family: 'Courier New', Courier, monospace;" face="Courier New, Courier, monospace" style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;DftiComputeBackward&amp;nbsp;&lt;/SPAN&gt;should be a real vector.&amp;nbsp;&lt;/TT&gt;&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; background-color: rgb(240, 240, 240);"&gt;&lt;BR /&gt;
	The MKLTest program import the correct file, this is a complex vector, (see &amp;nbsp;button FFT) and try do make the FFTBackward.&lt;BR /&gt;
	&lt;BR /&gt;
	&lt;BR /&gt;
	&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; background-color: rgb(240, 240, 240);"&gt;&lt;TT&gt;Gianluca&lt;/TT&gt;&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; background-color: rgb(240, 240, 240);"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 06:40:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-MKL-with-C/m-p/1074286#M22442</guid>
      <dc:creator>Gianluca_G_1</dc:creator>
      <dc:date>2016-09-21T06:40:52Z</dc:date>
    </item>
    <item>
      <title>Hi Gianluca,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-MKL-with-C/m-p/1074287#M22443</link>
      <description>&lt;P&gt;I'm sorry, haven't updated the page before the reply.&lt;/P&gt;

&lt;P&gt;I will take a look at your sources.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Dmitry.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Previous answer was:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Hi Gianluca,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;I don't insist but probably if you just try MKL FFT API, it's better to look through MKL dftc examples. They show how to use API: how to create a descriptor, what additional parameters and values should be set for simple situations, like educational ones.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Hope this helps you to evaluate MKL.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Dmitry.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 12:41:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-MKL-with-C/m-p/1074287#M22443</guid>
      <dc:creator>Dmitry_Z_Intel1</dc:creator>
      <dc:date>2016-09-21T12:41:00Z</dc:date>
    </item>
    <item>
      <title>sorry,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-MKL-with-C/m-p/1074288#M22444</link>
      <description>&lt;P&gt;sorry,&lt;/P&gt;

&lt;P&gt;but the functions declarations its ok I was wrong.&lt;/P&gt;

&lt;P&gt;By the way there is something I miss, maybe is because the documentation is not clear o maybe its me.&lt;/P&gt;

&lt;P&gt;The documentation is for c++ code not exactly c#.&lt;/P&gt;

&lt;P&gt;But before to contact you I've spent a lot of time to try myself.&lt;/P&gt;

&lt;P&gt;As I wrote, I tried to make FFT Backward and FFT Forward expecting to return to the initial input matrix and this doesn't happen.&lt;/P&gt;

&lt;P&gt;Thank you for any help&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best Regards&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 12:53:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-MKL-with-C/m-p/1074288#M22444</guid>
      <dc:creator>Gianluca_G_1</dc:creator>
      <dc:date>2016-09-21T12:53:52Z</dc:date>
    </item>
    <item>
      <title>well,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-MKL-with-C/m-p/1074289#M22445</link>
      <description>&lt;P&gt;well,&lt;/P&gt;

&lt;P&gt;some one can tell me&amp;nbsp;&lt;SPAN style="font-size: 1em;"&gt;why this simple example doesn't provide the results I'm expecting.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Here the input and output (certified)&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;//INPUT
//REAL[0] = 1.000,   IMAG[0] = 0.000
//REAL[1] = 0.000,   IMAG[1] = 0.000
//REAL[2] = 0.000,   IMAG[2] = 0.000
//REAL[3] = 0.000,   IMAG[3] = 0.000
//REAL[4] = 0.000,   IMAG[4] = 0.000
//REAL[5] = 0.000,   IMAG[5] = 0.000
//REAL[6] = 0.000,   IMAG[6] = 0.000
//REAL[7] = 0.000,   IMAG[7] = 0.000

//RESULTS
//REAL[0] = 0.125,   IMAG[0] = 0.000
//REAL[1] = 0.125,   IMAG[1] = 0.000
//REAL[2] = 0.125,   IMAG[2] = 0.000
//REAL[3] = 0.125,   IMAG[3] = 0.000
//REAL[4] = 0.125,   IMAG[4] = 0.000
//REAL[5] = 0.125,   IMAG[5] = 0.000
//REAL[6] = 0.125,   IMAG[6] = 0.000
//REAL[7] = 0.125,   IMAG[7] = 0.000
&lt;/PRE&gt;

&lt;P&gt;//http://www.sccon.ca/sccon/fft/fft3.htm&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	These the operations I make in C#&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt;public static Complex[,] MKL_FFT(double[] yre_in, double[] yim_in)
        {
            int status;
            IntPtr des_handle = IntPtr.Zero;
            int iN = yre_in.Length;
            int iN2 = iN / 2;
            int iSize = yre_in.Length;
           
            double[] xre_out = new double[iN2 + 1];
            double[] xim_out = new double[iN2 + 1];

            try
            {
                status = DftiCreateDescriptor(ref des_handle, (int)DFTI_CONFIG_VALUE.DFTI_DOUBLE, (int)DFTI_CONFIG_VALUE.DFTI_COMPLEX, 1, iN);
                               
                status = DftiSetValue(des_handle, (int)DFTI_CONFIG_PARAM.DFTI_PLACEMENT, __arglist((int)DFTI_CONFIG_VALUE.DFTI_NOT_INPLACE));
               
                status = DftiCommitDescriptor(des_handle); //Finalize the descriptor
               
                status = DftiComputeForward(des_handle, yre_in, yim_in, xre_out, xim_out); //Compute the Backward FFT
               
                status = DftiFreeDescriptor(ref des_handle); //Free the descriptor
               

                int[] lowerBounds = { 1, 1 };
                int[] lengths = { iN2 + 1, 1 };
                Complex[,] out_matrix = (Complex[,])Array.CreateInstance(typeof(Complex), lengths, lowerBounds);

                //populate result matrix
                for (int i = 1; i &amp;lt;= iN2 + 1; i++)
                {
                    out_matrix[i, 1] = new Complex(xre_out[i - 1], xim_out[i - 1]);
                }
                return out_matrix;
            }
            catch (Exception ex)
            {
                if (des_handle != IntPtr.Zero)
                    DftiFreeDescriptor(ref des_handle); //Free the descriptor
                throw ex;
            }

        }&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
	&lt;BR /&gt;
	&lt;BR /&gt;
	&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 10:35:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-MKL-with-C/m-p/1074289#M22445</guid>
      <dc:creator>Gianluca_G_1</dc:creator>
      <dc:date>2016-09-26T10:35:23Z</dc:date>
    </item>
    <item>
      <title>Now it works!!!!!</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-MKL-with-C/m-p/1074290#M22446</link>
      <description>&lt;P&gt;Now it works!!!!!&lt;/P&gt;

&lt;P&gt;It was a declarative problem:&lt;/P&gt;

&lt;P&gt;Here how to declare the API functions in C#:&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt;#region FFT (DFTI)

        //DFTI_EXTERN char* DftiErrorMessage(MKL_LONG);
        [DllImport("mkl_rt.dll", ExactSpelling = true, SetLastError = false, CallingConvention = CallingConvention.Cdecl)]
        internal static extern IntPtr DftiErrorMessage(
            long error_code
        );

        //DFTI_EXTERN MKL_LONG DftiCreateDescriptor(DFTI_DESCRIPTOR_HANDLE*,
        //                      enum DFTI_CONFIG_VALUE, /* precision */
        //                      enum DFTI_CONFIG_VALUE, /* domain */
        //                      MKL_LONG, ...);
        [DllImport("mkl_rt.dll", ExactSpelling = true, SetLastError = false, CallingConvention = CallingConvention.Cdecl)]
        internal static extern int DftiCreateDescriptor(
            ref IntPtr handle_descriptor,
            int precision,
            int domain,
            int dime,
            int size
        );
        
        //DFTI_EXTERN MKL_LONG DftiCommitDescriptor(DFTI_DESCRIPTOR_HANDLE);
        [DllImport("mkl_rt.dll", ExactSpelling = true, SetLastError = false, CallingConvention = CallingConvention.Cdecl)]
        internal static extern int DftiCommitDescriptor(
            IntPtr handle_descriptor
        );

        //DFTI_EXTERN MKL_LONG DftiSetValue(DFTI_DESCRIPTOR_HANDLE, enum DFTI_CONFIG_PARAM, ...);
        [SuppressUnmanagedCodeSecurity]
        [DllImport("mkl_rt.dll", ExactSpelling = true, SetLastError = false, CallingConvention = CallingConvention.Cdecl)]
        internal static extern int DftiSetValue(IntPtr handle_descriptor, int config_param, __arglist);

        //DFTI_EXTERN MKL_LONG DftiComputeBackward(DFTI_DESCRIPTOR_HANDLE, void*, ...);
        [DllImport("mkl_rt.dll", ExactSpelling = true, SetLastError = false, CallingConvention = CallingConvention.Cdecl)]
        internal static extern int DftiComputeBackward(
            IntPtr handle_descriptor,
            [In] Complex[] x_in,
            [Out] Complex[] x_out
        );

        [DllImport("mkl_rt.dll", ExactSpelling = true, SetLastError = false, CallingConvention = CallingConvention.Cdecl)]
        internal static extern int DftiComputeForward(
            IntPtr handle_descriptor,
            [In] Complex[] x_in,            
            [Out] Complex[] x_out
        );

        //DFTI_EXTERN MKL_LONG DftiFreeDescriptor(DFTI_DESCRIPTOR_HANDLE*);
        [DllImport("mkl_rt.dll", ExactSpelling = true, SetLastError = false, CallingConvention = CallingConvention.Cdecl)]
        internal static extern int DftiFreeDescriptor(
            ref IntPtr handle_descriptor
        );
        #endregion&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best Regards&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Gianluca&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 07:41:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-MKL-with-C/m-p/1074290#M22446</guid>
      <dc:creator>Gianluca_G_1</dc:creator>
      <dc:date>2016-09-27T07:41:13Z</dc:date>
    </item>
  </channel>
</rss>

