<?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:incorrect pivot index of cholesky decomposition in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/incorrect-pivot-index-of-cholesky-decomposition/m-p/1213946#M30128</link>
    <description>&lt;P&gt;The issue is closing and we will no longer respond to this thread.&amp;nbsp;If you require additional assistance from Intel, please start a new thread.&amp;nbsp;Any further interaction in this thread will be considered community only.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 01 Oct 2020 03:20:03 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2020-10-01T03:20:03Z</dc:date>
    <item>
      <title>incorrect pivot index of cholesky decomposition</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/incorrect-pivot-index-of-cholesky-decomposition/m-p/1207913#M30036</link>
      <description>&lt;P&gt;Can anyone confirm the output of&amp;nbsp;LAPACKE_dpstrf on matrix&lt;/P&gt;
&lt;P&gt;a = [ 30, 11, 13,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11, 10, 13,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;13, 13, 17]?&lt;/P&gt;
&lt;P&gt;I got U = [&lt;SPAN class="s1"&gt;5.47723,2.37346,2.00832&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0,3.37145,2.44208&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0,0,0.054153]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;and U'*U =[&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;30,13,11&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;13,17,13&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11,13,10].&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Therefore, the permutation matrix must be equal to (switching row/col 2 and 3)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;P = [ 1 0 0&lt;BR /&gt;0 0 1&lt;BR /&gt;0 1 0]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;However, the piv I got is [1,0,3], which makes no sense. So either I got the wrong piv or I made wrong interpretation of [1,0,3].&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;Here is the code&lt;/P&gt;
&lt;P&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;BR /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;BR /&gt;#include "mkl_lapacke.h"&lt;BR /&gt;#include "mkl.h"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;int main() {&lt;BR /&gt;&lt;BR /&gt;double a[3*3] = {&lt;BR /&gt;30, 11, 13,&lt;BR /&gt;11, 10, 13,&lt;BR /&gt;13, 13, 17&lt;BR /&gt;};&lt;/P&gt;
&lt;P&gt;int m=3;&lt;BR /&gt;&lt;BR /&gt;lapack_int* piv = (lapack_int*)mkl_malloc(m*sizeof(lapack_int), 64);&lt;BR /&gt;long tmp = (long)piv;&lt;/P&gt;
&lt;P&gt;int rank;&lt;/P&gt;
&lt;P&gt;int info = LAPACKE_dpstrf(LAPACK_COL_MAJOR, 'U', m, a, m, piv, &amp;amp;rank, -1);&lt;/P&gt;
&lt;P&gt;for(int i=1;i&amp;lt;=m;i++){&lt;BR /&gt;for(int j=1;j&amp;lt;=m;j++)&lt;BR /&gt;std::cout &amp;lt;&amp;lt; a[(i-1)+(j-1)*m] &amp;lt;&amp;lt; ", "; &lt;BR /&gt;std::cout &amp;lt;&amp;lt; "\n";&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;for(int i=1;i&amp;lt;=m;i++)&lt;BR /&gt;std::cout &amp;lt;&amp;lt; piv[i-1] &amp;lt;&amp;lt; "\n"; &lt;BR /&gt;&lt;BR /&gt;mkl_free(piv);&lt;BR /&gt;}&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 12:26:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/incorrect-pivot-index-of-cholesky-decomposition/m-p/1207913#M30036</guid>
      <dc:creator>weishenme</dc:creator>
      <dc:date>2020-09-09T12:26:26Z</dc:date>
    </item>
    <item>
      <title>Re:incorrect pivot index of cholesky decomposition</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/incorrect-pivot-index-of-cholesky-decomposition/m-p/1208237#M30044</link>
      <description>&lt;P&gt;Checking with the MKL 2020 u2,  i see the ipiv == 1,3,2&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;MKL_VERBOSE Intel(R) &lt;B&gt;MKL 2020.0 Update 2&lt;/B&gt; Product build 20200624 for Intel(R) 64 architecture Intel(R) Advanced Vector Extensions 2 (Intel(R) AVX2) enabled processors, Win 2.60GHz cdecl intel_thread&lt;/P&gt;&lt;P&gt;MKL_VERBOSE DPSTRF(U,3,0000002BD3B4FA90,3,000001DC6F54E640,3,0000002BD3B4F9E8,000001DC6F56F180,0) 100.79us CNR:OFF Dyn:1 FastMM:1 TID:0&amp;nbsp;NThr:2&lt;/P&gt;&lt;P&gt;...LAPACKE_dpstrf results == 0&lt;/P&gt;&lt;P&gt;5.47723, 2.37346, 2.00832,&lt;/P&gt;&lt;P&gt;11, 3.37145, 2.44208,&lt;/P&gt;&lt;P&gt;13, 13, 0.054153,&lt;/P&gt;&lt;P&gt;&lt;B&gt;1&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;3&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;2&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Sep 2020 10:42:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/incorrect-pivot-index-of-cholesky-decomposition/m-p/1208237#M30044</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-09-10T10:42:40Z</dc:date>
    </item>
    <item>
      <title>Re:incorrect pivot index of cholesky decomposition</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/incorrect-pivot-index-of-cholesky-decomposition/m-p/1213946#M30128</link>
      <description>&lt;P&gt;The issue is closing and we will no longer respond to this thread.&amp;nbsp;If you require additional assistance from Intel, please start a new thread.&amp;nbsp;Any further interaction in this thread will be considered community only.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Oct 2020 03:20:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/incorrect-pivot-index-of-cholesky-decomposition/m-p/1213946#M30128</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-10-01T03:20:03Z</dc:date>
    </item>
  </channel>
</rss>

