Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

question: mkl_dcsrmv : matdescra

kimjoonshikgmail_com
1,009 Views
Would someone help me ?
I need to do matrix-vector multiplication and for that tried to use mkl_dcsrmv( ) functions. My sparse matrix is compressed sparse row format and NOT square matrix. not upper triangular not lower triangular not diagonal. That is just general sparse matrix.

then what 'matdescra' options do I have to use ? for
matdescra[0], matdescra[1], ~ matdescra[3] ?

for matdecra[1], In the manual I can find only 'L', or 'U' options for lower and upper triangular matrix and there are not an option for neither of them.

Thank you.
Joon.
0 Kudos
1 Solution
ArturGuzik
Valued Contributor I
1,009 Views
Would someone help me ?
I need to do matrix-vector multiplication and for that tried to use mkl_dcsrmv( ) functions. My sparse matrix is compressed sparse row format and NOT square matrix. not upper triangular not lower triangular not diagonal. That is just general sparse matrix.

then what 'matdescra' options do I have to use ? for
matdescra[0], matdescra[1], ~ matdescra[3] ?

for matdecra[1], In the manual I can find only 'L', or 'U' options for lower and upper triangular matrix and there are not an option for neither of them.

Thank you.
Joon.
For general matrix you just put 'G' as first element, then 2nd, and 3rd are ignored anyway, so put anything, and 'F' (for 1-based indexing) or 'C' (for zero-based) as the last one.

See Table Possible Combinations of Element Values of the Parameter matdescra.

A.

View solution in original post

0 Kudos
1 Reply
ArturGuzik
Valued Contributor I
1,010 Views
Would someone help me ?
I need to do matrix-vector multiplication and for that tried to use mkl_dcsrmv( ) functions. My sparse matrix is compressed sparse row format and NOT square matrix. not upper triangular not lower triangular not diagonal. That is just general sparse matrix.

then what 'matdescra' options do I have to use ? for
matdescra[0], matdescra[1], ~ matdescra[3] ?

for matdecra[1], In the manual I can find only 'L', or 'U' options for lower and upper triangular matrix and there are not an option for neither of them.

Thank you.
Joon.
For general matrix you just put 'G' as first element, then 2nd, and 3rd are ignored anyway, so put anything, and 'F' (for 1-based indexing) or 'C' (for zero-based) as the last one.

See Table Possible Combinations of Element Values of the Parameter matdescra.

A.

0 Kudos
Reply