<?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 Rather than contend with a 10 in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-Sparse-matrix-vector-multiplication-using-MKL-DIA/m-p/1022997#M19783</link>
    <description>&lt;P&gt;Rather than contend with a 10,000 X 10,000 matrix as the first test case, perhaps we should start with a simple, short example. Since I could not find an example in the files distributed in examples_core.zip in the MKL/examples directory, I made one up.&lt;/P&gt;

&lt;P&gt;The diagonal-storage matrix from the MKL Ref. Man. (https://software.intel.com/en-us/node/522243#MKL_APPA_SMSF_6 ) is multiplied with a vector with the following code.&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;// MECEJ4 10/14/2014

#include &amp;lt;stdio.h&amp;gt;
#define N 5
#define NDIAG 5

int main(){

   int dist&lt;N&gt; = { -3,-1, 0, 1, 2 };
   float u = 1e37;
   float val[N*NDIAG] =    { u, u, u,-4, 8,
                             u,-2, 0, 2, 0,
                             1, 5, 4, 7,-5,
                            -1, 0, 6, 0, u,
                            -3, 0, 4, u, u };
   float x&lt;N&gt; = { 1, 2, 3, 4, 5 }, y&lt;N&gt;;
   char transa = 'N';
   int n=N, ndiag=NDIAG;

   mkl_sdiagemv(&amp;amp;transa, &amp;amp;n, val, &amp;amp;n, dist, &amp;amp;ndiag, x, y);

   printf(" %12.4e %12.4e %12.4e %12.4e %12.4e\n",y[0],y[1],y[2],y[3],y[4]);
}
&lt;/N&gt;&lt;/N&gt;&lt;/N&gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Oct 2014 13:25:00 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2014-10-14T13:25:00Z</dc:date>
    <item>
      <title>Help with Sparse matrix vector multiplication using MKL DIA routine</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-Sparse-matrix-vector-multiplication-using-MKL-DIA/m-p/1022991#M19777</link>
      <description>&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 17.8048000335693px;"&gt;I am using the MKL library to perform the sparse matrix vector multiplication using diagonal format, When I use the MKL mkl_sdiagemv function I get a "MKL ERROR: Parameter 4 was incorrect on entry to MKL_SDIAGEMV. " error.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;void mm_read(char* filename, int *m, int *n, int *nnz, int **rowptrs, int **colinds, float **vals, float **adia, int **distance, int idiag, int ndiag) {
// open file 
FILE* mmfile = fopen(filename, "r");
assert(mmfile != NULL &amp;amp;&amp;amp; "Read matrix file.");

// read MatrixMarket header
int status;
MM_typecode matcode;
status = mm_read_banner(mmfile, &amp;amp;matcode);
assert(status == 0 &amp;amp;&amp;amp; "Parsed banner.");



status = mm_read_mtx_crd_size(mmfile, m, n, nnz);
assert(status == 0 &amp;amp;&amp;amp; "Parsed matrix m, n, and nnz.");
printf("- matrix is %d-by-%d with %d nnz.\n", *m, *n, *nnz);


int *coo_rows = (int*) malloc(*nnz * sizeof(int));
int *coo_cols = (int*) malloc(*nnz * sizeof(int));
float *coo_vals = (float*) malloc(*nnz * sizeof(float));

// read COO values
int i = 0;
for ( i = 0; i &amp;lt; *nnz; i++)
    status = fscanf(mmfile, "%d %d %g\n",
        &amp;amp;coo_rows&lt;I&gt;, &amp;amp;coo_cols&lt;I&gt;, &amp;amp;coo_vals&lt;I&gt;);


*rowptrs = (int*) malloc((*m+1)*sizeof(int));
*colinds = (int*) malloc(*nnz*sizeof(int));
*vals = (float*) malloc(*nnz*sizeof(int));

// convert to CSR matrix
int info;
int job[] = {
    2, // job(1)=2 (coo-&amp;gt;csr with sorting)
    1, // job(2)=1 (one-based indexing for csr matrix)
    1, // job(3)=1 (one-based indexing for coo matrix)
    0, // empty
    *nnz, // job(5)=nnz (sets nnz for csr matrix)
    0  // job(6)=0 (all output arrays filled)
};

       mkl_scsrcoo(  job,   m, *vals,  *colinds, *rowptrs,  nnz,   coo_vals,   coo_rows,    coo_cols,  &amp;amp;info);
      assert(info == 0 &amp;amp;&amp;amp; "Converted COO-&amp;gt;CSR");



 // DIA matrix dimensions and values    

ndiag = 4;
idiag = 3;

*adia = (float*) malloc(*nnz * idiag * sizeof(int));
*distance = (int* ) malloc(idiag * sizeof(int));


       int job1[] = {
    0, // job(0)=2 
    1, // job(1)=1 
    1, // job(2)=1 
    2, // empty3
    *nnz, // empty4
    10, // job(5)=nnz 
};

mkl_scsrdia (job1, m, *vals, *colinds, *rowptrs,  *adia,  &amp;amp;ndiag, *distance, &amp;amp;idiag, *vals, *colinds, *rowptrs, &amp;amp;info);
  assert(info == 0 &amp;amp;&amp;amp; "Converted CSR-&amp;gt;DIA");


// free COO matrix
free(coo_rows);
free(coo_cols);
free(coo_vals);   }



 float * randvec(int n) {
float *v = (float*) malloc(n * sizeof(float));
int i = 0;
for (i = 0; i &amp;lt; n; i++)
    v&lt;I&gt; = rand() / (float) RAND_MAX;
return v;
}


   int main(int argc, char* argv[]) {

// require filename for matrix to test
if (argc != 2) {
    fprintf(stderr, "Usage: %s MATRIX.mm\n", argv[0]);
    exit(1);
}

int m, n, nnz;
int *rowptrs, *colinds;
float *vals;

float *adia;
int  *distance;
int idiag,  ndiag;
// read matrix from file
mm_read(argv[1], &amp;amp;m, &amp;amp;n, &amp;amp;nnz, &amp;amp;rowptrs, &amp;amp;colinds, &amp;amp;vals, &amp;amp;adia, &amp;amp;distance, &amp;amp;idiag, &amp;amp;ndiag);

// allocate vectors for computation
float *v = randvec(n);
float *cpu_answer = (float*) malloc(m*sizeof(float));


struct timeval start, end;
printf (" Running Intel(R) MKL from 1 to %i threads \n\n", mkl_get_max_threads());


mkl_sdiagemv ((char*)"N", &amp;amp;m, adia, &amp;amp;idiag, distance, &amp;amp;ndiag, v, cpu_answer);


// release memory
free(rowptrs);
free(colinds);
free(vals);
free(cpu_answer);
free(v);
free(adia);
free(distance);

return 0; }&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2014 16:34:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-Sparse-matrix-vector-multiplication-using-MKL-DIA/m-p/1022991#M19777</guid>
      <dc:creator>Hazem_A_</dc:creator>
      <dc:date>2014-10-13T16:34:30Z</dc:date>
    </item>
    <item>
      <title>I am not familiar with the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-Sparse-matrix-vector-multiplication-using-MKL-DIA/m-p/1022992#M19778</link>
      <description>&lt;P&gt;I am not familiar with the Matrix Market conventions, and you have not shown the #include statements in your program, so it is not possible for me to verify if the arguments being passed to mkl_sdiagemv() are correct.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2014 19:08:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-Sparse-matrix-vector-multiplication-using-MKL-DIA/m-p/1022992#M19778</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2014-10-13T19:08:00Z</dc:date>
    </item>
    <item>
      <title>Sorry about that here are the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-Sparse-matrix-vector-multiplication-using-MKL-DIA/m-p/1022993#M19779</link>
      <description>&lt;P&gt;Sorry about that here are the included header files:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;#include &amp;lt;math.h&amp;gt;
#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;stdlib.h&amp;gt;
#include &amp;lt;assert.h&amp;gt;
#include &amp;lt;float.h&amp;gt;
#include &amp;lt;sys/time.h&amp;gt;
#include "mmio.h"
#include "mmio.c"
#include &amp;lt;mkl_spblas.h&amp;gt;


&lt;/PRE&gt;

&lt;P&gt;and you can find the "mmio.c" and "mmio.h" files from this site:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://math.nist.gov/MatrixMarket/mmio-c.html" target="_blank"&gt;http://math.nist.gov/MatrixMarket/mmio-c.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2014 20:48:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-Sparse-matrix-vector-multiplication-using-MKL-DIA/m-p/1022993#M19779</guid>
      <dc:creator>Hazem_A_</dc:creator>
      <dc:date>2014-10-13T20:48:58Z</dc:date>
    </item>
    <item>
      <title>Did you have a specific test</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-Sparse-matrix-vector-multiplication-using-MKL-DIA/m-p/1022994#M19780</link>
      <description>&lt;P&gt;Did you have a specific test matrix to input to the program -- one that gave you the MKL runtime error?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2014 21:26:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-Sparse-matrix-vector-multiplication-using-MKL-DIA/m-p/1022994#M19780</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2014-10-13T21:26:42Z</dc:date>
    </item>
    <item>
      <title>I used the following matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-Sparse-matrix-vector-multiplication-using-MKL-DIA/m-p/1022995#M19781</link>
      <description>&lt;P&gt;I used the following matrix&amp;nbsp;https://docs.google.com/file/d/0B828bj6uvoMVcEdjaTFfNUdyYmM/edit&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;which has three diagonals and consists of&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;2,999,997 non zero elements in a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;1,000,000&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;1,000,000&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;sparse matrix&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2014 00:35:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-Sparse-matrix-vector-multiplication-using-MKL-DIA/m-p/1022995#M19781</guid>
      <dc:creator>Hazem_A_</dc:creator>
      <dc:date>2014-10-14T00:35:46Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-Sparse-matrix-vector-multiplication-using-MKL-DIA/m-p/1022996#M19782</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I can't build your reproducer:&lt;/P&gt;
&lt;P&gt;test.cpp(102): error: argument of type "int *" is incompatible with parameter of type "int"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mm_read(argv[1], &amp;amp;m, &amp;amp;n, &amp;amp;nnz, &amp;amp;rowptrs, &amp;amp;colinds, &amp;amp;vals, &amp;amp;adia, &amp;amp;distance, &amp;amp;idiag, &amp;amp;ndiag);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;
&lt;P&gt;test.cpp(102): error: argument of type "int *" is incompatible with parameter of type "int"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mm_read(argv[1], &amp;amp;m, &amp;amp;n, &amp;amp;nnz, &amp;amp;rowptrs, &amp;amp;colinds, &amp;amp;vals, &amp;amp;adia, &amp;amp;distance, &amp;amp;idiag, &amp;amp;ndiag);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;BR /&gt;Parameters&amp;nbsp;are declared in the function as&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;int&lt;/FONT&gt; &lt;FONT face="Courier New"&gt;&lt;CODE class="cpp plain"&gt;idiag, &lt;/CODE&gt;&lt;CODE class="cpp color1 bold"&gt;int&lt;/CODE&gt;&lt;/FONT&gt; &lt;CODE class="cpp plain"&gt;&lt;FONT face="Courier New"&gt;ndiag)&lt;/FONT&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class="cpp plain"&gt;&lt;FONT face="Courier New"&gt;But&amp;nbsp;in the call you try to use pointers:&lt;/FONT&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class="cpp plain"&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;amp;idiag, &amp;amp;ndiag);&amp;nbsp;&lt;/FONT&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class="cpp plain"&gt;&lt;FONT face="Courier New"&gt;Regards,&lt;/FONT&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class="cpp plain"&gt;&lt;FONT face="Courier New"&gt;Sergey&lt;/FONT&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class="cpp plain"&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2014 10:46:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-Sparse-matrix-vector-multiplication-using-MKL-DIA/m-p/1022996#M19782</guid>
      <dc:creator>Sergey_P_Intel2</dc:creator>
      <dc:date>2014-10-14T10:46:00Z</dc:date>
    </item>
    <item>
      <title>Rather than contend with a 10</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-Sparse-matrix-vector-multiplication-using-MKL-DIA/m-p/1022997#M19783</link>
      <description>&lt;P&gt;Rather than contend with a 10,000 X 10,000 matrix as the first test case, perhaps we should start with a simple, short example. Since I could not find an example in the files distributed in examples_core.zip in the MKL/examples directory, I made one up.&lt;/P&gt;

&lt;P&gt;The diagonal-storage matrix from the MKL Ref. Man. (https://software.intel.com/en-us/node/522243#MKL_APPA_SMSF_6 ) is multiplied with a vector with the following code.&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;// MECEJ4 10/14/2014

#include &amp;lt;stdio.h&amp;gt;
#define N 5
#define NDIAG 5

int main(){

   int dist&lt;N&gt; = { -3,-1, 0, 1, 2 };
   float u = 1e37;
   float val[N*NDIAG] =    { u, u, u,-4, 8,
                             u,-2, 0, 2, 0,
                             1, 5, 4, 7,-5,
                            -1, 0, 6, 0, u,
                            -3, 0, 4, u, u };
   float x&lt;N&gt; = { 1, 2, 3, 4, 5 }, y&lt;N&gt;;
   char transa = 'N';
   int n=N, ndiag=NDIAG;

   mkl_sdiagemv(&amp;amp;transa, &amp;amp;n, val, &amp;amp;n, dist, &amp;amp;ndiag, x, y);

   printf(" %12.4e %12.4e %12.4e %12.4e %12.4e\n",y[0],y[1],y[2],y[3],y[4]);
}
&lt;/N&gt;&lt;/N&gt;&lt;/N&gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2014 13:25:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-Sparse-matrix-vector-multiplication-using-MKL-DIA/m-p/1022997#M19783</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2014-10-14T13:25:00Z</dc:date>
    </item>
    <item>
      <title>Thank you very much mecej4 as</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-Sparse-matrix-vector-multiplication-using-MKL-DIA/m-p/1022998#M19784</link>
      <description>&lt;P&gt;Thank you very much&amp;nbsp;&lt;A href="https://software.intel.com/en-us/user/9972" style="font-size: 11px; line-height: 16.5px; background-color: rgb(238, 238, 238);"&gt;mecej4&lt;/A&gt;&amp;nbsp;as my error says I had a wrong value passed to the fourth parameter in the&amp;nbsp;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; line-height: 14.3088006973267px; background-color: rgb(248, 248, 248);"&gt;mkl_sdiagemv.&lt;/SPAN&gt;&amp;nbsp;Your example hinted me to what should I pass instead.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2014 15:48:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-Sparse-matrix-vector-multiplication-using-MKL-DIA/m-p/1022998#M19784</guid>
      <dc:creator>Hazem_A_</dc:creator>
      <dc:date>2014-10-14T15:48:49Z</dc:date>
    </item>
  </channel>
</rss>

