<?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: Looking for Sparse Sover help in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Looking-for-Sparse-Sover-help/m-p/904669#M11554</link>
    <description>&lt;P&gt;Hey thanks for the help,&lt;/P&gt;
&lt;P&gt;So why am I geting a different answer, I have tried other ways of solving it and I still get the same answer mathematica gave me. Is it the iterative metrhed used by MKL?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 14 Apr 2008 02:34:32 GMT</pubDate>
    <dc:creator>rfs6718</dc:creator>
    <dc:date>2008-04-14T02:34:32Z</dc:date>
    <item>
      <title>Looking for Sparse Sover help</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Looking-for-Sparse-Sover-help/m-p/904667#M11552</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to test out the sparse solver and learn how to code with MKL. So I inputed a 5x5 sparse matrix and a x vector&lt;/P&gt;
&lt;P&gt;A = 1 -1 -3 0 0, -2 5 0 0 0, 0 0 4 6 4, -4 0 2 7 0, 0 -8 0 0 5&lt;/P&gt;
&lt;P&gt;b = 1.2, 1.2, 1.2, 1.2, 1.2&lt;/P&gt;
&lt;P&gt;Since it is a small matrix I used mathmatica to try to confirm the output of a system of linear equations Ay = b. I came up with:&lt;/P&gt;
&lt;P&gt;0.107447, 0.282979, -0.458511, 0.36383, 0.212766&lt;/P&gt;
&lt;P&gt;using mkl_cspblas_dcootrsv i get&lt;/P&gt;
&lt;P&gt;3.13371, 0.624, 0.214286, 0.171429, -0.24&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#010001" size="2"&gt;&lt;FONT color="#000000" size="3"&gt;I used the following parameters for MKL&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;uplo = l&lt;/P&gt;
&lt;P&gt;transa = t&lt;/P&gt;
&lt;P&gt;diag = n&lt;/P&gt;
&lt;P&gt;Thanks for the help&lt;FONT color="#010001" size="2"&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;FONT color="#008000" size="2"&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;</description>
      <pubDate>Sat, 12 Apr 2008 04:36:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Looking-for-Sparse-Sover-help/m-p/904667#M11552</guid>
      <dc:creator>rfs6718</dc:creator>
      <dc:date>2008-04-12T04:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for Sparse Sover help</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Looking-for-Sparse-Sover-help/m-p/904668#M11553</link>
      <description>&lt;FONT face="Arial"&gt;&lt;U&gt;&lt;B&gt;MKL&lt;/B&gt;&lt;/U&gt;&lt;BR /&gt;
radon ~&amp;gt; cat test.f90&lt;BR /&gt;&lt;BR /&gt;
program main&lt;BR /&gt;
implicit none&lt;BR /&gt;
real(8) :: val(13), x(5), y(5)&lt;BR /&gt;
integer :: colind(13), rowind(13)&lt;BR /&gt;
val=(/1.0,-1.0,-3.0,-2.0,5.0,4.0,6.0,4.0,-4.0,2.0,7.0,-8.0,5.0/)&lt;BR /&gt;
rowind=(/1,1,1,2,2,3,3,3,4,4,4,5,5/)&lt;BR /&gt;
colind=(/1,2,3,1,2,3,4,5,1,3,4,2,5/)&lt;BR /&gt;
x=1.2&lt;BR /&gt;
call mkl_dcootrsv('l','t','n',5,val,rowind,colind,13,x,y)&lt;BR /&gt;
print*, y&lt;BR /&gt;
end&lt;BR /&gt;&lt;BR /&gt;
radon ~&amp;gt; ifort test.f90 -L/opt/intel/mkl/9.1/lib/32 -lmkl_solver -lmkl_lapack -lmkl_ia32 -lguide -lpthread&lt;BR /&gt;&lt;BR /&gt;
radon ~&amp;gt; ./a.out &lt;BR /&gt;&lt;B&gt; 3.13371441023690 0.624000024795532 0.214285722800664 0.171428578240531 0.240000009536743&lt;/B&gt;&lt;B&gt;&lt;U&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
MATLAB&lt;/U&gt;&lt;/B&gt;&lt;BR /&gt;
radon ~&amp;gt; matlab -nosplash -nodesktop -nojvm&lt;BR /&gt;&lt;BR /&gt;
 &amp;lt; M A T L A B &amp;gt;&lt;BR /&gt;
 Copyright 1984-2007 The MathWorks, Inc.&lt;BR /&gt;
 Version 7.5.0.338 (R2007b)&lt;BR /&gt;
 August 9, 2007&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;
 To get started, type one of these: helpwin, helpdesk, or demo.&lt;BR /&gt;
 For product information, visit &lt;A href="https://community.intel.com/www.mathworks.com" target="_blank"&gt;www.mathworks.com&lt;/A&gt;.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt;&amp;gt; a=[1 -1 -3 0 0; -2 5 0 0 0; 0 0 4 6 4; -4 0 2 7 0; 0 -8 0 0 5];&lt;BR /&gt;
&amp;gt;&amp;gt; b=[1.2 1.2 1.2 1.2 1.2]'; &lt;BR /&gt;
&amp;gt;&amp;gt; opts.LT = true; opts.TRANSA = true; &lt;BR /&gt;
&amp;gt;&amp;gt; (linsolve(a,b,opts))' &lt;BR /&gt;&lt;BR /&gt;
ans =&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt; 3.1337 0.6240 0.2143 0.1714 0.2400&lt;/B&gt;&lt;/FONT&gt;</description>
      <pubDate>Sun, 13 Apr 2008 23:44:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Looking-for-Sparse-Sover-help/m-p/904668#M11553</guid>
      <dc:creator>Tabrez_Ali</dc:creator>
      <dc:date>2008-04-13T23:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for Sparse Sover help</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Looking-for-Sparse-Sover-help/m-p/904669#M11554</link>
      <description>&lt;P&gt;Hey thanks for the help,&lt;/P&gt;
&lt;P&gt;So why am I geting a different answer, I have tried other ways of solving it and I still get the same answer mathematica gave me. Is it the iterative metrhed used by MKL?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2008 02:34:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Looking-for-Sparse-Sover-help/m-p/904669#M11554</guid>
      <dc:creator>rfs6718</dc:creator>
      <dc:date>2008-04-14T02:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for Sparse Sover help</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Looking-for-Sparse-Sover-help/m-p/904670#M11555</link>
      <description>The answers are incorrect because your A probably doesnt have the required properties. What I was trying to show is that results b/w MKL and Matlab are consistent.&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Apr 2008 03:32:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Looking-for-Sparse-Sover-help/m-p/904670#M11555</guid>
      <dc:creator>Tabrez_Ali</dc:creator>
      <dc:date>2008-04-14T03:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for Sparse Sover help</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Looking-for-Sparse-Sover-help/m-p/904671#M11556</link>
      <description>&lt;P&gt;That make sense. I was assuming that matrix that is used in the MKL example was correct. I am using a bigger matrix and its closer to the mathematica results. Thanks again for the help.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2008 05:04:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Looking-for-Sparse-Sover-help/m-p/904671#M11556</guid>
      <dc:creator>rfs6718</dc:creator>
      <dc:date>2008-04-14T05:04:27Z</dc:date>
    </item>
  </channel>
</rss>

