<?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: why does my cholesky decomposition fail? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-does-my-cholesky-decomposition-fail/m-p/856953#M7080</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/317867"&gt;hagai_sela&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;it's not positive definite, but it is semi-positive definite. Isn't that enough?&lt;BR /&gt;&lt;BR /&gt;Hagai.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
The documention of the call assumes positive definite matrices. This likely explains some of the trouble. &lt;A href="http://www.netlib.org/lapack/double/dpotrf.f" target="_blank"&gt;http://www.netlib.org/lapack/double/dpotrf.f&lt;/A&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 13 Jul 2009 18:39:47 GMT</pubDate>
    <dc:creator>Melvin_Robinson</dc:creator>
    <dc:date>2009-07-13T18:39:47Z</dc:date>
    <item>
      <title>why does my cholesky decomposition fail?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-does-my-cholesky-decomposition-fail/m-p/856950#M7077</link>
      <description>I wrote this piece of C code:&lt;BR /&gt;&lt;BR /&gt; double Matrix[] =&lt;BR /&gt; {&lt;BR /&gt; 1, -1,&lt;BR /&gt; -1, 1&lt;BR /&gt; };&lt;BR /&gt;&lt;BR /&gt; int nInfo;&lt;BR /&gt; char chUpper = 'U';&lt;BR /&gt; int nSize = 2;&lt;BR /&gt; dpotrf(&lt;BR /&gt; &amp;amp;chUpper,&lt;BR /&gt; &amp;amp;nSize,&lt;BR /&gt; Matrix,&lt;BR /&gt; &amp;amp;nSize,&lt;BR /&gt; &amp;amp;nInfo);&lt;BR /&gt;&lt;BR /&gt;As far as my limited math understanding goes, my matrix is positive semidefinite, but nInfo is 2... Am I doing anything wrong?&lt;BR /&gt;&lt;BR /&gt;Hagai.&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Jul 2009 13:39:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-does-my-cholesky-decomposition-fail/m-p/856950#M7077</guid>
      <dc:creator>hagai_sela</dc:creator>
      <dc:date>2009-07-13T13:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: why does my cholesky decomposition fail?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-does-my-cholesky-decomposition-fail/m-p/856951#M7078</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/317867"&gt;hagai_sela&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;I wrote this piece of C code:&lt;BR /&gt;&lt;BR /&gt; double Matrix[] =&lt;BR /&gt; {&lt;BR /&gt; 1, -1,&lt;BR /&gt; -1, 1&lt;BR /&gt; };&lt;BR /&gt;&lt;BR /&gt; int nInfo;&lt;BR /&gt; char chUpper = 'U';&lt;BR /&gt; int nSize = 2;&lt;BR /&gt; dpotrf(&lt;BR /&gt; &amp;amp;chUpper,&lt;BR /&gt; &amp;amp;nSize,&lt;BR /&gt; Matrix,&lt;BR /&gt; &amp;amp;nSize,&lt;BR /&gt; &amp;amp;nInfo);&lt;BR /&gt;&lt;BR /&gt;As far as my limited math understanding goes, my matrix is positive semidefinite, but nInfo is 2... Am I doing anything wrong?&lt;BR /&gt;&lt;BR /&gt;Hagai.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Your matrix is not positive definite which is why nInfo returns a value greater than zero. Here is the return information from LAPACK:&lt;BR /&gt; INFO    (output) INTEGER&lt;BR /&gt; = 0:  successful exit&lt;BR /&gt; &amp;lt; 0:  if INFO = -i, the i-th argument had an illegal value&lt;BR /&gt; &amp;gt; 0:  if INFO = i, the leading minor of order i is not&lt;BR /&gt; positive definite, and the factorization could not be&lt;BR /&gt; completed.&lt;BR /&gt;&lt;BR /&gt;I tried this with [2 1;1 2] and it worked fine.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Jul 2009 14:38:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-does-my-cholesky-decomposition-fail/m-p/856951#M7078</guid>
      <dc:creator>Melvin_Robinson</dc:creator>
      <dc:date>2009-07-13T14:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: why does my cholesky decomposition fail?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-does-my-cholesky-decomposition-fail/m-p/856952#M7079</link>
      <description>it's not positive definite, but it is semi-positive definite. Isn't that enough?&lt;BR /&gt;&lt;BR /&gt;Hagai.&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Jul 2009 16:42:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-does-my-cholesky-decomposition-fail/m-p/856952#M7079</guid>
      <dc:creator>hagai_sela</dc:creator>
      <dc:date>2009-07-13T16:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: why does my cholesky decomposition fail?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-does-my-cholesky-decomposition-fail/m-p/856953#M7080</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/317867"&gt;hagai_sela&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;it's not positive definite, but it is semi-positive definite. Isn't that enough?&lt;BR /&gt;&lt;BR /&gt;Hagai.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
The documention of the call assumes positive definite matrices. This likely explains some of the trouble. &lt;A href="http://www.netlib.org/lapack/double/dpotrf.f" target="_blank"&gt;http://www.netlib.org/lapack/double/dpotrf.f&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Jul 2009 18:39:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-does-my-cholesky-decomposition-fail/m-p/856953#M7080</guid>
      <dc:creator>Melvin_Robinson</dc:creator>
      <dc:date>2009-07-13T18:39:47Z</dc:date>
    </item>
  </channel>
</rss>

