<?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: Pardiso returns incorrect number of negative eigenvalues for some matrices in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-returns-incorrect-number-of-negative-eigenvalues-for/m-p/1337684#M32318</link>
    <description>&lt;P&gt;Or wait..&lt;/P&gt;
&lt;P&gt;Did you get 1309 from Pardiso? That is the correct number.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Nov 2021 15:00:34 GMT</pubDate>
    <dc:creator>staffanb</dc:creator>
    <dc:date>2021-11-19T15:00:34Z</dc:date>
    <item>
      <title>Pardiso returns incorrect number of negative eigenvalues for some matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-returns-incorrect-number-of-negative-eigenvalues-for/m-p/1337307#M32309</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I work with constrained optimization where I want to use Pardiso to solve symmetric indefinite systems. Moreover, in order to assure convexity of the problem I need to know the number of positive/negative eigenvalues of the system. However, for some matrices, Pardiso returns the wrong number of negative eigenvalues after the factorization. I have compared the result from Pardiso to that of the solver MUMPS which always gives the correct number, and also by computing the eigenvalues from the dense representation.&lt;/P&gt;
&lt;P&gt;Is this a known issue? Or am I maybe using wrong options for the solver?&lt;/P&gt;
&lt;P&gt;Attached is a test program to reproduce the error.&lt;/P&gt;
&lt;P&gt;Excerpt from output of the test program:&lt;BR /&gt;&amp;gt;&amp;gt; Number of negative eigenvalues according to Pardiso is 1311. However, the correct number for this matrix should be 1309.&lt;BR /&gt;&amp;gt;&amp;gt; Eigenvalues computed by Eigen (dense):&lt;BR /&gt;&amp;gt;&amp;gt; [-243.214,..., -1.23553e-05, 0.00443743,..., 223.752]&lt;BR /&gt;&amp;gt;&amp;gt; number of negative eigenvalues is 1309&lt;/P&gt;
&lt;P&gt;Note that the condition number of the matrix is not terrible.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Staffan&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 15:06:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-returns-incorrect-number-of-negative-eigenvalues-for/m-p/1337307#M32309</guid>
      <dc:creator>staffanb</dc:creator>
      <dc:date>2021-11-18T15:06:15Z</dc:date>
    </item>
    <item>
      <title>Re:Pardiso returns incorrect number of negative eigenvalues for some matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-returns-incorrect-number-of-negative-eigenvalues-for/m-p/1337559#M32313</link>
      <description>&lt;P&gt;Staffan, which version of MKL do you use?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Nov 2021 03:49:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-returns-incorrect-number-of-negative-eigenvalues-for/m-p/1337559#M32313</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2021-11-19T03:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Pardiso returns incorrect number of negative eigenvalues for some matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-returns-incorrect-number-of-negative-eigenvalues-for/m-p/1337585#M32314</link>
      <description>&lt;P&gt;#define __INTEL_MKL_BUILD_DATE 20210904&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;#define __INTEL_MKL__ 2021&lt;/P&gt;
&lt;P&gt;#define __INTEL_MKL_MINOR__ 0&lt;BR /&gt;#define __INTEL_MKL_UPDATE__ 4&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;#define INTEL_MKL_VERSION 20210004&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 06:40:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-returns-incorrect-number-of-negative-eigenvalues-for/m-p/1337585#M32314</guid>
      <dc:creator>staffanb</dc:creator>
      <dc:date>2021-11-19T06:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Pardiso returns incorrect number of negative eigenvalues for some matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-returns-incorrect-number-of-negative-eigenvalues-for/m-p/1337643#M32316</link>
      <description>&lt;P&gt;I have to confirm that MKL Pardiso returns 1309.&lt;/P&gt;
&lt;P&gt;How do you know that 1311 is the correct number of negative eigenvalues?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 11:07:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-returns-incorrect-number-of-negative-eigenvalues-for/m-p/1337643#M32316</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2021-11-19T11:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Pardiso returns incorrect number of negative eigenvalues for some matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-returns-incorrect-number-of-negative-eigenvalues-for/m-p/1337668#M32317</link>
      <description>&lt;P&gt;&amp;nbsp;According to MUMPS, and also computing the eigenvalues (of the dense matrix) using both Eigen and Matlab (code for computing the eigenvalues using Eigen is in the test program). The eigenvalues are not that close to zero so I do believe&amp;nbsp;&lt;U&gt;1309&lt;/U&gt; is correct.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 16:44:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-returns-incorrect-number-of-negative-eigenvalues-for/m-p/1337668#M32317</guid>
      <dc:creator>staffanb</dc:creator>
      <dc:date>2021-11-19T16:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pardiso returns incorrect number of negative eigenvalues for some matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-returns-incorrect-number-of-negative-eigenvalues-for/m-p/1337684#M32318</link>
      <description>&lt;P&gt;Or wait..&lt;/P&gt;
&lt;P&gt;Did you get 1309 from Pardiso? That is the correct number.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 15:00:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-returns-incorrect-number-of-negative-eigenvalues-for/m-p/1337684#M32318</guid>
      <dc:creator>staffanb</dc:creator>
      <dc:date>2021-11-19T15:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Pardiso returns incorrect number of negative eigenvalues for some matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-returns-incorrect-number-of-negative-eigenvalues-for/m-p/1337708#M32319</link>
      <description>&lt;P&gt;Turning off scaling (iparm&lt;LI-WRAPPER&gt;&lt;SPAN&gt;(11)=0&lt;/SPAN&gt;&lt;/LI-WRAPPER&gt;) also gives me the correct number of negative eigenvalues (1309) for that example. However, going back to my original problem I soon run in to another matrix.&lt;/P&gt;
&lt;P&gt;For this case the negative eigenvalues are closer to zero. Could it be the pivot perturbation strategy that causes Pardiso to get the wrong value?&lt;/P&gt;
&lt;P&gt;&amp;gt; Number of negative eigenvalues according to Pardiso is 1309.&lt;BR /&gt;&amp;gt; Eigenvalues computed by Eigen (dense):&lt;BR /&gt;&amp;gt; [-203.012,..., -8.81333e-08, 1,..., 204.012]&lt;BR /&gt;&amp;gt; number of negative eigenvalues is 1306&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached are new files with the new matrix, and now running Pardiso with default options.&lt;/P&gt;
&lt;P&gt;Thanks for the help!&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Staffan&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 16:42:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-returns-incorrect-number-of-negative-eigenvalues-for/m-p/1337708#M32319</guid>
      <dc:creator>staffanb</dc:creator>
      <dc:date>2021-11-19T16:42:07Z</dc:date>
    </item>
    <item>
      <title>Re:Pardiso returns incorrect number of negative eigenvalues for some matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-returns-incorrect-number-of-negative-eigenvalues-for/m-p/1338251#M32326</link>
      <description>&lt;P&gt;Staffan,&lt;/P&gt;&lt;P&gt;At a very preliminary glance, here we have some problems with MKL Pardiso. We will investigate these cases and keep this thread informed. &lt;/P&gt;&lt;P&gt;Gennady&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Nov 2021 16:05:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-returns-incorrect-number-of-negative-eigenvalues-for/m-p/1338251#M32326</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2021-11-22T16:05:37Z</dc:date>
    </item>
  </channel>
</rss>

