/// <summary>
		/// </summary>
		public CudaSparseSolveAnalysisInfo()
		{
			_info = new cusparseSolveAnalysisInfo();
			res = CudaSparseNativeMethods.cusparseCreateSolveAnalysisInfo(ref _info);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusparseCreateSolveAnalysisInfo", res));
			if (res != cusparseStatus.Success)
				throw new CudaSparseException(res);
		}
Beispiel #2
0
 /// <summary>
 /// </summary>
 public CudaSparseSolveAnalysisInfo()
 {
     _info = new cusparseSolveAnalysisInfo();
     res   = CudaSparseNativeMethods.cusparseCreateSolveAnalysisInfo(ref _info);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusparseCreateSolveAnalysisInfo", res));
     if (res != cusparseStatus.Success)
     {
         throw new CudaSparseException(res);
     }
 }
		public static extern cusparseStatus cusparseZcsrsv_solve(cusparseContext handle, cusparseOperation transA, int m, CUdeviceptr alpha, cusparseMatDescr descrA, CUdeviceptr csrValA, CUdeviceptr csrRowPtrA, CUdeviceptr csrColIndA, cusparseSolveAnalysisInfo info, CUdeviceptr x, CUdeviceptr y);
		public static extern cusparseStatus cusparseCcsrsv_analysis(cusparseContext handle, cusparseOperation transA, int m, int nnz, cusparseMatDescr descrA, CUdeviceptr csrValA, CUdeviceptr csrRowPtrA, CUdeviceptr csrColIndA, cusparseSolveAnalysisInfo info);
		public static extern cusparseStatus cusparseZcsric0(cusparseContext handle, 
                                              cusparseOperation trans, 
                                              int m,
											  cusparseMatDescr descrA,
											  CUdeviceptr csrValA_ValM,
											/* matrix A values are updated inplace 
											   to be the preconditioner M values */
											  CUdeviceptr csrRowPtrA,
											  CUdeviceptr csrColIndA,
                                              cusparseSolveAnalysisInfo info);
		public static extern cusparseStatus cusparseZcsrsm_solve(cusparseContext handle, cusparseOperation transA, int m, int n, ref cuDoubleComplex alpha, cusparseMatDescr descrA, CUdeviceptr csrValA, CUdeviceptr csrRowPtrA, CUdeviceptr csrColIndA, cusparseSolveAnalysisInfo info, CUdeviceptr x, int ldx, CUdeviceptr y, int ldy);
		public static extern cusparseStatus cusparseZhybsv_solve(cusparseContext handle, cusparseOperation trans, CUdeviceptr alpha, cusparseMatDescr descra, cusparseHybMat hybA, cusparseSolveAnalysisInfo info, CUdeviceptr x, CUdeviceptr y);
		public static extern cusparseStatus cusparseZhybsv_analysis(cusparseContext handle, cusparseOperation transA, cusparseMatDescr descrA, cusparseHybMat hybA, cusparseSolveAnalysisInfo info);
		public static extern cusparseStatus cusparseGetLevelInfo(cusparseContext handle, 
                                                  cusparseSolveAnalysisInfo info, 
                                                  ref int nlevels,
												  ref CUdeviceptr levelPtr,
												  ref CUdeviceptr levelInd);
		public static extern cusparseStatus cusparseDestroySolveAnalysisInfo(cusparseSolveAnalysisInfo info);
		public static extern cusparseStatus cusparseCreateSolveAnalysisInfo(ref cusparseSolveAnalysisInfo info);
        public static extern cusparseStatus cusparseCsrsv_solveEx(cusparseContext handle, 
                                                   cusparseOperation transA, 
                                                   int m,
												   CUdeviceptr alpha, 
                                                   cudaDataType alphatype,
                                                   cusparseMatDescr descrA,
												   CUdeviceptr csrSortedValA, 
                                                   cudaDataType csrSortedValAtype,
												   CUdeviceptr csrSortedRowPtrA,
												   CUdeviceptr csrSortedColIndA, 
                                                   cusparseSolveAnalysisInfo info,
												   CUdeviceptr f, 
                                                   cudaDataType ftype,
												   CUdeviceptr x,
                                                   cudaDataType xtype,
                                                   cudaDataType executiontype);
 public static extern cusparseStatus cusparseCsrilu0Ex(cusparseContext handle, 
                                       cusparseOperation trans, 
                                       int m, 
                                       cusparseMatDescr descrA, 
                                       CUdeviceptr csrSortedValA_ValM, 
                                       cudaDataType csrSortedValA_ValMtype,
                                       /* matrix A values are updated inplace 
                                          to be the preconditioner M values */
                                       CUdeviceptr csrSortedRowPtrA, 
                                       CUdeviceptr csrSortedColIndA,
                                       cusparseSolveAnalysisInfo info,
                                       cudaDataType executiontype);