<?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 residual error is so high in PARDISO? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Why-residual-error-is-so-high-in-PARDISO/m-p/1481199#M34538</link>
    <description>&lt;P&gt;Hi Sal_Ahm,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your code, you calculate the value of Ax using the routine mkl_dcsrgemv() which employs one-based indexing while ia and ja values are actually used as zero-based indexing.&lt;/P&gt;
&lt;P&gt;So adding 1 to each element of ia and ja values gave the low residual value. Please the below screenshot for more details.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VarshaS_Intel_0-1682677177602.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/40835i7CC3E3801AF71A8C/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="VarshaS_Intel_0-1682677177602.png" alt="VarshaS_Intel_0-1682677177602.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And, the routine mkl_dcsrgemv() is deprecated, we recommend you to use the mkl_sparse_d_mv() for this sparse matrix-vector multiplication. For more details, please find the below link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-c/2023-0/mkl-sparse-mv.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-c/2023-0/mkl-sparse-mv.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And also, you can calculate the residual error value using loops. We have attached all the 3 methods in the attached file. Could you please try the below-attached code and let us know if you are able to run it without any errors?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Varsha&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2023 10:20:12 GMT</pubDate>
    <dc:creator>VarshaS_Intel</dc:creator>
    <dc:date>2023-04-28T10:20:12Z</dc:date>
    <item>
      <title>Why residual error is so high in PARDISO?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Why-residual-error-is-so-high-in-PARDISO/m-p/1479516#M34506</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; I am solving a big system by PARDISO but it gives me a very high residual error. In order to post and upload the code here, I just want to try for a small size (in this case the residual is 1463.71). So please can you suggest, what is the issue about high residual error?&amp;nbsp; The code is in the attachment .cpp file.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Sal_Ahm&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 07:27:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Why-residual-error-is-so-high-in-PARDISO/m-p/1479516#M34506</guid>
      <dc:creator>SAL_AHM</dc:creator>
      <dc:date>2023-04-24T07:27:45Z</dc:date>
    </item>
    <item>
      <title>Re:Why residual error is so high in PARDISO?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Why-residual-error-is-so-high-in-PARDISO/m-p/1480881#M34533</link>
      <description>&lt;P&gt;Hi Sal_Ahm,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We are working on your issue. We will get back to you soon.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Varsha&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Apr 2023 13:37:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Why-residual-error-is-so-high-in-PARDISO/m-p/1480881#M34533</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2023-04-27T13:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why residual error is so high in PARDISO?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Why-residual-error-is-so-high-in-PARDISO/m-p/1481199#M34538</link>
      <description>&lt;P&gt;Hi Sal_Ahm,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your code, you calculate the value of Ax using the routine mkl_dcsrgemv() which employs one-based indexing while ia and ja values are actually used as zero-based indexing.&lt;/P&gt;
&lt;P&gt;So adding 1 to each element of ia and ja values gave the low residual value. Please the below screenshot for more details.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VarshaS_Intel_0-1682677177602.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/40835i7CC3E3801AF71A8C/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="VarshaS_Intel_0-1682677177602.png" alt="VarshaS_Intel_0-1682677177602.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And, the routine mkl_dcsrgemv() is deprecated, we recommend you to use the mkl_sparse_d_mv() for this sparse matrix-vector multiplication. For more details, please find the below link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-c/2023-0/mkl-sparse-mv.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-c/2023-0/mkl-sparse-mv.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And also, you can calculate the residual error value using loops. We have attached all the 3 methods in the attached file. Could you please try the below-attached code and let us know if you are able to run it without any errors?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Varsha&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 10:20:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Why-residual-error-is-so-high-in-PARDISO/m-p/1481199#M34538</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2023-04-28T10:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why residual error is so high in PARDISO?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Why-residual-error-is-so-high-in-PARDISO/m-p/1481222#M34539</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for your support, now it works in good way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Sal_Ahm&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 11:27:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Why-residual-error-is-so-high-in-PARDISO/m-p/1481222#M34539</guid>
      <dc:creator>SAL_AHM</dc:creator>
      <dc:date>2023-04-28T11:27:42Z</dc:date>
    </item>
    <item>
      <title>Re:Why residual error is so high in PARDISO?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Why-residual-error-is-so-high-in-PARDISO/m-p/1481365#M34540</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Glad to know that your issue is resolved. Thanks for accepting our solution. This thread will no longer be monitored by Intel. If you need additional information, please start a new thread.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Varsha&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Apr 2023 18:53:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Why-residual-error-is-so-high-in-PARDISO/m-p/1481365#M34540</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2023-04-28T18:53:18Z</dc:date>
    </item>
  </channel>
</rss>

