/// <summary> /// /// </summary> public void CsrSet(CudaDeviceVariable <indexT> csrRowOffsets, CudaDeviceVariable <indexT> csrColInd, CudaDeviceVariable <dataT> csrValues) { res = CudaSparseNativeMethods.cusparseCsrSetPointers(descr, csrRowOffsets.DevicePointer, csrColInd.DevicePointer, csrValues.DevicePointer); Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusparseCsrSetPointers", res)); if (res != cusparseStatus.Success) { throw new CudaSparseException(res); } }