<?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 the &amp;quot;LAPACKE_spbtrf&amp;quot; always return &amp;quot;-6&amp;quot;? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Why-the-quot-LAPACKE-spbtrf-quot-always-return-quot-6-quot/m-p/1212835#M30118</link>
    <description>&lt;P&gt;Hi, Mecej, thanks very much again!&lt;/P&gt;
&lt;P&gt;I didn't understand the "lda" well before, that's the main problem. Also a wrong intuition about the format that a positive definite band matrix have.&lt;/P&gt;
&lt;P&gt;Now all the program works well! Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 27 Sep 2020 07:18:02 GMT</pubDate>
    <dc:creator>charlesqhappy</dc:creator>
    <dc:date>2020-09-27T07:18:02Z</dc:date>
    <item>
      <title>Why the "LAPACKE_spbtrf" always return "-6"?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Why-the-quot-LAPACKE-spbtrf-quot-always-return-quot-6-quot/m-p/1212720#M30115</link>
      <description>&lt;P&gt;Hi, guys, I use "LAPACKE_spbtrf" to factorize a matrix A, as the following code, but the function always return -6, which indicate that parameter i is an illegeal value(Does it mean that the "lda" is illegal?).&lt;/P&gt;
&lt;P&gt;So why it returns -6?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="微信截图_20200926214214.png" style="width: 808px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/12889i3D5B9FEDA2E71730/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="微信截图_20200926214214.png" alt="微信截图_20200926214214.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Sep 2020 13:42:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Why-the-quot-LAPACKE-spbtrf-quot-always-return-quot-6-quot/m-p/1212720#M30115</guid>
      <dc:creator>charlesqhappy</dc:creator>
      <dc:date>2020-09-26T13:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why the "LAPACKE_spbtrf" always return "-6"?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Why-the-quot-LAPACKE-spbtrf-quot-always-return-quot-6-quot/m-p/1212731#M30117</link>
      <description>&lt;P&gt;The matrix that you chose is not positive definite. The value of ldA is not correct for the 2-D array conventions that you are using. I think that you should spend time reading the MKL documentation. The MKL distribution comes with a number of example codes that are ready to compile, link and run.&lt;/P&gt;
&lt;P&gt;Here is C code that worked (I changed the matrix to make it +def.).&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;mkl.h&amp;gt;

int main() {

float ab[10] = { 30,31,32,33,34,
                11,12,13,14,0 };
int i,j;
const int n = 5;
int kd = 1;
int lda = n;
int info = LAPACKE_spbtrf(LAPACK_ROW_MAJOR, 'L', n, kd, ab, lda);
printf("info = %d\n",info);
for(j=0; j&amp;lt;=kd; j++){
   for(i=0; i&amp;lt;n; i++)printf("%8.5f ",ab[n*j+i]);
   printf("\n");
   }
return 0;
}
&lt;/LI-CODE&gt;
&lt;P&gt;With such small examples, it is often instructive to use a package such as Matlab so that you can compare solutions, and to construct suitable input matrices. In this case, I increased the values on the principal diagonal, starting with your values, until Matlab told me that the matrix was positive definite.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Sep 2020 14:44:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Why-the-quot-LAPACKE-spbtrf-quot-always-return-quot-6-quot/m-p/1212731#M30117</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2020-09-26T14:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why the "LAPACKE_spbtrf" always return "-6"?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Why-the-quot-LAPACKE-spbtrf-quot-always-return-quot-6-quot/m-p/1212835#M30118</link>
      <description>&lt;P&gt;Hi, Mecej, thanks very much again!&lt;/P&gt;
&lt;P&gt;I didn't understand the "lda" well before, that's the main problem. Also a wrong intuition about the format that a positive definite band matrix have.&lt;/P&gt;
&lt;P&gt;Now all the program works well! Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Sep 2020 07:18:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Why-the-quot-LAPACKE-spbtrf-quot-always-return-quot-6-quot/m-p/1212835#M30118</guid>
      <dc:creator>charlesqhappy</dc:creator>
      <dc:date>2020-09-27T07:18:02Z</dc:date>
    </item>
  </channel>
</rss>

