<?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: dpotri problem when calling from C in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dpotri-problem-when-calling-from-C/m-p/902030#M11334</link>
    <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;param1 should definitely be set to the linear size of the matrix.&lt;/P&gt;
&lt;P&gt;LDA is "a leading dimension of A", it could be referred to as a stride. If 2-d array is continuous in memory, the stride is equal to the first dimension of the matrix (in case of 2-d array in C language it would be the last dimension).&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;In your particular case param1=param2=n should be set.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Michael.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Nov 2008 14:31:53 GMT</pubDate>
    <dc:creator>Michael_C_Intel4</dc:creator>
    <dc:date>2008-11-24T14:31:53Z</dc:date>
    <item>
      <title>dpotri problem when calling from C</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dpotri-problem-when-calling-from-C/m-p/902027#M11331</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I want to calculate inversion of a symmetric matrix using Cholesky factorization in C using "dpotri" MKL's LAPACK function. I wrote this code:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;int info=0;&lt;BR /&gt;int param1=n*n;&lt;BR /&gt;int param2=n;&lt;BR /&gt;char* uplo="U";&lt;BR /&gt;dpotri(uplo, &amp;amp;param1, M, &amp;amp;param2, &amp;amp;info);&lt;/P&gt;
&lt;P&gt;where "M" is a "nxn" symmetric matrix. The is compiled successfully but when I run the pogram, it says that parameter 4 (LDA which is defined "n" here) is incorrect. Should't it be "n" for a "nxn" matrix? Also, should I call "dpotrf" before "dpotri"?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks for your help,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;D.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2008 22:31:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dpotri-problem-when-calling-from-C/m-p/902027#M11331</guid>
      <dc:creator>danesh_d</dc:creator>
      <dc:date>2008-11-18T22:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: dpotri problem when calling from C</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dpotri-problem-when-calling-from-C/m-p/902028#M11332</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - danesh_d&lt;EM&gt;&lt;/EM&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;P&gt;&lt;/P&gt;
&lt;P&gt;int info=0;&lt;BR /&gt;int param1=n*n;&lt;BR /&gt;int param2=n;&lt;BR /&gt;char* uplo="U";&lt;BR /&gt;dpotri(uplo, &amp;amp;param1, M, &amp;amp;param2, &amp;amp;info);&lt;/P&gt;
&lt;P&gt;where "M" is a "nxn" symmetric matrix. The is compiled successfully but when I run the pogram, it says that parameter 4 (LDA which is defined "n" here) is incorrect. Should't it be "n" for a "nxn" matrix? Also, should I call "dpotrf" before "dpotri&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN"&gt;
&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Should it be param1=n ? The matrix has to be dimensionedby the square of that value, which may not exceed param2.&lt;/P&gt;
&lt;P&gt;It does require execution of potrf first.&lt;/P&gt;
&lt;A href="http://web.eweek.com/t?r=2&amp;amp;c=3165&amp;amp;l=55&amp;amp;ctl=13224:9346599D5CA7E0758DADF52A57A39C3F&amp;amp;kc=EWKNLCSM11182008STR1"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="font-size: x-small; color: #0000ff;"&gt;&lt;SPAN style="font-size: x-small; color: #0000ff;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.intel.com/software/products/mkl/docs/WebHelp/lle/functn_potri.html"&gt;http://www.intel.com/software/products/mkl/docs/WebHelp/lle/functn_potri.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2008 23:10:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dpotri-problem-when-calling-from-C/m-p/902028#M11332</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2008-11-18T23:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: dpotri problem when calling from C</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dpotri-problem-when-calling-from-C/m-p/902029#M11333</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/367365"&gt;tim18&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;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN lang="EN"&gt;
&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Should it be param1=n ? The matrix has to be dimensionedby the square of that value, which may not exceed param2.&lt;/P&gt;
&lt;P&gt;It does require execution of potrf first.&lt;/P&gt;
&lt;A href="http://web.eweek.com/t?r=2&amp;amp;c=3165&amp;amp;l=55&amp;amp;ctl=13224:9346599D5CA7E0758DADF52A57A39C3F&amp;amp;kc=EWKNLCSM11182008STR1"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="font-size: x-small; color: #0000ff;"&gt;&lt;SPAN style="font-size: x-small; color: #0000ff;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: x-small;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.intel.com/software/products/mkl/docs/WebHelp/lle/functn_potri.html"&gt;http://www.intel.com/software/products/mkl/docs/WebHelp/lle/functn_potri.html&lt;/A&gt;&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;I think param1 is set correctly which is "n^2" for an "nxn" matrix which is order of that matrix. param2 is the problem which is "LDA" and should be "LDA&amp;gt;=max(1, param1)". Am I right? I don't know what "LDA" is. It is defined as "first dimension of matrix". I set param1=n and param2=n*n and got "segmentation fault" error. Same error for param1=param2=n*n.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;D.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2008 23:33:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dpotri-problem-when-calling-from-C/m-p/902029#M11333</guid>
      <dc:creator>danesh_d</dc:creator>
      <dc:date>2008-11-18T23:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: dpotri problem when calling from C</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dpotri-problem-when-calling-from-C/m-p/902030#M11334</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;param1 should definitely be set to the linear size of the matrix.&lt;/P&gt;
&lt;P&gt;LDA is "a leading dimension of A", it could be referred to as a stride. If 2-d array is continuous in memory, the stride is equal to the first dimension of the matrix (in case of 2-d array in C language it would be the last dimension).&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;In your particular case param1=param2=n should be set.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Michael.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2008 14:31:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dpotri-problem-when-calling-from-C/m-p/902030#M11334</guid>
      <dc:creator>Michael_C_Intel4</dc:creator>
      <dc:date>2008-11-24T14:31:53Z</dc:date>
    </item>
  </channel>
</rss>

