<?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 Problem converting sparse matrix format in MKL using mkl_dcsrco in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-converting-sparse-matrix-format-in-MKL-using-mkl-dcsrcoo/m-p/838213#M6267</link>
    <description>I am using Intel MKL 10.3.11 and its still a problem. Any ideas when this fix will make it into the release?</description>
    <pubDate>Wed, 29 Aug 2012 19:32:55 GMT</pubDate>
    <dc:creator>Nicky_Sandhu</dc:creator>
    <dc:date>2012-08-29T19:32:55Z</dc:date>
    <item>
      <title>Problem converting sparse matrix format in MKL using mkl_dcsrcoo</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-converting-sparse-matrix-format-in-MKL-using-mkl-dcsrcoo/m-p/838203#M6257</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can the entries of coordinate(ia(nnz),ja(nnz),a(nnz)) formated input sparse matrix be in "ANY" order when connverting it into CSR format using mkl_dcsrcoo in Intel MKL(-in Fortran) or should the order be like(increasing in column or row). I get a wrong converted matrix in CSR format when the INPUT was a random ordered Coordinate sparse matrix.&lt;BR /&gt;Following is the code added to the example code in which I changed the order of coordinate formated input sparse matrix and output. The output CSR, i get different than the actual.&lt;BR /&gt;Does anyone knows why the converting is not correct? The output i get are:&lt;BR /&gt;AI= 1 3 5 7 9&lt;BR /&gt; AJ = 1 2 1 2 4 3 4 3&lt;BR /&gt; Acsr = 5.0 8.0 9.0 2.0 6.0 3.0 4.0 1.0&lt;BR /&gt;the actual ones are&lt;BR /&gt; AI_standard 1 3 5 7 9&lt;BR /&gt;AJ_standard 1 2 1 2 3 4 3 4&lt;BR /&gt; Acsr_standard5.0 8.09.0 2.0 3.0 6.0 1.04.0&lt;BR /&gt;thanks a lot&lt;BR /&gt;sagarm&lt;/P&gt;&lt;P&gt;Win xp sp3 32-bit&lt;/P&gt;&lt;P&gt;Intel core 2 2 ghz, 2 gb ram&lt;/P&gt;&lt;P&gt;Microsoft Visual Studio 2008&lt;/P&gt;&lt;P&gt;Version 9.0.30729.1 SP&lt;/P&gt;&lt;P&gt;Intel Visual Fortran Compiler Integration Package ID: w_cprof_p_11.1.035&lt;/P&gt;&lt;P&gt;Intel Visual Fortran Compiler Integration for Microsoft Visual Studio* 2008, 11.1.3462.200&lt;/P&gt;&lt;PRE&gt;[bash]&lt;BR /&gt;!C---------------------------------------------------------------------------
!C TASK 4    Obtain sparse row format from sparse coordinate format
!C---------------------------------------------------------------------------
      job(1)=1
      job(6)=3
      !
       !----------------------------------------!
      Acsr=.0; AJ=0;AI=0    !  set  to zero.
      !Acoo in different order.
      ir(1)=1;    jc(1)= 1;     Acoo(1)=5.0;           
      ir(2)=4;    jc(2)= 4;     Acoo(2)=4.0;           
      ir(3)=1;    jc(3)= 2;     Acoo(3)=8.0;
      ir(4)=4;    jc(4)= 3;     Acoo(4)=1.0;
      ir(5)=2;    jc(5)= 1;     Acoo(5)=9.0;
      ir(6)=3;    jc(6)= 4;     Acoo(6)=6.0;
      ir(7)=2;    jc(7)= 2;     Acoo(7)=2.0;
      ir(8)=3;    jc(8)= 3;     Acoo(8)=3.0;  
 !----------------------------------------!
      call mkl_dcsrcoo (job,n,Acsr,AJ,AI,nnz,Acoo,ir,jc,info)[/bash]&lt;/PRE&gt;</description>
      <pubDate>Sat, 14 Aug 2010 18:28:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-converting-sparse-matrix-format-in-MKL-using-mkl-dcsrcoo/m-p/838203#M6257</guid>
      <dc:creator>sagarmatha</dc:creator>
      <dc:date>2010-08-14T18:28:38Z</dc:date>
    </item>
    <item>
      <title>Problem converting sparse matrix format in MKL using mkl_dcsrco</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-converting-sparse-matrix-format-in-MKL-using-mkl-dcsrcoo/m-p/838204#M6258</link>
      <description>You are asking for a conversion to the 3-array CSR format. In that format, elements in row i must come before elements in row i+1; however, within a single row elements may be given in any order. Thus, the results you got are equivalent to the "standard one" with a different column order. In the COO format, the triplets can be given in any order. In the CSR format, as I just stated, there is a stipulation that rows appear in order. Column indices, however, need not be sorted.</description>
      <pubDate>Sat, 14 Aug 2010 20:01:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-converting-sparse-matrix-format-in-MKL-using-mkl-dcsrcoo/m-p/838204#M6258</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-08-14T20:01:17Z</dc:date>
    </item>
    <item>
      <title>Problem converting sparse matrix format in MKL using mkl_dcsrco</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-converting-sparse-matrix-format-in-MKL-using-mkl-dcsrcoo/m-p/838205#M6259</link>
      <description>Thanks mecej4,&lt;BR /&gt;But the problem still exist. I was converting my COO matrix to the 3-array CSR format, simply to use it as input in PARDISO solver and I first started with the given example file as I mentioned in the question.&lt;BR /&gt;PARDISO returned me the following error, when I wanted to solve the converted(using mkl_dcsrcoo) CSR matrix from the COO formated(example 4*4 sparse )matrix with 1 rhs( 13, 11, 9, 5) so that solution is (1 1 1 1):&lt;BR /&gt;&lt;BR /&gt;*** Error in PARDISO (incorrect input matrix ) error_num= 24&lt;BR /&gt;*** Input check: j=7, ja(j)=4, ja(j+1)=3 are incompatible&lt;BR /&gt;Reordering completed ...&lt;BR /&gt;The following ERROR was detected: -1&lt;BR /&gt;&lt;BR /&gt;Does this mean, PARDISO requires, in each row, the column indices of the entries to be in increasing order. Am I understanding it correctly ?&lt;BR /&gt;&lt;BR /&gt;thanks &lt;BR /&gt;sagarm&lt;BR /&gt;</description>
      <pubDate>Sat, 14 Aug 2010 22:37:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-converting-sparse-matrix-format-in-MKL-using-mkl-dcsrcoo/m-p/838205#M6259</guid>
      <dc:creator>sagarmatha</dc:creator>
      <dc:date>2010-08-14T22:37:18Z</dc:date>
    </item>
    <item>
      <title>Problem converting sparse matrix format in MKL using mkl_dcsrco</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-converting-sparse-matrix-format-in-MKL-using-mkl-dcsrcoo/m-p/838206#M6260</link>
      <description>Pardiso has an additional requirement. The &lt;A href="http://www.pardiso-project.org/manual/manual.pdf"&gt;Pardiso manual&lt;/A&gt; states:

"The algorithms in PARDISO require JA to be increasingly ordered per row...". That would make the output of mkl_dcsrcoo possibly unsuitable for passing to Pardiso.&lt;BR /&gt;&lt;BR /&gt;Let us wait for an Intel representative to address this discrepancy.</description>
      <pubDate>Sun, 15 Aug 2010 00:18:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-converting-sparse-matrix-format-in-MKL-using-mkl-dcsrcoo/m-p/838206#M6260</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-08-15T00:18:21Z</dc:date>
    </item>
    <item>
      <title>Problem converting sparse matrix format in MKL using mkl_dcsrco</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-converting-sparse-matrix-format-in-MKL-using-mkl-dcsrcoo/m-p/838207#M6261</link>
      <description>I see.&lt;BR /&gt;thanks&lt;BR /&gt;sagarm</description>
      <pubDate>Sun, 15 Aug 2010 00:37:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-converting-sparse-matrix-format-in-MKL-using-mkl-dcsrcoo/m-p/838207#M6261</guid>
      <dc:creator>sagarmatha</dc:creator>
      <dc:date>2010-08-15T00:37:18Z</dc:date>
    </item>
    <item>
      <title>Problem converting sparse matrix format in MKL using mkl_dcsrco</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-converting-sparse-matrix-format-in-MKL-using-mkl-dcsrcoo/m-p/838208#M6262</link>
      <description>any intel representative please !!&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Aug 2010 20:48:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-converting-sparse-matrix-format-in-MKL-using-mkl-dcsrcoo/m-p/838208#M6262</guid>
      <dc:creator>sagarmatha</dc:creator>
      <dc:date>2010-08-17T20:48:21Z</dc:date>
    </item>
    <item>
      <title>Problem converting sparse matrix format in MKL using mkl_dcsrco</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-converting-sparse-matrix-format-in-MKL-using-mkl-dcsrcoo/m-p/838209#M6263</link>
      <description>Hello,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;In fact,mkl_?csrcoo routine in MKL 10.2 and earlier versions didn't sorted column indices withing a row. So, in order to use CSR arrays from the converter in PARDISO you'd need to sort each interval of ja array for each row i: ja(ia(i):ia(i+1)-1)&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;However, MKL 10.3.Beta supports this feature. If you want, you may download it and follow the documentation:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;if job(1)=2, the matrix in the coordinate format isconverted to the CSR format, and the column indices in CSR&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;representation are sorted in the increasing order within eachrow.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Regards,&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Konstantin&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 18 Aug 2010 08:06:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-converting-sparse-matrix-format-in-MKL-using-mkl-dcsrcoo/m-p/838209#M6263</guid>
      <dc:creator>Konstantin_A_Intel</dc:creator>
      <dc:date>2010-08-18T08:06:44Z</dc:date>
    </item>
    <item>
      <title>Problem converting sparse matrix format in MKL using mkl_dcsrco</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-converting-sparse-matrix-format-in-MKL-using-mkl-dcsrcoo/m-p/838210#M6264</link>
      <description>thanks a lot for the suggestion. I'll try 10.3.&lt;BR /&gt;sagarm&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Aug 2010 20:59:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-converting-sparse-matrix-format-in-MKL-using-mkl-dcsrcoo/m-p/838210#M6264</guid>
      <dc:creator>sagarmatha</dc:creator>
      <dc:date>2010-08-18T20:59:01Z</dc:date>
    </item>
    <item>
      <title>Problem converting sparse matrix format in MKL using mkl_dcsrco</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-converting-sparse-matrix-format-in-MKL-using-mkl-dcsrcoo/m-p/838211#M6265</link>
      <description>please try to use &lt;A href="https://registrationcenter.intel.com/RegCenter/AutoGen.aspx?ProductID=1459&amp;amp;AccountID=&amp;amp;EmailID=&amp;amp;ProgramID=&amp;amp;RequestDt=&amp;amp;rm=BETA&amp;amp;lang="&gt;this link&lt;/A&gt; to get 10.3 beta faster..</description>
      <pubDate>Thu, 19 Aug 2010 04:52:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-converting-sparse-matrix-format-in-MKL-using-mkl-dcsrcoo/m-p/838211#M6265</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-08-19T04:52:44Z</dc:date>
    </item>
    <item>
      <title>Problem converting sparse matrix format in MKL using mkl_dcsrco</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-converting-sparse-matrix-format-in-MKL-using-mkl-dcsrcoo/m-p/838212#M6266</link>
      <description>thanks Gennady</description>
      <pubDate>Thu, 19 Aug 2010 15:51:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-converting-sparse-matrix-format-in-MKL-using-mkl-dcsrcoo/m-p/838212#M6266</guid>
      <dc:creator>sagarmatha</dc:creator>
      <dc:date>2010-08-19T15:51:08Z</dc:date>
    </item>
    <item>
      <title>Problem converting sparse matrix format in MKL using mkl_dcsrco</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-converting-sparse-matrix-format-in-MKL-using-mkl-dcsrcoo/m-p/838213#M6267</link>
      <description>I am using Intel MKL 10.3.11 and its still a problem. Any ideas when this fix will make it into the release?</description>
      <pubDate>Wed, 29 Aug 2012 19:32:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-converting-sparse-matrix-format-in-MKL-using-mkl-dcsrcoo/m-p/838213#M6267</guid>
      <dc:creator>Nicky_Sandhu</dc:creator>
      <dc:date>2012-08-29T19:32:55Z</dc:date>
    </item>
  </channel>
</rss>

