Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
公告
Important Update: Community Platform Migration​. Learn more​>

question: mkl_dcsrmv : matdescra

kimjoonshikgmail_com
2,143 次查看
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 项奖励
1 解答
ArturGuzik
重要分销商 I
2,143 次查看
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 项奖励
1 回复
ArturGuzik
重要分销商 I
2,144 次查看
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 项奖励
回复