<?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 C++:  how to convert from complex(double) to MKL_Complex16 and  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-how-to-convert-from-complex-double-to-MKL-Complex16-and-vice/m-p/827973#M5291</link>
    <description>Paul,&lt;BR /&gt;&lt;BR /&gt;Please add the following define-line in your C++ source file before including mkl.h header file&lt;BR /&gt;#define MKL_Complex16 complex&lt;DOUBLE&gt;&lt;BR /&gt;&lt;BR /&gt;After that no conversion will be needed because MKL_Comlex16 typeis redefined to your complex&lt;DOUBLE&gt; type.&lt;BR /&gt;&lt;BR /&gt;Note, that such redefinitions are to be consistent in order to get correct results after MKL routines.&lt;/DOUBLE&gt;&lt;/DOUBLE&gt;</description>
    <pubDate>Sun, 09 Jan 2011 17:21:56 GMT</pubDate>
    <dc:creator>barragan_villanueva_</dc:creator>
    <dc:date>2011-01-09T17:21:56Z</dc:date>
    <item>
      <title>C++:  how to convert from complex(double) to MKL_Complex16 and vice versa?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-how-to-convert-from-complex-double-to-MKL-Complex16-and-vice/m-p/827972#M5290</link>
      <description>Using Visual Studio 2008, C++, Windows 7, 64 bit.&lt;BR /&gt;&lt;BR /&gt;Want to use LAPACKE_zgesv to solve systems of equations &lt;BR /&gt;&lt;BR /&gt;Have calculated relevant matrices in C++ using (standard) complex&lt;DOUBLE&gt;&lt;BR /&gt;&lt;BR /&gt;Need to convert these to MKL_Complex16 in order to use zgesv, then convert back afterwards.&lt;BR /&gt;&lt;BR /&gt;Have tried a fewguesses that seemed reasonable, but no luck. The official example for zgesv just loads complex constants and does not do variable type conversions, so it doesn't help.&lt;BR /&gt;&lt;BR /&gt;Help! I'm stuck once again. New user blues.&lt;BR /&gt;&lt;BR /&gt;Paul Margosian&lt;/DOUBLE&gt;</description>
      <pubDate>Fri, 07 Jan 2011 18:54:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-how-to-convert-from-complex-double-to-MKL-Complex16-and-vice/m-p/827972#M5290</guid>
      <dc:creator>Paul_Margosian</dc:creator>
      <dc:date>2011-01-07T18:54:35Z</dc:date>
    </item>
    <item>
      <title>C++:  how to convert from complex(double) to MKL_Complex16 and</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-how-to-convert-from-complex-double-to-MKL-Complex16-and-vice/m-p/827973#M5291</link>
      <description>Paul,&lt;BR /&gt;&lt;BR /&gt;Please add the following define-line in your C++ source file before including mkl.h header file&lt;BR /&gt;#define MKL_Complex16 complex&lt;DOUBLE&gt;&lt;BR /&gt;&lt;BR /&gt;After that no conversion will be needed because MKL_Comlex16 typeis redefined to your complex&lt;DOUBLE&gt; type.&lt;BR /&gt;&lt;BR /&gt;Note, that such redefinitions are to be consistent in order to get correct results after MKL routines.&lt;/DOUBLE&gt;&lt;/DOUBLE&gt;</description>
      <pubDate>Sun, 09 Jan 2011 17:21:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-how-to-convert-from-complex-double-to-MKL-Complex16-and-vice/m-p/827973#M5291</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2011-01-09T17:21:56Z</dc:date>
    </item>
    <item>
      <title>C++:  how to convert from complex(double) to MKL_Complex16 and</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-how-to-convert-from-complex-double-to-MKL-Complex16-and-vice/m-p/827974#M5292</link>
      <description>Paul,&lt;DIV&gt;the similar topic has been discussed &lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=74677"&gt;here&lt;/A&gt;.&lt;/DIV&gt;&lt;DIV&gt;--Gennady&lt;/DIV&gt;</description>
      <pubDate>Sun, 09 Jan 2011 19:05:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-how-to-convert-from-complex-double-to-MKL-Complex16-and-vice/m-p/827974#M5292</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2011-01-09T19:05:35Z</dc:date>
    </item>
    <item>
      <title>C++:  how to convert from complex(double) to MKL_Complex16 and</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-how-to-convert-from-complex-double-to-MKL-Complex16-and-vice/m-p/827975#M5293</link>
      <description>Victor,&lt;BR /&gt;&lt;BR /&gt;Thanks. A very nice trick.&lt;BR /&gt;&lt;BR /&gt;Unfortunately: MKL_Complex16 and complex&lt;DOUBLE&gt; are not enough alike for this to work (tried and had troubles).&lt;BR /&gt;&lt;BR /&gt;One of many error messages revealed some details about how MKL_Complex16 is defined (a structuredefining "xxx.real" and "xxx.imag")&lt;BR /&gt;&lt;BR /&gt;Just for the record, this is an example of what seems to work:&lt;BR /&gt;&lt;BR /&gt;complex&lt;DOUBLE&gt;myZ = (2.,3.);&lt;BR /&gt;MKL_Complex16 mkl_Z;&lt;BR /&gt;&lt;BR /&gt;mkl_Z.real = real(myZ);&lt;BR /&gt;mkl_Z.imag = imag(myZ);&lt;BR /&gt;&lt;BR /&gt;Did this with my input arrays (suitable loops and array formatting) for zgesv and compilation went OK.&lt;BR /&gt;&lt;BR /&gt;Have not yet run this and checked outputs, so there is still a chance for additional puzzling problems.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paul Margosian&lt;/DOUBLE&gt;&lt;/DOUBLE&gt;</description>
      <pubDate>Tue, 11 Jan 2011 13:27:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-how-to-convert-from-complex-double-to-MKL-Complex16-and-vice/m-p/827975#M5293</guid>
      <dc:creator>Paul_Margosian</dc:creator>
      <dc:date>2011-01-11T13:27:32Z</dc:date>
    </item>
    <item>
      <title>C++:  how to convert from complex(double) to MKL_Complex16 and</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-how-to-convert-from-complex-double-to-MKL-Complex16-and-vice/m-p/827976#M5294</link>
      <description>Paul,&lt;BR /&gt;&lt;BR /&gt;Sorry, but I don't understand why you had problems if MKL_Complex16 was redefined.&lt;BR /&gt;&lt;BR /&gt;Could you please send me small testcase to demonstrate this problem?&lt;BR /&gt;It will be helpful to make MKL-types more flexible and be freindlyin applications.</description>
      <pubDate>Wed, 12 Jan 2011 07:51:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-how-to-convert-from-complex-double-to-MKL-Complex16-and-vice/m-p/827976#M5294</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2011-01-12T07:51:21Z</dc:date>
    </item>
  </channel>
</rss>

