<?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: Re:MKL function dgetrf wrong results in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-function-dgetrf-wrong-results/m-p/1432846#M33912</link>
    <description>&lt;P&gt;Dear Shanmukh,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, the code print out nothing.&amp;nbsp;But, what I meant is that the array A_PLU is supposed to be the same with the array A. However, if you run the code, you can find that they are different.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A_PLU(1,1) = 1.D0&lt;/P&gt;
&lt;P&gt;A_PLU(2,1) = 1.D0&lt;/P&gt;
&lt;P&gt;A_PLU(1,2) = 2.D0&lt;/P&gt;
&lt;P&gt;A_PLU(2,2) = 2.D0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect the output array ipiv from DGETRF is wrong. Could you please take a look at this point?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Nov 2022 15:31:40 GMT</pubDate>
    <dc:creator>dimdol10</dc:creator>
    <dc:date>2022-11-24T15:31:40Z</dc:date>
    <item>
      <title>MKL function dgetrf wrong results</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-function-dgetrf-wrong-results/m-p/1432095#M33899</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;I am using Intel oneAPI MKL version 2022.2, and visual studio 2022.&lt;/P&gt;
&lt;P&gt;I am currently trying a LU decomposition of a matrix using the function DGETRF provided by MKL.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I found a wrong result in a simple example, I would like ask you if something is incorrect. The example code is attached in the below. As far as I understood, in this example, the array ipiv should be&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ipiv(1) = 2,&lt;/P&gt;
&lt;P&gt;ipiv(2) = 1,&lt;/P&gt;
&lt;P&gt;such that&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A_PLU = P*L*U.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the function gives&lt;/P&gt;
&lt;P&gt;ipiv(1) = 2,&lt;/P&gt;
&lt;P&gt;ipiv(2) = 2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;---------------------------------------------------------&lt;/P&gt;
&lt;P&gt;PROGRAM TEST_MAT_LU_FAC_INV&lt;BR /&gt;&lt;BR /&gt;DOUBLE PRECISION A(2,2)&lt;BR /&gt;DOUBLE PRECISION A_L(2,2), A_U(2,2)&lt;BR /&gt;DOUBLE PRECISION A_LU(2,2)&lt;BR /&gt;DOUBLE PRECISION A_PLU(2,2), A_PLU_TEST(2,2)&lt;BR /&gt;integer info&lt;BR /&gt;integer ipiv(2)&lt;BR /&gt;DOUBLE PRECISION P(2,2) ! permutation matrix&lt;BR /&gt;&lt;BR /&gt;A = 0.D0&lt;BR /&gt;A(1,1) = 1.D0&lt;BR /&gt;A(1,2) = 2.D0&lt;BR /&gt;A(2,1) = 3.D0&lt;BR /&gt;A(2,2) = 4.D0&lt;BR /&gt;&lt;BR /&gt;CALL DGETRF(2,2,A,2,ipiv,info)&lt;BR /&gt;A_L = 0.d0&lt;BR /&gt;A_L(1,1) = 1.D0 !A(1,1)&lt;BR /&gt;A_L(2,1) = A(2,1)&lt;BR /&gt;A_L(2,2) = 1.D0 !A(2,2)&lt;BR /&gt;&lt;BR /&gt;A_U = 0.D0&lt;BR /&gt;A_U(1,1) = A(1,1)&lt;BR /&gt;A_U(1,2) = A(1,2)&lt;BR /&gt;A_U(2,2) = A(2,2) &lt;BR /&gt;&lt;BR /&gt;A_LU = 0.D0&lt;BR /&gt;DO I = 1,2&lt;BR /&gt;DO J = 1,2&lt;BR /&gt;DO K = 1,2&lt;BR /&gt;A_LU(I,J) = A_LU(I,J) + A_L(I,K)*A_U(K,J)&lt;BR /&gt;END DO&lt;BR /&gt;END DO&lt;BR /&gt;END DO&lt;BR /&gt;&lt;BR /&gt;P = 0.D0&lt;BR /&gt;DO I = 1,2&lt;BR /&gt;P(I,IPIV(I)) = 1.D0&lt;BR /&gt;END DO&lt;BR /&gt;&lt;BR /&gt;A_PLU_TEST = 0.D0&lt;BR /&gt;DO I = 1,2&lt;BR /&gt;DO J = 1,2&lt;BR /&gt;DO K = 1,2&lt;BR /&gt;A_PLU_TEST(I,J) = A_PLU_TEST(I,J) + A_L(I,K)*A_U(K,J)&lt;BR /&gt;END DO&lt;BR /&gt;END DO&lt;BR /&gt;END DO &lt;BR /&gt;&lt;BR /&gt;A_PLU = 0.D0&lt;BR /&gt;DO I = 1,2&lt;BR /&gt;DO J = 1,2&lt;BR /&gt;DO K = 1,2&lt;BR /&gt;A_PLU(I,J) = A_PLU(I,J) + P(I,K)*A_PLU_TEST(K,J)&lt;BR /&gt;END DO&lt;BR /&gt;END DO&lt;BR /&gt;END DO&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;END&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 09:44:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-function-dgetrf-wrong-results/m-p/1432095#M33899</guid>
      <dc:creator>dimdol10</dc:creator>
      <dc:date>2022-11-22T09:44:00Z</dc:date>
    </item>
    <item>
      <title>Re:MKL function dgetrf wrong results</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-function-dgetrf-wrong-results/m-p/1432824#M33907</link>
      <description>&lt;P&gt;Hi Myung,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for posting on Intel Communities.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please cross-verify the shared source code? We tried compiling it and we couldn't see any output.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Nov 2022 13:34:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-function-dgetrf-wrong-results/m-p/1432824#M33907</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2022-11-24T13:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Re:MKL function dgetrf wrong results</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-function-dgetrf-wrong-results/m-p/1432846#M33912</link>
      <description>&lt;P&gt;Dear Shanmukh,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, the code print out nothing.&amp;nbsp;But, what I meant is that the array A_PLU is supposed to be the same with the array A. However, if you run the code, you can find that they are different.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A_PLU(1,1) = 1.D0&lt;/P&gt;
&lt;P&gt;A_PLU(2,1) = 1.D0&lt;/P&gt;
&lt;P&gt;A_PLU(1,2) = 2.D0&lt;/P&gt;
&lt;P&gt;A_PLU(2,2) = 2.D0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect the output array ipiv from DGETRF is wrong. Could you please take a look at this point?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 15:31:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-function-dgetrf-wrong-results/m-p/1432846#M33912</guid>
      <dc:creator>dimdol10</dc:creator>
      <dc:date>2022-11-24T15:31:40Z</dc:date>
    </item>
    <item>
      <title>Re:MKL function dgetrf wrong results</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-function-dgetrf-wrong-results/m-p/1435274#M33949</link>
      <description>&lt;P&gt;Hi Myung,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please find the below link for more details and usage regarding the DGETRF functionality.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-fortran/top/lapack-routines/lapack-linear-equation-routines/lapack-linear-equation-computational-routines/matrix-factorization-lapack-computational-routines/getrf.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-fortran/top/lapack-routines/lapack-linear-equation-routines/lapack-linear-equation-computational-routines/matrix-factorization-lapack-computational-routines/getrf.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The function describes the input parameters to be used and the proper usage of the routine.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Dec 2022 17:48:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-function-dgetrf-wrong-results/m-p/1435274#M33949</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2022-12-02T17:48:58Z</dc:date>
    </item>
    <item>
      <title>Re:MKL function dgetrf wrong results</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-function-dgetrf-wrong-results/m-p/1437229#M33977</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;A gentle reminder:&lt;/P&gt;&lt;P&gt;We have not heard back from you for a while. Could you please let us know if any updates regarding your issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Dec 2022 14:35:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-function-dgetrf-wrong-results/m-p/1437229#M33977</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2022-12-09T14:35:16Z</dc:date>
    </item>
    <item>
      <title>Re:MKL function dgetrf wrong results</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-function-dgetrf-wrong-results/m-p/1439132#M34010</link>
      <description>&lt;P&gt;Hi Myung,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We assume that your issue is resolved. If you need any other information, please post a new question as this thread will no longer be monitored by Intel.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Dec 2022 07:45:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-function-dgetrf-wrong-results/m-p/1439132#M34010</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2022-12-16T07:45:35Z</dc:date>
    </item>
  </channel>
</rss>

