<?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 [not important] mkl examples (complex_1d_double_ex1.c), allocating memory in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/not-important-mkl-examples-complex-1d-double-ex1-c-allocating/m-p/803324#M3238</link>
    <description>Hija all&lt;BR /&gt;&lt;BR /&gt;The mkl example (e.g.) complex_1d_double_ex1.c allocates memory as&lt;BR /&gt;&lt;BR /&gt;/*&lt;BR /&gt; ** Allocate array for input data&lt;BR /&gt; */&lt;BR /&gt; x_in = (mkl_double_complex*)malloc(2*n*sizeof(double));&lt;BR /&gt; x_exp = (mkl_double_complex*)malloc(2*n*sizeof(double));&lt;BR /&gt;&lt;BR /&gt;Would it not be 'nicer' to use?&lt;BR /&gt;&lt;BR /&gt;//allocate memory&lt;BR /&gt; x = (mkl_double_complex*) malloc(n*sizeof(mkl_double_complex));&lt;BR /&gt; y = (mkl_double_complex*) malloc(n*sizeof(mkl_double_complex));&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for your help&lt;BR /&gt;&lt;BR /&gt;Erich&lt;BR /&gt;</description>
    <pubDate>Tue, 08 Jun 2010 10:02:06 GMT</pubDate>
    <dc:creator>Erich_Zwyssig</dc:creator>
    <dc:date>2010-06-08T10:02:06Z</dc:date>
    <item>
      <title>[not important] mkl examples (complex_1d_double_ex1.c), allocating memory</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/not-important-mkl-examples-complex-1d-double-ex1-c-allocating/m-p/803324#M3238</link>
      <description>Hija all&lt;BR /&gt;&lt;BR /&gt;The mkl example (e.g.) complex_1d_double_ex1.c allocates memory as&lt;BR /&gt;&lt;BR /&gt;/*&lt;BR /&gt; ** Allocate array for input data&lt;BR /&gt; */&lt;BR /&gt; x_in = (mkl_double_complex*)malloc(2*n*sizeof(double));&lt;BR /&gt; x_exp = (mkl_double_complex*)malloc(2*n*sizeof(double));&lt;BR /&gt;&lt;BR /&gt;Would it not be 'nicer' to use?&lt;BR /&gt;&lt;BR /&gt;//allocate memory&lt;BR /&gt; x = (mkl_double_complex*) malloc(n*sizeof(mkl_double_complex));&lt;BR /&gt; y = (mkl_double_complex*) malloc(n*sizeof(mkl_double_complex));&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for your help&lt;BR /&gt;&lt;BR /&gt;Erich&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Jun 2010 10:02:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/not-important-mkl-examples-complex-1d-double-ex1-c-allocating/m-p/803324#M3238</guid>
      <dc:creator>Erich_Zwyssig</dc:creator>
      <dc:date>2010-06-08T10:02:06Z</dc:date>
    </item>
    <item>
      <title>[not important] mkl examples (complex_1d_double_ex1.c), allocat</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/not-important-mkl-examples-complex-1d-double-ex1-c-allocating/m-p/803325#M3239</link>
      <description>Erich,&lt;BR /&gt;&lt;BR /&gt;Strictly speaking, it would be nice to correctMKL examplesusing namely MKL complex types (see mkl_types.h). But currently, in DFTC exampes thereare introduced another additional types: mkl_double_complex and mkl_float_complex instead of using MKL_Complex16 and MKL_Complex8.&lt;BR /&gt;&lt;BR /&gt;As to using sizeof(mkl_double_complex) instead of 2*sizeof(double), I guess, it's just a matter of taste.&lt;BR /&gt;Because these values are the same.&lt;BR /&gt;&lt;BR /&gt;And if validation of results is made by calculation with complex numbers then they should be defined as complex. But currently in DFTC examples all support functions are implemented as interleaved real numbers (see source/dfti_example_support.c)</description>
      <pubDate>Tue, 08 Jun 2010 10:45:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/not-important-mkl-examples-complex-1d-double-ex1-c-allocating/m-p/803325#M3239</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2010-06-08T10:45:18Z</dc:date>
    </item>
  </channel>
</rss>

