<?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 CSC to CSR Sparse Matrix Conversion Problem in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSC-to-CSR-Sparse-Matrix-Conversion-Problem/m-p/860191#M7421</link>
    <description>&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;John, &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;- looking at these arrays, it's pretty difficult to say what's wrong with conversion.what was your results?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;- It should be noted that there is the documentation issueregarding description of job(6) for themkl_dcsrcsc function.&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;Accordingly documentation&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;
&lt;P&gt;If &lt;SAMP class="codeph"&gt;&lt;SPAN class="parmname"&gt;job&lt;/SPAN&gt;(6)=0&lt;/SAMP&gt;, all output  arrays &lt;SPAN class="parmname"&gt;acsr&lt;/SPAN&gt;, &lt;SPAN class="parmname"&gt;ja&lt;/SPAN&gt;, and  &lt;SPAN class="parmname"&gt;ia&lt;/SPAN&gt; are filled in for the output storage.&lt;/P&gt;
&lt;P&gt;If &lt;SAMP class="codeph"&gt;&lt;SPAN class="parmname"&gt;job&lt;/SPAN&gt;(6)0&lt;/SAMP&gt;, only  arrays &lt;SPAN class="parmname"&gt;ja&lt;/SPAN&gt;, &lt;SPAN class="parmname"&gt;ia&lt;/SPAN&gt; are filled  in for the output storage.&lt;/P&gt;
&lt;P&gt;but actually should be&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;For conversion to the CSR format:&lt;/P&gt;
&lt;P&gt;If job(6)=0, only arrays ja, ia are filled in for the output storage.&lt;/P&gt;
&lt;P&gt;If job(6) != 0, all output arrays acsr, ja, and ia are filled in for the output storage.&lt;/P&gt;
&lt;P&gt;and the same for conversion to the CSC format.&lt;/P&gt;
&lt;P&gt;--Gennady&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 30 Mar 2010 13:57:49 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2010-03-30T13:57:49Z</dc:date>
    <item>
      <title>CSC to CSR Sparse Matrix Conversion Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSC-to-CSR-Sparse-Matrix-Conversion-Problem/m-p/860190#M7420</link>
      <description>&lt;P&gt;Hello, I am having difficulty converting a column format matrix to row format using mkl_dcsrcsc(). I have checked the matrix many times over and can't find anything wrong with the definition of the data, still I get an incorrect result. Using data from the example C program, converters_c.c the answer I recieve is correct.&lt;BR /&gt;&lt;BR /&gt;The data for converters_c.c, NNZ=8, N=4&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;double acsc[] = {5,9,8,2,3,1,6,4};&lt;BR /&gt;LONG aj[] = {0,1,0,1,2,3,2,3};&lt;BR /&gt;LONG ai[] = {0,2,4,6,8};&lt;/P&gt;
&lt;P&gt;The data in my matrix, NNZ=13, N=5&lt;/P&gt;
&lt;P&gt;double acsc[] = {1,-2,-4,-1,5,8,4,2,-3,6,7,4,-5};&lt;BR /&gt;LONG aj[] = {0,1,3,0,1,4,2,3,0,2,3,2,4};&lt;BR /&gt;LONG ai[] = {0,3,6,8,11,13};&lt;/P&gt;
&lt;P&gt;where job = {1 0 0 2 NNZ 1}; in both cases, LONG = _int64, 0 based indexing.&lt;/P&gt;
&lt;P&gt;Additionally, the 4'th element in job[] is (2), which is not explained in the manual as far as I can tell (it is described as 'locat' in the example program), and job[5]=1 is the values that fill all output arrays, not job[5]=0 as the manual states on page 450 of the mklman.&lt;BR /&gt;&lt;BR /&gt;Just interested to see if anyone can help explain the problem, perhaps I have overlooked something.&lt;BR /&gt;&lt;BR /&gt;Thanks, john&lt;/P&gt;</description>
      <pubDate>Sat, 27 Mar 2010 17:44:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSC-to-CSR-Sparse-Matrix-Conversion-Problem/m-p/860190#M7420</guid>
      <dc:creator>h88433</dc:creator>
      <dc:date>2010-03-27T17:44:48Z</dc:date>
    </item>
    <item>
      <title>CSC to CSR Sparse Matrix Conversion Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSC-to-CSR-Sparse-Matrix-Conversion-Problem/m-p/860191#M7421</link>
      <description>&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;John, &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;- looking at these arrays, it's pretty difficult to say what's wrong with conversion.what was your results?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;- It should be noted that there is the documentation issueregarding description of job(6) for themkl_dcsrcsc function.&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;Accordingly documentation&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;
&lt;P&gt;If &lt;SAMP class="codeph"&gt;&lt;SPAN class="parmname"&gt;job&lt;/SPAN&gt;(6)=0&lt;/SAMP&gt;, all output  arrays &lt;SPAN class="parmname"&gt;acsr&lt;/SPAN&gt;, &lt;SPAN class="parmname"&gt;ja&lt;/SPAN&gt;, and  &lt;SPAN class="parmname"&gt;ia&lt;/SPAN&gt; are filled in for the output storage.&lt;/P&gt;
&lt;P&gt;If &lt;SAMP class="codeph"&gt;&lt;SPAN class="parmname"&gt;job&lt;/SPAN&gt;(6)0&lt;/SAMP&gt;, only  arrays &lt;SPAN class="parmname"&gt;ja&lt;/SPAN&gt;, &lt;SPAN class="parmname"&gt;ia&lt;/SPAN&gt; are filled  in for the output storage.&lt;/P&gt;
&lt;P&gt;but actually should be&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;For conversion to the CSR format:&lt;/P&gt;
&lt;P&gt;If job(6)=0, only arrays ja, ia are filled in for the output storage.&lt;/P&gt;
&lt;P&gt;If job(6) != 0, all output arrays acsr, ja, and ia are filled in for the output storage.&lt;/P&gt;
&lt;P&gt;and the same for conversion to the CSC format.&lt;/P&gt;
&lt;P&gt;--Gennady&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Mar 2010 13:57:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSC-to-CSR-Sparse-Matrix-Conversion-Problem/m-p/860191#M7421</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-03-30T13:57:49Z</dc:date>
    </item>
    <item>
      <title>CSC to CSR Sparse Matrix Conversion Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSC-to-CSR-Sparse-Matrix-Conversion-Problem/m-p/860192#M7422</link>
      <description>Hi Gennady,&lt;BR /&gt;&lt;BR /&gt;Thanks again for the reply. The matrix I am testing actually came as a test matrix from the mkl documentation. I dont remember exacly where, I think it was in the Pardiso section. The matrix is unsymmetric,&lt;BR /&gt;&lt;BR /&gt; n= 5, nnz = 13&lt;BR /&gt;&lt;BR /&gt; 1 -1 0 -3 0&lt;BR /&gt; -2 5 0 0 0&lt;BR /&gt; 0 0 4 6 4&lt;BR /&gt; -4 0 2 7 0&lt;BR /&gt; 0 8 0 0 -5&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The control settings I used were, &lt;BR /&gt;&lt;BR /&gt;job[0]=1&lt;BR /&gt;job[1]=job[2]=0&lt;BR /&gt;job[6]=1&lt;BR /&gt;&lt;BR /&gt;The Column (CSC) format input is:&lt;BR /&gt;&lt;BR /&gt;acsc[] = {&lt;SPAN style="font-size: x-small;"&gt;1, -2, -4, -1, 5, 8, 4, 2, -3, 6, 7, 4, -5};&lt;BR /&gt;ja1[] = {&lt;SPAN style="font-size: x-small;"&gt;0, 3, 6, 8, 11, 13};&lt;/SPAN&gt;&lt;BR /&gt;ia1[] = {&lt;SPAN style="font-size: x-small;"&gt;0, 1, 3, 0, 1, 4, 2, 3, 0, 2, 3, 2, 4};&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;The output from mkl_dcsrcsc() is, &lt;BR /&gt;&lt;BR /&gt;ia:&lt;BR /&gt;0 3 4 8 11 12 &lt;BR /&gt;&lt;BR /&gt;ja:&lt;BR /&gt;0 1 3 1 0 2 3 4 0 2 3 4 0 &lt;BR /&gt;&lt;BR /&gt;acsr:&lt;BR /&gt;1 -1 -3 5 0 4 6 4 -4 2 7 -5 0,&lt;BR /&gt;&lt;BR /&gt;and info is NOT equal to zero.&lt;BR /&gt;&lt;BR /&gt;When I run my code, i get (1 based index output),&lt;BR /&gt;&lt;BR /&gt;ia:&lt;BR /&gt;1 4 6 9 12 14 &lt;BR /&gt;&lt;BR /&gt;ja:&lt;BR /&gt;1 2 4 1 2 3 4 5 1 3 4 2 5 &lt;BR /&gt;&lt;BR /&gt;acsr:&lt;BR /&gt;1 -1 -3 -2 5 4 6 4 -4 2 7 8 -5 &lt;BR /&gt;&lt;BR /&gt;which is correct !&lt;BR /&gt;&lt;BR /&gt;PS: I think I agree with Jennifer Scott at from the Rutherford-Appleton lab in England where in an article I read some time ago (i dont have a copy), she said that conversion from/to these formats "Is not a trivial task". I am never so arrogant as to assume I am always right, but this does not look correct. On a large matrix n~400,000, the conversion in my opinion happens much too fast.&lt;BR /&gt;&lt;BR /&gt;If you have time, try the matrix yourself ! Perhaps you see something I dont.&lt;BR /&gt;&lt;BR /&gt;john</description>
      <pubDate>Wed, 31 Mar 2010 16:05:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSC-to-CSR-Sparse-Matrix-Conversion-Problem/m-p/860192#M7422</guid>
      <dc:creator>h88433</dc:creator>
      <dc:date>2010-03-31T16:05:27Z</dc:date>
    </item>
    <item>
      <title>CSC to CSR Sparse Matrix Conversion Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSC-to-CSR-Sparse-Matrix-Conversion-Problem/m-p/860193#M7423</link>
      <description>john,&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;DIV id="_mcePaste"&gt;yea, it's require some time to investigate the probelm.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Please let me time - i will check the results and let you know the results.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;--Gennady&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Apr 2010 07:32:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSC-to-CSR-Sparse-Matrix-Conversion-Problem/m-p/860193#M7423</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-04-02T07:32:56Z</dc:date>
    </item>
    <item>
      <title>CSC to CSR Sparse Matrix Conversion Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSC-to-CSR-Sparse-Matrix-Conversion-Problem/m-p/860194#M7424</link>
      <description>Hi Gennady, thanks very much for agreeing to look into the matter. For the time being I have a solution so there is no urgency on my part.&lt;BR /&gt;john</description>
      <pubDate>Sat, 03 Apr 2010 09:13:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSC-to-CSR-Sparse-Matrix-Conversion-Problem/m-p/860194#M7424</guid>
      <dc:creator>h88433</dc:creator>
      <dc:date>2010-04-03T09:13:41Z</dc:date>
    </item>
    <item>
      <title>CSC to CSR Sparse Matrix Conversion Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSC-to-CSR-Sparse-Matrix-Conversion-Problem/m-p/860195#M7425</link>
      <description>Hi john,&lt;DIV&gt;&lt;P&gt;we 've checked it - this is the error.this
issue has been submitted to our internal development tracking database for
further investigation, we will inform you once a new update becomes available.&lt;/P&gt;&lt;P&gt;
Here is a bug tracking number for your reference: DPD200092652.&lt;BR /&gt;
Regards, Gennady&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 05 Apr 2010 11:43:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSC-to-CSR-Sparse-Matrix-Conversion-Problem/m-p/860195#M7425</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-04-05T11:43:33Z</dc:date>
    </item>
    <item>
      <title>CSC to CSR Sparse Matrix Conversion Problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSC-to-CSR-Sparse-Matrix-Conversion-Problem/m-p/860196#M7426</link>
      <description>Hi Gennady, thanks !</description>
      <pubDate>Mon, 05 Apr 2010 12:44:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CSC-to-CSR-Sparse-Matrix-Conversion-Problem/m-p/860196#M7426</guid>
      <dc:creator>h88433</dc:creator>
      <dc:date>2010-04-05T12:44:26Z</dc:date>
    </item>
  </channel>
</rss>

