<?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 LAPACKE_dgetrf _dgetrf input error  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LAPACKE-dgetrf-dgetrf-input-error/m-p/810311#M3834</link>
    <description>My apologies, indeed A contains NaNs. When importing into matlab to test it, those NaNs magically go. The differences are not few decimals, they're quite big (when using = instead of +=) but at this point I don't trust the whole import method, so I'll just fix A.&lt;BR /&gt;Thanks for pointing to the NaN check, do you have a link with the whole list of parameters? The reference I use says only: " -i means incorrect i-th input paramater".&lt;BR /&gt;</description>
    <pubDate>Wed, 15 Feb 2012 07:29:18 GMT</pubDate>
    <dc:creator>marcoxp</dc:creator>
    <dc:date>2012-02-15T07:29:18Z</dc:date>
    <item>
      <title>LAPACKE_dgetrf _dgetrf input error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LAPACKE-dgetrf-dgetrf-input-error/m-p/810307#M3830</link>
      <description>I have a vector&lt;DOUBLE&gt;A(n*n), initialized inside a loop like:&lt;BR /&gt;&lt;BR /&gt;for(i=0;i&lt;N&gt;&lt;/N&gt;for(j=0;j&lt;N&gt;&lt;/N&gt;for(ysym=0;ysym&amp;lt;2;ysym){&lt;BR /&gt;for(zsym=0;zsym&amp;lt;2;zsym){&lt;BR /&gt;&lt;BR /&gt;//computations&lt;BR /&gt;&lt;BR /&gt;A[i*n+j]+=//values&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I then solve a linear system with:&lt;BR /&gt;&lt;BR /&gt;int info;&lt;BR /&gt;vector&lt;DOUBLE&gt;b(n) //initialized to values&lt;BR /&gt;vector&lt;INT&gt;pivots(n);&lt;BR /&gt;&lt;BR /&gt;info=LAPACKE_dgetrf(LAPACK_ROW_MAJOR,n,n,&amp;amp;(A[0]),n,&amp;amp;pivots[0]);&lt;BR /&gt;&lt;BR /&gt;info2=LAPACKE_dgetrs(LAPACK_ROW_MAJOR,'N',n,1,&amp;amp;A[0],n,&amp;amp;pivots[0],&amp;amp;b[0],1);&lt;BR /&gt;&lt;BR /&gt;Results: info=-4;info2=-5; that means problems on A. &lt;BR /&gt;&lt;BR /&gt;If I change the A initialization to:&lt;BR /&gt;A[i*n+j]=//values (plus is removed)&lt;BR /&gt;&lt;BR /&gt;then the program runs, info=0, info2=0. But the solution b differs from the solution of the same system obtained in another solver. &lt;BR /&gt;&lt;BR /&gt;How to get out of this? Thanks.&lt;BR /&gt;&lt;/INT&gt;&lt;/DOUBLE&gt;&lt;/DOUBLE&gt;</description>
      <pubDate>Tue, 14 Feb 2012 13:30:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LAPACKE-dgetrf-dgetrf-input-error/m-p/810307#M3830</guid>
      <dc:creator>marcoxp</dc:creator>
      <dc:date>2012-02-14T13:30:24Z</dc:date>
    </item>
    <item>
      <title>LAPACKE_dgetrf _dgetrf input error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LAPACKE-dgetrf-dgetrf-input-error/m-p/810308#M3831</link>
      <description>Show the actual code, not a paraphrase.&lt;BR /&gt;&lt;BR /&gt;You have not shown any initialization of the elements of A. Do you perform the initialization somewhere else? Otherwise&lt;BR /&gt;&lt;BR /&gt; A[i*n+j]+= &lt;BR /&gt;&lt;BR /&gt;adds a defined quantity to an uninitialized array element, leaving the result undefined.&lt;BR /&gt;&lt;BR /&gt;Why are you surprised when you solve two different problems with two different solvers and obtain different results?&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Feb 2012 13:58:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LAPACKE-dgetrf-dgetrf-input-error/m-p/810308#M3831</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2012-02-14T13:58:25Z</dc:date>
    </item>
    <item>
      <title>LAPACKE_dgetrf _dgetrf input error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LAPACKE-dgetrf-dgetrf-input-error/m-p/810309#M3832</link>
      <description>A is declared and initialized in the main function as: vector&lt;DOUBLE&gt;A(n*n,0);&lt;BR /&gt;&lt;BR /&gt;then passed by reference to: &lt;BR /&gt;&lt;BR /&gt;void myFun(vector&lt;DOUBLE&gt; &amp;amp;A)&lt;BR /&gt;&lt;BR /&gt;where the A[i*n+j]+= happens.&lt;BR /&gt;&lt;BR /&gt;On exit of myFun all elements of A are finite. &lt;BR /&gt;&lt;BR /&gt;All values of A and b are then also exported manually to matlab and sytem solved there too. The matrix is not ill conditioned so I don't see how the two problems are different.&lt;/DOUBLE&gt;&lt;/DOUBLE&gt;</description>
      <pubDate>Tue, 14 Feb 2012 14:10:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LAPACKE-dgetrf-dgetrf-input-error/m-p/810309#M3832</guid>
      <dc:creator>marcoxp</dc:creator>
      <dc:date>2012-02-14T14:10:38Z</dc:date>
    </item>
    <item>
      <title>LAPACKE_dgetrf _dgetrf input error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LAPACKE-dgetrf-dgetrf-input-error/m-p/810310#M3833</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;The INFO=-4 for LAPACKE_DGETRFand INFO=-5 for LAPACKE_DGETRSare set by NaN checker. This means that your initial matrix contains NaNs. This correlates with your replacing += with =, because NaN+=value is still NaN. And with = operator you put your correct values substituting all NaNs.&lt;BR /&gt;&lt;BR /&gt;And how large is the difference between solutions you mentioned? If you compare your solutions with just equality (==) then this is expected, few last digits of floating point numbers could differ due to different order of simple operations in algorithms, this results other sequence of rounding operations on intermediate data. Correct way to compare two matrices is to check residual norm(A1 - A2) / ( N * norm(A1) * EPS ). &lt;/P&gt;&lt;P&gt;W.B.R.,&lt;BR /&gt;Alexander&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2012 04:31:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LAPACKE-dgetrf-dgetrf-input-error/m-p/810310#M3833</guid>
      <dc:creator>Alexander_K_Intel3</dc:creator>
      <dc:date>2012-02-15T04:31:15Z</dc:date>
    </item>
    <item>
      <title>LAPACKE_dgetrf _dgetrf input error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LAPACKE-dgetrf-dgetrf-input-error/m-p/810311#M3834</link>
      <description>My apologies, indeed A contains NaNs. When importing into matlab to test it, those NaNs magically go. The differences are not few decimals, they're quite big (when using = instead of +=) but at this point I don't trust the whole import method, so I'll just fix A.&lt;BR /&gt;Thanks for pointing to the NaN check, do you have a link with the whole list of parameters? The reference I use says only: " -i means incorrect i-th input paramater".&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Feb 2012 07:29:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LAPACKE-dgetrf-dgetrf-input-error/m-p/810311#M3834</guid>
      <dc:creator>marcoxp</dc:creator>
      <dc:date>2012-02-15T07:29:18Z</dc:date>
    </item>
    <item>
      <title>LAPACKE_dgetrf _dgetrf input error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LAPACKE-dgetrf-dgetrf-input-error/m-p/810312#M3835</link>
      <description>NaN arithmetic is so special, I feel, that it makes no sense to say that when they were used in a calculation the results were found to differ "much" from some other results. You have to be able to certify that no NaNs were used before you can discuss any property of the results.&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;&amp;gt; do you have a link with the whole list of parameters?&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;When you call Lapack routines through Lapack-E or Lapack-95, the return code from the F77 Lapack routines tend to be of little use, unless you are willing to step through the interface code. It is best to check that the arguments in &lt;SPAN style="text-decoration: underline;"&gt;your &lt;/SPAN&gt;call meet the specifications.</description>
      <pubDate>Wed, 15 Feb 2012 09:11:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LAPACKE-dgetrf-dgetrf-input-error/m-p/810312#M3835</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2012-02-15T09:11:32Z</dc:date>
    </item>
  </channel>
</rss>

