<?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: Handling of duplicates in COO matrices in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Handling-of-duplicates-in-COO-matrices/m-p/1521224#M35059</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Doriv4l,&lt;BR /&gt;&lt;BR /&gt;Yes, great that your issue is resolved! I can confirm that the Developer Reference will be updated. It might take a while before the change is visible on the webpage though.&lt;BR /&gt;&lt;BR /&gt;Thanks for the feedback, it's always appreciated.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Nicolas&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Sep 2023 18:22:16 GMT</pubDate>
    <dc:creator>noffermans</dc:creator>
    <dc:date>2023-09-06T18:22:16Z</dc:date>
    <item>
      <title>Handling of duplicates in COO matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Handling-of-duplicates-in-COO-matrices/m-p/1519601#M35016</link>
      <description>&lt;P&gt;Does Intel MKL sum up duplicates when converting COO matrices to CSR matrices via&amp;nbsp;mkl_sparse_convert_csr? (This essential information is missing from the web documentation...)&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 06:42:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Handling-of-duplicates-in-COO-matrices/m-p/1519601#M35016</guid>
      <dc:creator>cpmech</dc:creator>
      <dc:date>2023-09-01T06:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Handling of duplicates in COO matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Handling-of-duplicates-in-COO-matrices/m-p/1519627#M35018</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Yes, &lt;SPAN&gt;mkl_sparse_convert_csr performs a sum reduction on duplicates.&lt;BR /&gt;&lt;BR /&gt;This can be easily verified with a simple example:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;#define M      2
#define N      2
#define NNZ    3
      MKL_INT m = M, n=N, nnz=NNZ;

      MKL_INT ia_coo[NNZ] = {0, 0, 1};
      MKL_INT ja_coo[NNZ] = {0, 0, 0};
      double a_coo[NNZ] = {1.0, 2.0, 3.0};
      sparse_matrix_t Acoo;
      sparse_status_t status_create = mkl_sparse_d_create_coo(&amp;amp;Acoo, 0, m, n, nnz, ia_coo, ja_coo, a_coo);
      printf("Status create : %d\n", status_create);

      sparse_matrix_t Acsr;
      sparse_status_t status_convert = mkl_sparse_convert_csr (Acoo, SPARSE_OPERATION_NON_TRANSPOSE, &amp;amp;Acsr);
      printf("Status convert : %d\n", status_convert);

      sparse_index_base_t indexing;
      MKL_INT *iab_csr, *iae_csr, *ja_csr;
      double *a_csr;
      sparse_status_t status_export = mkl_sparse_d_export_csr(Acsr, &amp;amp;indexing, &amp;amp;m, &amp;amp;n, &amp;amp;iab_csr, &amp;amp;iae_csr, &amp;amp;ja_csr, &amp;amp;a_csr);
      printf("Status export : %d\n", status_export);

      MKL_INT i, j;
      printf("Matrix converted to CSR format:\n");
      for (i=0; i&amp;lt;m; i++) {
          MKL_INT jab=iab_csr[i]-indexing, jae=iae_csr[i]-indexing;
          for (j=jab; j&amp;lt;jae; j++) {
              MKL_INT col = ja_csr[j];
              printf("  A[%lld, %lld] = %lf\n", i+indexing, col, a_csr[j]);
          }
      }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Nicolas&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 18:16:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Handling-of-duplicates-in-COO-matrices/m-p/1519627#M35018</guid>
      <dc:creator>noffermans</dc:creator>
      <dc:date>2023-09-06T18:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Handling of duplicates in COO matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Handling-of-duplicates-in-COO-matrices/m-p/1519645#M35019</link>
      <description>&lt;P&gt;Hi, thank you, much appreciated! I'm wondering if we can have the (web) documentation updated with this information so our reviewing/quality-control team can accept our pull-requests more easily. Best, Doriv4l.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 09:53:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Handling-of-duplicates-in-COO-matrices/m-p/1519645#M35019</guid>
      <dc:creator>cpmech</dc:creator>
      <dc:date>2023-09-01T09:53:43Z</dc:date>
    </item>
    <item>
      <title>Re:Handling of duplicates in COO matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Handling-of-duplicates-in-COO-matrices/m-p/1521174#M35056</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It’s great to know that the issue has been resolved, in case you run into any other issues please feel free to create a new thread&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&lt;EM&gt;I'm wondering if we can have the (web) documentation updated with this information&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Sure, We will inform the concerned team regarding the documentation update. Thank you for your valuable suggestions.&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>Wed, 06 Sep 2023 16:21:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Handling-of-duplicates-in-COO-matrices/m-p/1521174#M35056</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2023-09-06T16:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Handling of duplicates in COO matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Handling-of-duplicates-in-COO-matrices/m-p/1521224#M35059</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Doriv4l,&lt;BR /&gt;&lt;BR /&gt;Yes, great that your issue is resolved! I can confirm that the Developer Reference will be updated. It might take a while before the change is visible on the webpage though.&lt;BR /&gt;&lt;BR /&gt;Thanks for the feedback, it's always appreciated.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Nicolas&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 18:22:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Handling-of-duplicates-in-COO-matrices/m-p/1521224#M35059</guid>
      <dc:creator>noffermans</dc:creator>
      <dc:date>2023-09-06T18:22:16Z</dc:date>
    </item>
  </channel>
</rss>

