<?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 dgeev eigenvectors in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgeev-eigenvectors/m-p/767639#M370</link>
    <description>Eigenvectors are scalable. In other words, if v is an eigenvector and c is a complex constant, c.v is also an eigenvector.&lt;BR /&gt;&lt;BR /&gt;Different packages choose different scaling for eigenvectors. Before comparing results, you should match the scaling.&lt;BR /&gt;&lt;BR /&gt;The matrix you gave Mathematica is the transpose of the one in the MKL example. As a result, Mathematica gave you the left eigenvectors, whereas MKL gave you the right eigenvectors. If the matrix is not hermitian, the right and left eigenvectors differ.&lt;BR /&gt;</description>
    <pubDate>Fri, 06 Aug 2010 18:18:04 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2010-08-06T18:18:04Z</dc:date>
    <item>
      <title>dgeev eigenvectors</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgeev-eigenvectors/m-p/767638#M369</link>
      <description>&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings everyone!&lt;/P&gt;&lt;P&gt;I have a question concerning the (right) eigenvectors returned from (MKL) LAPACK's dgeev.&lt;/P&gt;
&lt;P&gt;There is the dgeev example at&lt;/P&gt;&lt;P&gt;&lt;A href="http://software.intel.com/sites/products/documentation/hpc/mkl/lapack/mkl_lapack_examples/dgeev_ex.c.htm"&gt;intels dgeev example&lt;/A&gt;&lt;/P&gt;&lt;P&gt;where the matrix&lt;/P&gt;
&lt;P&gt;A = {{-1.01, 3.98, 3.30, 4.43, 7.31},&lt;/P&gt;
&lt;P&gt;     { 0.86, 0.53, 8.26, 4.96, -6.43},&lt;/P&gt;
&lt;P&gt;     {-4.60, -7.04, -3.89, -7.66, -6.16},&lt;/P&gt;
&lt;P&gt;     { 3.31, 5.29, 8.20, -7.33, 2.47},&lt;/P&gt;
&lt;P&gt;    {-4.81, 3.55, -1.51, 6.18, 5.58}};&lt;/P&gt;
&lt;P&gt;is diagonalized. On my machine I can reproduce the results given in the link. Then, with more digits than provided in the example, the first eigenvalue and -vector (lambda, v) read (in Mathematica notation, "I" is the imaginary unit)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;P&gt;lambda = 2.858133 + 10.762750 I;&lt;/P&gt;
&lt;P&gt;v = {0.108065 + 0.168648 I,&lt;/P&gt;&lt;P&gt;   0.406313 - 0.259010 I,&lt;/P&gt;
&lt;P&gt;   0.102358 - 0.508802 I,&lt;/P&gt;
&lt;P&gt;   0.398631 - 0.091333 I,&lt;/P&gt;
&lt;P&gt;   0.539535 + 0.000000 I};&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;When I check in Mathematica if the eigenpair satisfies&lt;/P&gt;
&lt;P&gt; A v = lambda v&lt;/P&gt;
&lt;P&gt;(as it should, according to the documentation) it turns out that this is not the case :&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;in: A.v&lt;/P&gt;
&lt;P&gt;out: { 4.441 + 11.539 I,&lt;/P&gt;
&lt;P&gt;   -5.131 + 13.895 I,&lt;/P&gt;
&lt;P&gt;   -5.630 - 19.365 I,&lt;/P&gt;
&lt;P&gt;   -3.115 + 6.718 I,&lt;/P&gt;
&lt;P&gt;    5.526 + 7.408 I };&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;in: lambda v&lt;/P&gt;
&lt;P&gt;out: { -1.506 + 1.645 I,&lt;/P&gt;
&lt;P&gt;   -10.341 + 4.443 I,&lt;/P&gt;
&lt;P&gt;   -11.924 - 1.516 I,&lt;/P&gt;
&lt;P&gt;   -9.884 + 6.165 I,&lt;/P&gt;
&lt;P&gt;    1.542 + 5.806 I }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;And indeed, the eigenvectors provided from Mathematica are different and they furthermore satisfy the eigenvalue equation as expected&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;P&gt;in: {eval, evec} = Eigensystem&lt;A&gt;;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;in: A . evec[[1]]&lt;/P&gt;
&lt;P&gt;out: { 3.225 - 0.344 I,&lt;/P&gt;
&lt;P&gt;    1.766 + 6.653 I,&lt;/P&gt;
&lt;P&gt;   -6.313 + 1.264 I,&lt;/P&gt;
&lt;P&gt;   0.933 + 3.021 I,&lt;/P&gt;
&lt;P&gt;   3.537 - 1.457 I}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;P&gt;in: eval[[1]] evec[[1]]&lt;/P&gt;
&lt;P&gt;out: {3.225 - 0.344 I,&lt;/P&gt;
&lt;P&gt;    1.766 + 6.653 I,&lt;/P&gt;
&lt;P&gt;   -6.313 + 1.264 I,&lt;/P&gt;
&lt;P&gt;    0.933 + 3.021 I,&lt;/P&gt;
&lt;P&gt;    3.537 - 1.457 I}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea where I am going wrong would be highly appreciated.&lt;/P&gt;
&lt;P&gt;Have a nice day and thank you!&lt;/P&gt;
&lt;P&gt;phys&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 Aug 2010 16:48:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgeev-eigenvectors/m-p/767638#M369</guid>
      <dc:creator>phys</dc:creator>
      <dc:date>2010-08-06T16:48:00Z</dc:date>
    </item>
    <item>
      <title>dgeev eigenvectors</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgeev-eigenvectors/m-p/767639#M370</link>
      <description>Eigenvectors are scalable. In other words, if v is an eigenvector and c is a complex constant, c.v is also an eigenvector.&lt;BR /&gt;&lt;BR /&gt;Different packages choose different scaling for eigenvectors. Before comparing results, you should match the scaling.&lt;BR /&gt;&lt;BR /&gt;The matrix you gave Mathematica is the transpose of the one in the MKL example. As a result, Mathematica gave you the left eigenvectors, whereas MKL gave you the right eigenvectors. If the matrix is not hermitian, the right and left eigenvectors differ.&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Aug 2010 18:18:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgeev-eigenvectors/m-p/767639#M370</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-08-06T18:18:04Z</dc:date>
    </item>
    <item>
      <title>dgeev eigenvectors</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgeev-eigenvectors/m-p/767640#M371</link>
      <description>Wow, what a stupid mistake (however, not unexpected...).&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thank you so much mecej4!&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 Aug 2010 19:15:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgeev-eigenvectors/m-p/767640#M371</guid>
      <dc:creator>phys</dc:creator>
      <dc:date>2010-08-06T19:15:24Z</dc:date>
    </item>
  </channel>
</rss>

