<?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 getting mkl_scsrsv function to work. in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-getting-mkl-scsrsv-function-to-work/m-p/1072046#M22315</link>
    <description>&lt;P&gt;Hi, I am just trying to solve a simple linear equation with this test program. I am using MKL 2017 with Microsoft Visual Studio and have tested other functions with the array matdescra with them working.&amp;nbsp;&lt;BR /&gt;
	&lt;BR /&gt;
	In the documentation, I tried following:&amp;nbsp;void mkl_scsrsv (const char *transa , const MKL_INT *m , const float *alpha , const char *matdescra , const float *val , const MKL_INT *indx , const MKL_INT *pntrb , const MKL_INT *pntre , const float *x , float *y );&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;stdlib.h&amp;gt;
#include "mkl.h"


#define NNZ_A 12
#define M_A 6



/* 
	This sample program tries to compute:

	[ 3.0, 0.0, 0.0, 4.0, 0.0, 0.0 ]                [1]
	[ 0.0, 5.0, 0.0, 0.0, 0.0, 1.0 ]                [4]
	[ 0.0, 0.0, 0.0, 6.0, 0.0, 0.0 ]      X   =     [6]
	[ 0.0, 10.0, 0.0, 0.0, 11.0, 0.0 ]              [8]
	[ 12.0, 0.0, 0.0, 1.0, 2.0, 3.0 ]		[2]
	[ 0.0, 0.0, 8.0, 0.0, 0.0, 0.0 ]                [4]

*/

int main() {

	float			A[NNZ_A] = { 3.0, 4.0, 5.0, 1.0, 6.0, 10.0, 11.0, 12.0, 1.0, 2.0, 3.0, 8.0 };
	MKL_INT			A_col[NNZ_A] = { 1, 4, 2, 6, 4, 2, 5, 1, 4, 5, 6, 3 };
	MKL_INT			A_rowIndex[M_A + 1] = { 1, 3, 5, 6, 8, 12, 13 };
	char			matdescra[6];
	char			transa = 'n';
	MKL_INT m = M_A;
	MKL_INT k = M_A;
	float alpha = 1.0;


	float			X[M_A] = { 1.0, 4.0, 6.0, 8.0, 2.0, 4.0 };
	float			Y[M_A] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

	matdescra[0] = 'g';
	matdescra[3] = 'c'; 


	mkl_scsrsv(&amp;amp;transa, &amp;amp;m, &amp;amp;alpha, matdescra, A, A_col, A_rowIndex, &amp;amp;(A_rowIndex[1]), X, Y);

	
	getchar(); 

	return 0;
}&lt;/PRE&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;Yet I get the error message:&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="font-size: 13.008px;" /&gt;
	&lt;SPAN style="font-size: 13.008px;"&gt;Intel MKL ERROR: Parameter 4 was incorrect on entry to MKL_SCSRSV.&lt;BR /&gt;
	&lt;BR /&gt;
	I just cannot get matdescra working on the CSR function for some reason. I appreciate any help, I have been stuck on what to do.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2017 07:08:34 GMT</pubDate>
    <dc:creator>Bounrajbanditt_K_</dc:creator>
    <dc:date>2017-01-17T07:08:34Z</dc:date>
    <item>
      <title>Problem getting mkl_scsrsv function to work.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-getting-mkl-scsrsv-function-to-work/m-p/1072046#M22315</link>
      <description>&lt;P&gt;Hi, I am just trying to solve a simple linear equation with this test program. I am using MKL 2017 with Microsoft Visual Studio and have tested other functions with the array matdescra with them working.&amp;nbsp;&lt;BR /&gt;
	&lt;BR /&gt;
	In the documentation, I tried following:&amp;nbsp;void mkl_scsrsv (const char *transa , const MKL_INT *m , const float *alpha , const char *matdescra , const float *val , const MKL_INT *indx , const MKL_INT *pntrb , const MKL_INT *pntre , const float *x , float *y );&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;stdlib.h&amp;gt;
#include "mkl.h"


#define NNZ_A 12
#define M_A 6



/* 
	This sample program tries to compute:

	[ 3.0, 0.0, 0.0, 4.0, 0.0, 0.0 ]                [1]
	[ 0.0, 5.0, 0.0, 0.0, 0.0, 1.0 ]                [4]
	[ 0.0, 0.0, 0.0, 6.0, 0.0, 0.0 ]      X   =     [6]
	[ 0.0, 10.0, 0.0, 0.0, 11.0, 0.0 ]              [8]
	[ 12.0, 0.0, 0.0, 1.0, 2.0, 3.0 ]		[2]
	[ 0.0, 0.0, 8.0, 0.0, 0.0, 0.0 ]                [4]

*/

int main() {

	float			A[NNZ_A] = { 3.0, 4.0, 5.0, 1.0, 6.0, 10.0, 11.0, 12.0, 1.0, 2.0, 3.0, 8.0 };
	MKL_INT			A_col[NNZ_A] = { 1, 4, 2, 6, 4, 2, 5, 1, 4, 5, 6, 3 };
	MKL_INT			A_rowIndex[M_A + 1] = { 1, 3, 5, 6, 8, 12, 13 };
	char			matdescra[6];
	char			transa = 'n';
	MKL_INT m = M_A;
	MKL_INT k = M_A;
	float alpha = 1.0;


	float			X[M_A] = { 1.0, 4.0, 6.0, 8.0, 2.0, 4.0 };
	float			Y[M_A] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

	matdescra[0] = 'g';
	matdescra[3] = 'c'; 


	mkl_scsrsv(&amp;amp;transa, &amp;amp;m, &amp;amp;alpha, matdescra, A, A_col, A_rowIndex, &amp;amp;(A_rowIndex[1]), X, Y);

	
	getchar(); 

	return 0;
}&lt;/PRE&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;Yet I get the error message:&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="font-size: 13.008px;" /&gt;
	&lt;SPAN style="font-size: 13.008px;"&gt;Intel MKL ERROR: Parameter 4 was incorrect on entry to MKL_SCSRSV.&lt;BR /&gt;
	&lt;BR /&gt;
	I just cannot get matdescra working on the CSR function for some reason. I appreciate any help, I have been stuck on what to do.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 07:08:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-getting-mkl-scsrsv-function-to-work/m-p/1072046#M22315</guid>
      <dc:creator>Bounrajbanditt_K_</dc:creator>
      <dc:date>2017-01-17T07:08:34Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-getting-mkl-scsrsv-function-to-work/m-p/1072047#M22316</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
	&lt;BR /&gt;
	The point is that this routine can only be used for sparse upper or lower triangular matrices, so that matdescra[0]='G' is inconsistent.&amp;nbsp;&lt;BR /&gt;
	Please take a look at the description at &lt;A href="https://software.intel.com/ru-ru/node/520828#1AEAB8E0-C05B-46E4-ACDC-203CFA5E668A"&gt;https://software.intel.com/ru-ru/node/520828#1AEAB8E0-C05B-46E4-ACDC-203CFA5E668A&lt;/A&gt;:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P style="margin: 0px 0px 1em; width: 862px; height: 15px; color: rgb(102, 102, 102); text-transform: none; line-height: 1.4; text-indent: 0px; letter-spacing: normal; font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-weight: normal; word-spacing: 0px; display: block; white-space: normal; -ms-word-wrap: break-word; max-width: 100%; box-sizing: border-box; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px;"&gt;&lt;VAR class="varname" style="line-height: 1.6em; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em; font-style: italic; box-sizing: border-box;"&gt;alpha&lt;/VAR&gt; is scalar, &lt;VAR class="varname" style="line-height: 1.6em; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em; font-style: italic; box-sizing: border-box;"&gt;x&lt;/VAR&gt; and &lt;VAR class="varname" style="line-height: 1.6em; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em; font-style: italic; box-sizing: border-box;"&gt;y&lt;/VAR&gt; are vectors, &lt;VAR class="varname" style="line-height: 1.6em; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em; font-style: italic; box-sizing: border-box;"&gt;A&lt;/VAR&gt; is a sparse upper or lower triangular matrix with unit or non-unit main diagonal, &lt;VAR class="varname" style="line-height: 1.6em; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em; font-style: italic; box-sizing: border-box;"&gt;A&lt;/VAR&gt;&lt;SUP style="top: -0.5em; line-height: 0; font-size: 9.75px; vertical-align: baseline; position: relative; box-sizing: border-box;"&gt;T&lt;/SUP&gt; is the transpose of &lt;VAR class="varname" style="line-height: 1.6em; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em; font-style: italic; box-sizing: border-box;"&gt;A&lt;/VAR&gt;.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P style="margin: 0px 0px 1em; width: auto; color: rgb(102, 102, 102); text-transform: none; line-height: 1.4; text-indent: 0px; letter-spacing: normal; font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-weight: normal; word-spacing: 0px; display: block; white-space: normal; -ms-word-wrap: break-word; max-width: 100%; box-sizing: border-box; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px;"&gt;&lt;BR /&gt;
	Best regards,&lt;BR /&gt;
	Maria&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 17:25:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-getting-mkl-scsrsv-function-to-work/m-p/1072047#M22316</guid>
      <dc:creator>MariaZh</dc:creator>
      <dc:date>2017-01-17T17:25:35Z</dc:date>
    </item>
  </channel>
</rss>

