<?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 Hello all, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-using-MKL-SCOOSV-to-solve-a-sparse-matrix/m-p/888852#M10237</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;

&lt;P&gt;I don't understand how Dat Chu could solve the problem. The description of matdescra for mkl_scoosv is cryptic to me.&lt;/P&gt;

&lt;P&gt;His matrix (as mine today) is neither diagonal (D) nor triangular (T): in my view it is general (G), but this does not work.&lt;/P&gt;

&lt;P&gt;Question: Given the matrix of Dat Chu from 3/3/2009, what is the &lt;EM&gt;complete&lt;/EM&gt; correct string in matdescra (fortran) for mkl_scoosv?&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Johannes&lt;/P&gt;</description>
    <pubDate>Sat, 01 Sep 2018 21:48:38 GMT</pubDate>
    <dc:creator>Johannes_A_</dc:creator>
    <dc:date>2018-09-01T21:48:38Z</dc:date>
    <item>
      <title>Problem using MKL_SCOOSV to solve a sparse matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-using-MKL-SCOOSV-to-solve-a-sparse-matrix/m-p/888845#M10230</link>
      <description>Hello everyone,&lt;BR /&gt;&lt;BR /&gt;I am trying to use Sparse BLAS to solve a least-square system (more equations than unknown). I am using Coordinate format for my sparse matrix and use mkl_scoosv as my solver function.&lt;BR /&gt;&lt;BR /&gt;When I try to run, I receive an error: MKL ERROR: Parameter 4 was incorrect on entry to MKL_SCOOSV&lt;BR /&gt;&lt;BR /&gt;I have tried different combination of matdescra but the error is still there and there is no result written to my solution vector. Am I missing something really fundamental here?&lt;BR /&gt;&lt;BR /&gt;I am attaching the small piece of code below. Thank you for your time.&lt;BR /&gt;
&lt;PRE&gt;[cpp]	// we try to solve small sparse matrix in least square sense
	/* Our matrix is
	 * 1 2 3 4   1
	 * 0 1 2 0   2
	 * 0 1 2 5   0
	 * 4 -1 0 2  5
	 * 0 0 0 3   6
	 * 1 2 0 0   8
	 * */
	// result should be: [1.599 2.909 -2.373 0.611]

	int nRows = 6;
	int nNonZeros = 15;
	int nCols = 4;
	int nRhs = 1;

	// zero-based indexing (C-style)
	int rowIdx[15] = {0, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5};
	int colIdx[15] = {0, 1, 2, 3, 1, 2, 1, 2, 3, 0, 1, 3, 3, 0, 1};
	float values[15] = {1, 2, 3, 4, 1, 2, 1, 2, 5, 4, -1, 2, 3, 1 ,2};
	float rhs[6] = {1, 2, 0, 5, 6, 8};
	float sol[4];

	// call sparse matrix solver
	float alpha = 1;
	char transpose = 'n';
	char matdescra[6] = "G  C";
	mkl_scoosv(&amp;amp;transpose, &amp;amp;nRows, , matdescra, values, rowIdx, colIdx, &amp;amp;nNonZeros, rhs, sol);

	printf("Solution is [%f %f %f %f %f]n", sol[0], sol[1], sol[2], sol[3], sol[4]);[/cpp]&lt;/PRE&gt;
&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Mar 2009 22:01:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-using-MKL-SCOOSV-to-solve-a-sparse-matrix/m-p/888845#M10230</guid>
      <dc:creator>Dat_Chu</dc:creator>
      <dc:date>2009-03-03T22:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using MKL_SCOOSV to solve a sparse matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-using-MKL-SCOOSV-to-solve-a-sparse-matrix/m-p/888846#M10231</link>
      <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
&lt;P&gt;According to the Intel MKL Reference Manual, sparse matrix can be general and represent the whole square matrix but for NIST like triangular routines, matdescra(1) must be T' or D' as it is described in the table 2.7 entitled "Possible combinations of element values of the parameter matdescra" (see page 216).&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Victor&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2009 10:49:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-using-MKL-SCOOSV-to-solve-a-sparse-matrix/m-p/888846#M10231</guid>
      <dc:creator>Victor_Gladkikh</dc:creator>
      <dc:date>2009-03-05T10:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using MKL_SCOOSV to solve a sparse matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-using-MKL-SCOOSV-to-solve-a-sparse-matrix/m-p/888847#M10232</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/415602"&gt;Victor Gladkikh (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;According to the Intel MKL Reference Manual, sparse matrix can be general and represent the whole square matrix but for NIST like triangular routines, matdescra(1) must be T' or D' as it is described in the table 2.7 entitled "Possible combinations of element values of the parameter matdescra" (see page 216).&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Victor&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Hi Victor,&lt;BR /&gt;&lt;BR /&gt;Thanks for the quick response. I found out the problem yesterday night as well and have not been able to reply to this thread. I guess I will have to wait for MKL to include a routine for matrix multiplication between two sparse matrices. That way I can solve my rectangular sparse matrix using DSS.&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Mar 2009 16:02:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-using-MKL-SCOOSV-to-solve-a-sparse-matrix/m-p/888847#M10232</guid>
      <dc:creator>Dat_Chu</dc:creator>
      <dc:date>2009-03-05T16:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using MKL_SCOOSV to solve a sparse matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-using-MKL-SCOOSV-to-solve-a-sparse-matrix/m-p/888848#M10233</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;MKL Sparse BLAS 10.1 provides routines for matrix multiplication and addition between two sparse matrices. The routines are provided for all types of precisions. However these routines are only for the compressed sparse row format.&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Sergey</description>
      <pubDate>Fri, 06 Mar 2009 14:54:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-using-MKL-SCOOSV-to-solve-a-sparse-matrix/m-p/888848#M10233</guid>
      <dc:creator>Sergey_K_Intel1</dc:creator>
      <dc:date>2009-03-06T14:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using MKL_SCOOSV to solve a sparse matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-using-MKL-SCOOSV-to-solve-a-sparse-matrix/m-p/888849#M10234</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/93645"&gt;Sergey Kuznetsov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt; &lt;BR /&gt;MKL Sparse BLAS 10.1 provides routines for matrix multiplication and addition between two sparse matrices. The routines are provided for all types of precisions. However these routines are only for the compressed sparse row format.&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Sergey&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Hi Sergey,&lt;BR /&gt;&lt;BR /&gt;Thanks for the information. I have gone through the documentation of Sparse BLAS one more time in search for the routine that you mentioned but still without any luck. Would you mind give me the routine name?&lt;BR /&gt;&lt;BR /&gt;Also, on another note, &lt;A href="http://www.intel.com/software/products/mkl/docs/WebHelp/bla/bla_RSO.html"&gt;this page of Sparse BLAS&lt;/A&gt; suggest that there is no multiplication routine available for sparse matrices.&lt;BR /&gt;&lt;BR /&gt;Thanks for your time.&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Mar 2009 17:15:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-using-MKL-SCOOSV-to-solve-a-sparse-matrix/m-p/888849#M10234</guid>
      <dc:creator>Dat_Chu</dc:creator>
      <dc:date>2009-03-09T17:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using MKL_SCOOSV to solve a sparse matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-using-MKL-SCOOSV-to-solve-a-sparse-matrix/m-p/888850#M10235</link>
      <description>&lt;DIV style="margin:0px;"&gt;Please see &lt;BR /&gt;mkl_?csrmultcsr&lt;BR /&gt;where ? means s (real), d (double), c (single complex), z (double comlex)&lt;BR /&gt;Computes product of two sparse matrices stored in the CSR format (3-array variation) with one-based indexing.&lt;BR /&gt;--Gennady&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Mar 2009 19:11:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-using-MKL-SCOOSV-to-solve-a-sparse-matrix/m-p/888850#M10235</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-03-09T19:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using MKL_SCOOSV to solve a sparse matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-using-MKL-SCOOSV-to-solve-a-sparse-matrix/m-p/888851#M10236</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/334681"&gt;Gennady Fedorov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;Please see &lt;BR /&gt;mkl_?csrmultcsr&lt;BR /&gt;where ? means s (real), d (double), c (single complex), z (double comlex)&lt;BR /&gt;Computes product of two sparse matrices stored in the CSR format (3-array variation) with one-based indexing.&lt;BR /&gt;--Gennady&lt;/DIV&gt;
&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Thank you, Gennady. Now I can do transpose(A) * A then run DSS to solve my matrix.&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Mar 2009 21:29:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-using-MKL-SCOOSV-to-solve-a-sparse-matrix/m-p/888851#M10236</guid>
      <dc:creator>Dat_Chu</dc:creator>
      <dc:date>2009-03-09T21:29:22Z</dc:date>
    </item>
    <item>
      <title>Hello all,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-using-MKL-SCOOSV-to-solve-a-sparse-matrix/m-p/888852#M10237</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;

&lt;P&gt;I don't understand how Dat Chu could solve the problem. The description of matdescra for mkl_scoosv is cryptic to me.&lt;/P&gt;

&lt;P&gt;His matrix (as mine today) is neither diagonal (D) nor triangular (T): in my view it is general (G), but this does not work.&lt;/P&gt;

&lt;P&gt;Question: Given the matrix of Dat Chu from 3/3/2009, what is the &lt;EM&gt;complete&lt;/EM&gt; correct string in matdescra (fortran) for mkl_scoosv?&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Johannes&lt;/P&gt;</description>
      <pubDate>Sat, 01 Sep 2018 21:48:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-using-MKL-SCOOSV-to-solve-a-sparse-matrix/m-p/888852#M10237</guid>
      <dc:creator>Johannes_A_</dc:creator>
      <dc:date>2018-09-01T21:48:38Z</dc:date>
    </item>
    <item>
      <title>Johannes: This is an old</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-using-MKL-SCOOSV-to-solve-a-sparse-matrix/m-p/888853#M10238</link>
      <description>&lt;P&gt;Johannes: This is an old thread that you brought back to life. The code that Dat Chu posted was not adequate for the stated purpose. His final comment, "&lt;SPAN style="font-size: 11.382px;"&gt;Now I can do transpose(A) * A then run DSS to solve my matrix" makes me suspect that he was forming the normal equations for solving the least squares problem (along the lines described in &lt;A href="https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/298477" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/298477&lt;/A&gt; ); if so, that was not a good way of obtaining a least-squares solution.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;The routines mkl_?coosv are for solving A.x = α.y, where A is a &lt;STRONG&gt;square&lt;/STRONG&gt; matrix in COO storage format, x and y are vectors, and&amp;nbsp;α is a scalar.&lt;/P&gt;

&lt;P&gt;When A is not square,&amp;nbsp; and has more rows than columns, these routines can only be used after A has been decomposed (using a factorization such as Q-R) and both sides of the overdetermined equation set A.x = b have been pre-multiplied by Q&lt;SUP&gt;T&lt;/SUP&gt;, leaving a triangular system to be solved.&lt;/P&gt;

&lt;P&gt;Furthermore, as of now (2018) mkl_?coosv is marked "deprecated".&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Perhaps it would be more useful if you started a new thread in which you described the nature of the problem that you wish to solve now.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 11:30:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-using-MKL-SCOOSV-to-solve-a-sparse-matrix/m-p/888853#M10238</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2018-09-02T11:30:00Z</dc:date>
    </item>
  </channel>
</rss>

