You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
staticvoidMain(string[]args){double[]values_A={10,11,12,13,15,14,16,17,18,19};int[]columns_A={0,1,2,3,0,4,1,2,3,4};int[]rowIndex_A1={0,2,4,6,8,10};int[]rowIndex_A2={2,4,6,8,10};double[]values_B={5,6,7,8,9};int[]columns_B={0,1,2,3,4};int[]rowIndex_B1={0,1,2,3,4,5};int[]rowIndex_B2={1,2,3,4,5};vara=newSparseMatrix();varb=newSparseMatrix();varres=SpBlas.MklSparseDCreateCsr(a,SparseIndexBaseT.SPARSE_INDEX_BASE_ZERO,5,5,refrowIndex_A1[0],refrowIndex_A2[0],refcolumns_A[0],refvalues_A[0]);res=SpBlas.MklSparseDCreateCsr(b,SparseIndexBaseT.SPARSE_INDEX_BASE_ZERO,5,5,refrowIndex_B1[0],refrowIndex_B2[0],refcolumns_B[0],refvalues_B[0]);varc=newSparseMatrix();res=SpBlas.MklSparseSpmm(SparseOperationT.SPARSE_OPERATION_NON_TRANSPOSE,a,b,c);// res is IntelMKL.LP64.SparseStatusT.SPARSE_STATUS_NOT_SUPPORTEDres=SpBlas.MklSparseDSetValue(a,1,2,10);// Exception: System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'}
What is wrong here?
The text was updated successfully, but these errors were encountered:
AviAvni
changed the title
How to using SpBlas
How to use SpBlas
Dec 24, 2018
I'm trying to use the SpBlas API but get error
What is wrong here?
The text was updated successfully, but these errors were encountered: