public void CooAoSGet(out CudaDeviceVariable <indexT> cooInd, out CudaDeviceVariable <dataT> cooValues) { CUdeviceptr ptrIdx = new CUdeviceptr(); CUdeviceptr ptrValues = new CUdeviceptr(); res = CudaSparseNativeMethods.cusparseCooAoSGet(descr, ref rows, ref cols, ref nnz, ref ptrIdx, ref ptrValues, ref typeIndices, ref idxBase, ref typeData); Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusparseCooAoSGet", res)); if (res != cusparseStatus.Success) { throw new CudaSparseException(res); } cooInd = new CudaDeviceVariable <indexT>(ptrIdx); cooValues = new CudaDeviceVariable <dataT>(ptrValues); }