<?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 Re: Eigenvalue/Eigenvectors calculation in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Eigenvectors-calculation/m-p/1325150#M32242</link>
    <description>&lt;P&gt;To further explain the problem I have, I have attached a screenshot. Basically, I tried to decompose a very simple symmetric matrix&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[1, 2]&lt;/P&gt;
&lt;P&gt;[2, 1]&lt;/P&gt;
&lt;P&gt;The eigenvalues should be 3 and -1.&amp;nbsp; But as you see in the screenshot, after calling the function, I get 1 and 1 in the d array.&lt;/P&gt;
&lt;P&gt;Please let me know if there is any wrong with the way I called the function. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;John&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohnZhang_0-1635343228194.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/20218iB5D4F780469095A8/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="JohnZhang_0-1635343228194.png" alt="JohnZhang_0-1635343228194.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Oct 2021 14:02:38 GMT</pubDate>
    <dc:creator>JohnZhang</dc:creator>
    <dc:date>2021-10-27T14:02:38Z</dc:date>
    <item>
      <title>Eigenvalue/Eigenvectors calculation</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Eigenvectors-calculation/m-p/1321997#M32188</link>
      <description>&lt;P&gt;I am trying to use the dsytrd/dorg function to calculate the eigenvalues and eigen vectors for a symmetric matrix. For some reason (probably my incorrect way of calling them), it does not seem to do the job. All the results are wrong. This is a very simple code snipet using the dsytrd to do the tridiagonal decomposition. The output in array d (for the eigenvalues) is completely wrong.&lt;/P&gt;
&lt;P&gt;Any help appreciated.&lt;/P&gt;
&lt;P&gt;John&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;double[] a = new double[] { 1, 2, 2, 1 };&lt;BR /&gt;double[] d = new double[2];&lt;BR /&gt;double[] e = new double[2];&lt;BR /&gt;double[] tau = new double[2];&lt;BR /&gt;unsafe&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; fixed (double* pa = a, pd = d, pe = e, ptau = tau)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int info = LAPACKE_dsytrd(&lt;SPAN&gt;LAPACK_ROW_MAJOR&lt;/SPAN&gt;, 'L', 2, pa, 2, pd, pe, ptau);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;}&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 14:40:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Eigenvectors-calculation/m-p/1321997#M32188</guid>
      <dc:creator>JohnZhang</dc:creator>
      <dc:date>2021-10-14T14:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Eigenvalue/Eigenvectors calculation</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Eigenvectors-calculation/m-p/1322057#M32190</link>
      <description>&lt;P&gt;May I kindly suggest that:&lt;/P&gt;
&lt;P&gt;1. You consider using Pardiso and feast&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/41971"&gt;@mecej4&lt;/a&gt;&amp;nbsp; very kindly set up PARDISO and feast to solve this type of problem for me, (I could not get the packing to work) in a program called Lothuur - Norse God.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It works. You will need to pull out the bits you need, but it is pretty modular.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 18:18:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Eigenvectors-calculation/m-p/1322057#M32190</guid>
      <dc:creator>JohnNichols</dc:creator>
      <dc:date>2021-10-14T18:18:20Z</dc:date>
    </item>
    <item>
      <title>Re:Eigenvalue/Eigenvectors calculation</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Eigenvectors-calculation/m-p/1322785#M32204</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Kindly share us the complete reproducer, so that we could troubleshoot the issue from end.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In addition, for your information, Below function is used to reduce a real symmetric matrix to tridiagonal form. (Attaching the developer link for your reference)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;lapack_int LAPACKE_dsytrd (int matrix_layout, char uplo, lapack_int n, double* a, lapack_int lda, double* d, double* e, double* tau);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-c/top/lapack-routines/lapack-least-squares-and-eigenvalue-problem/lapack-least-square-eigenvalue-problem-computation/symmetric-eigenvalue-problems-lapack-computation/sytrd.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-c/top/lapack-routines/lapack-least-squares-and-eigenvalue-problem/lapack-least-square-eigenvalue-problem-computation/symmetric-eigenvalue-problems-lapack-computation/sytrd.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;To compute all eigenvalues and optionally, to compute all eigenvectors of a real symmetric matrix using divide and conquer algorithm below function is used. (Attaching the developer reference link for your reference)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;lapack_int LAPACKE_dsyevd (int matrix_layout, char jobz, char uplo, lapack_int n, double* a, lapack_int lda, double* w);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-c/top/lapack-routines/lapack-least-squares-and-eigenvalue-problem/lapack-least-squares-eigenvalue-problem-driver/symmetric-eigenvalue-problems-lapack-driver/syevd.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-c/top/lapack-routines/lapack-least-squares-and-eigenvalue-problem/lapack-least-squares-eigenvalue-problem-driver/symmetric-eigenvalue-problems-lapack-driver/syevd.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Besides this, you can refer to examples over path C:\Program Files (x86)\Intel\oneAPI\mkl\latest\examples\examples_core_c.zip\c\lapack\source\&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Oct 2021 10:29:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Eigenvectors-calculation/m-p/1322785#M32204</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2021-10-18T10:29:05Z</dc:date>
    </item>
    <item>
      <title>Re:Eigenvalue/Eigenvectors calculation</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Eigenvectors-calculation/m-p/1325001#M32236</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Reminder:&lt;/P&gt;&lt;P&gt;Has the solution provided helped? Is your issue resolved? Please let us know if the issue still persists.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Oct 2021 04:43:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Eigenvectors-calculation/m-p/1325001#M32236</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2021-10-27T04:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Eigenvalue/Eigenvectors calculation</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Eigenvectors-calculation/m-p/1325143#M32241</link>
      <description>&lt;P&gt;Many thanks for the reply. I did try&amp;nbsp;&lt;SPAN&gt;LAPACKE_dsyevd&amp;nbsp; and it works!. I didn't know there were two categories of functions, computational routines and driver routines. The latter is probably is more suitable for my application. But I have not got the computational routine working (see the beginning of the post). My understanding is that after the decomposition into tridiagonal matrix, the results stored in array 'd' should be the eigenvalues. But in my case, it is not.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 13:22:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Eigenvectors-calculation/m-p/1325143#M32241</guid>
      <dc:creator>JohnZhang</dc:creator>
      <dc:date>2021-10-27T13:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Eigenvalue/Eigenvectors calculation</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Eigenvectors-calculation/m-p/1325150#M32242</link>
      <description>&lt;P&gt;To further explain the problem I have, I have attached a screenshot. Basically, I tried to decompose a very simple symmetric matrix&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[1, 2]&lt;/P&gt;
&lt;P&gt;[2, 1]&lt;/P&gt;
&lt;P&gt;The eigenvalues should be 3 and -1.&amp;nbsp; But as you see in the screenshot, after calling the function, I get 1 and 1 in the d array.&lt;/P&gt;
&lt;P&gt;Please let me know if there is any wrong with the way I called the function. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;John&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohnZhang_0-1635343228194.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/20218iB5D4F780469095A8/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="JohnZhang_0-1635343228194.png" alt="JohnZhang_0-1635343228194.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 14:02:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Eigenvectors-calculation/m-p/1325150#M32242</guid>
      <dc:creator>JohnZhang</dc:creator>
      <dc:date>2021-10-27T14:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Eigenvalue/Eigenvectors calculation</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Eigenvectors-calculation/m-p/1326214#M32256</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To find all eigenvalues of a tridiagonal matrix T, you could use the function "sterf" which computes all eigenvalues of a real symmetric tridiagonal matrix using QR algorithm.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached the links for your reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sterf functionality:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-c/top/lapack-routines/lapack-least-squares-and-eigenvalue-problem/lapack-least-square-eigenvalue-problem-computation/symmetric-eigenvalue-problems-lapack-computation/sterf.html#sterf" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-c/top/lapack-routines/lapack-least-squares-and-eigenvalue-problem/lapack-least-square-eigenvalue-problem-computation/symmetric-eigenvalue-problems-lapack-computation/sterf.html#sterf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Symmetric Eigenvalue Problems: LAPACK Computational Routines:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-c/top/lapack-routines/lapack-least-squares-and-eigenvalue-problem/lapack-least-square-eigenvalue-problem-computation/symmetric-eigenvalue-problems-lapack-computation.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-c/top/lapack-routines/lapack-least-squares-and-eigenvalue-problem/lapack-least-square-eigenvalue-problem-computation/symmetric-eigenvalue-problems-lapack-computation.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The eigenvalues should be 3 and -1.&amp;nbsp;But as you see in the screenshot, after calling the function, I get 1 and 1 in the d array.&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt; As per the sytrd functionality, d contains the diagonal elements of the matrix T which is the same as output provided by you.&lt;/P&gt;
&lt;P&gt;To further clarify the significance of each parameter, attaching the reference link for "sytrd" functionality which reduces a real symmetric matrix to tridiagonal form.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-c/top/lapack-routines/lapack-least-squares-and-eigenvalue-problem/lapack-least-square-eigenvalue-problem-computation/symmetric-eigenvalue-problems-lapack-computation/sytrd.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-c/top/lapack-routines/lapack-least-squares-and-eigenvalue-problem/lapack-least-square-eigenvalue-problem-computation/symmetric-eigenvalue-problems-lapack-computation/sytrd.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Shanmukh.SS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 06:07:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Eigenvectors-calculation/m-p/1326214#M32256</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2021-11-01T06:07:29Z</dc:date>
    </item>
    <item>
      <title>Re:Eigenvalue/Eigenvectors calculation</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Eigenvectors-calculation/m-p/1328342#M32283</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Reminder:&lt;/P&gt;&lt;P&gt;Has the solution provided helped.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue. Thank you!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Nov 2021 06:28:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Eigenvectors-calculation/m-p/1328342#M32283</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2021-11-09T06:28:15Z</dc:date>
    </item>
    <item>
      <title>Re:Eigenvalue/Eigenvectors calculation</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Eigenvectors-calculation/m-p/1328456#M32286</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for accepting our solution. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Nov 2021 15:22:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Eigenvectors-calculation/m-p/1328456#M32286</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2021-11-09T15:22:01Z</dc:date>
    </item>
  </channel>
</rss>

