当前位置: 首页>>代码示例>>C#>>正文


C# cusparseDirection类代码示例

本文整理汇总了C#中cusparseDirection的典型用法代码示例。如果您正苦于以下问题:C# cusparseDirection类的具体用法?C# cusparseDirection怎么用?C# cusparseDirection使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


cusparseDirection类属于命名空间,在下文中一共展示了cusparseDirection类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: cusparseCbsric02

        public static extern cusparseStatus cusparseCbsric02(cusparseContext handle,
											  cusparseDirection dirA,
											  int mb,
											  int nnzb,
											  cusparseMatDescr descrA,
											  CUdeviceptr bsrVal,
											  CUdeviceptr bsrRowPtr,
											  CUdeviceptr bsrColInd,
											  int blockDim,
											  bsric02Info info,
											  cusparseSolvePolicy policy,
											  CUdeviceptr pBuffer);
开发者ID:kunzmi,项目名称:managedCuda,代码行数:12,代码来源:CudaSparseNativeMethods.cs

示例2: cusparseCbsr2csr

        public static extern cusparseStatus cusparseCbsr2csr(cusparseContext handle,
											cusparseDirection dirA,
											int mb,
											int nb,
											cusparseMatDescr descrA,
											CUdeviceptr bsrValA,
											CUdeviceptr bsrRowPtrA,
											CUdeviceptr bsrColIndA,
											int blockDim,
											cusparseMatDescr descrC,
											CUdeviceptr csrValC,
											CUdeviceptr csrRowPtrC,
											CUdeviceptr csrColIndC);
开发者ID:kunzmi,项目名称:managedCuda,代码行数:13,代码来源:CudaSparseNativeMethods.cs

示例3: cusparseZcsr2gebsr_bufferSize

		public static extern cusparseStatus cusparseZcsr2gebsr_bufferSize(cusparseContext handle,
														   cusparseDirection dirA,
														   int m,
														   int n,
														   cusparseMatDescr descrA,
														   CUdeviceptr csrValA,
														   CUdeviceptr csrRowPtrA,
														   CUdeviceptr csrColIndA,
														   int rowBlockDim,
														   int colBlockDim,
														   ref int pBufferSize);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:11,代码来源:CudaSparseNativeMethods.cs

示例4: cusparseZbsrxmv

		public static extern cusparseStatus cusparseZbsrxmv(cusparseContext handle,
											cusparseDirection dirA,
											cusparseOperation transA,
											int sizeOfMask,
											int mb,
											int nb,
											int nnzb,
											CUdeviceptr alpha,
											cusparseMatDescr descrA,
											CUdeviceptr bsrValA,
											CUdeviceptr bsrMaskPtrA,
											CUdeviceptr bsrRowPtrA,
											CUdeviceptr bsrEndPtrA,
											CUdeviceptr bsrColIndA,
											int blockDim,
											CUdeviceptr x,
											CUdeviceptr beta,
											CUdeviceptr y);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:18,代码来源:CudaSparseNativeMethods.cs

示例5: cusparseZbsrmv

		public static extern cusparseStatus cusparseZbsrmv(cusparseContext handle,
											cusparseDirection dirA,
											cusparseOperation transA,
											int mb,
											int nb,
											int nnzb,
											ref cuDoubleComplex alpha,
											cusparseMatDescr descrA,
											CUdeviceptr bsrValA,
											CUdeviceptr bsrRowPtrA,
											CUdeviceptr bsrColIndA,
											int blockDim,
											CUdeviceptr x,
											ref cuDoubleComplex beta,
											CUdeviceptr y);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:15,代码来源:CudaSparseNativeMethods.cs

示例6: cusparseXcsr2bsrNnz

		public static extern cusparseStatus cusparseXcsr2bsrNnz(cusparseContext handle,
											cusparseDirection dirA,
											int m,
											int n,
											cusparseMatDescr descrA,
											CUdeviceptr csrRowPtrA,
											CUdeviceptr csrColIndA,
											int blockDim,
											cusparseMatDescr descrC,
											CUdeviceptr bsrRowPtrC,
											ref int nnzTotalDevHostPtr);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:11,代码来源:CudaSparseNativeMethods.cs

示例7: cusparseZnnz

		public static extern cusparseStatus cusparseZnnz(cusparseContext handle, cusparseDirection dirA, int m, int n, cusparseMatDescr descrA, CUdeviceptr A, int lda, CUdeviceptr nnzPerRowCol, CUdeviceptr nnzTotalDevHostPtr);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:CudaSparseNativeMethods.cs

示例8: cusparseZgebsr2gebsr

		public static extern cusparseStatus cusparseZgebsr2gebsr(cusparseContext handle,
												  cusparseDirection dirA,
												  int mb,
												  int nb,
												  int nnzb,
												  cusparseMatDescr descrA,
												  CUdeviceptr bsrValA,
												  CUdeviceptr bsrRowPtrA,
												  CUdeviceptr bsrColIndA,
												  int rowBlockDimA,
												  int colBlockDimA,
												  cusparseMatDescr descrC,
												  CUdeviceptr bsrValC,
												  CUdeviceptr bsrRowPtrC,
												  CUdeviceptr bsrColIndC,
												  int rowBlockDimC,
												  int colBlockDimC,
												  CUdeviceptr pBuffer);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:18,代码来源:CudaSparseNativeMethods.cs

示例9: cusparseZbsrmm

		public static extern cusparseStatus cusparseZbsrmm(cusparseContext handle,
											cusparseDirection dirA,
											cusparseOperation transA,
											cusparseOperation transB,
											int mb,
											int n,
											int kb,
											int nnzb,
											CUdeviceptr alpha,
											cusparseMatDescr descrA,
											CUdeviceptr bsrValA,
											CUdeviceptr bsrRowPtrA,
											CUdeviceptr bsrColIndA,
											int blockSize,
											CUdeviceptr B,
											int ldb,
											CUdeviceptr beta,
											CUdeviceptr C,
											int ldc);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:19,代码来源:CudaSparseNativeMethods.cs

示例10: cusparseZbsrsm2_bufferSize

		public static extern cusparseStatus cusparseZbsrsm2_bufferSize(cusparseContext handle,
                                                        cusparseDirection dirA,
                                                        cusparseOperation transA,
                                                        cusparseOperation transXY,
                                                        int mb,
                                                        int n,
                                                        int nnzb,
                                                        cusparseMatDescr descrA,
														CUdeviceptr bsrVal,
														CUdeviceptr bsrRowPtr,
														CUdeviceptr bsrColInd,
                                                        int blockSize,
                                                        bsrsm2Info info,
														ref int pBufferSizeInBytes);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:14,代码来源:CudaSparseNativeMethods.cs

示例11: cusparseCbsrsv2_solve

		public static extern cusparseStatus cusparseCbsrsv2_solve(cusparseContext handle,
												   cusparseDirection dirA,
												   cusparseOperation transA,
												   int mb,
												   int nnzb,
												   CUdeviceptr alpha,
												   cusparseMatDescr descrA,
												   CUdeviceptr bsrVal,
												   CUdeviceptr bsrRowPtr,
												   CUdeviceptr bsrColInd,
												   int blockDim,
												   bsrsv2Info info,
												   CUdeviceptr x,
												   CUdeviceptr y,
												   cusparseSolvePolicy policy,
												   CUdeviceptr pBuffer);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:16,代码来源:CudaSparseNativeMethods.cs

示例12: NNZ

 /// <summary>
 /// Computes the number of non-zero elements per row or column and the total number of non-zero elements.
 /// </summary>
 /// <param name="m">number of rows of the matrix A; m must be at least zero.</param>
 /// <param name="n">number of columns of the matrix A; n must be at least zero.</param>
 /// <param name="A">array of dimension (lda, n)</param>
 /// <param name="vector">array of size m or n containing the number of non-zero elements per row or column, respectively.</param>
 /// <param name="descrA">descriptor of matrix A.</param>
 /// <param name="dirA">indicates whether to count the number of non-zero elements per row or per column, respectively.</param>
 /// <param name="lda">leading dimension of A. If lda is 0, automatically be m.</param>
 /// <returns>total number of non-zero elements.</returns>
 public abstract int NNZ(int m, int n, double[] A, int[] vector, cusparseMatDescr descrA, cusparseDirection dirA = cusparseDirection.Row, int lda = 0);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:12,代码来源:GPGPUSPARSE.cs

示例13: cusparseDnnz

 private static extern CUSPARSEStatus cusparseDnnz(cusparseHandle handle, cusparseDirection dirA, int m, int n, cusparseMatDescr descrA, IntPtr A, int lda, IntPtr nnzperVector, ref int nnzHostPtr);
开发者ID:JustasB,项目名称:cudafy,代码行数:1,代码来源:CUSPARSEDriver.cs

示例14: CusparseDnnz

 public CUSPARSEStatus CusparseDnnz(cusparseHandle handle, cusparseDirection dirA, int m, int n, cusparseMatDescr descrA, IntPtr A, int lda, IntPtr nnzPerVector, ref int nnzHostPtr)
 {
     return cusparseDnnz(handle, dirA, m, n, descrA, A, lda, nnzPerVector, ref nnzHostPtr);
 }
开发者ID:JustasB,项目名称:cudafy,代码行数:4,代码来源:CUSPARSEDriver.cs

示例15: cusparseCgebsr2gebsr_bufferSizeExt

		public static extern cusparseStatus cusparseCgebsr2gebsr_bufferSizeExt(cusparseContext handle,
															 cusparseDirection dirA,
															 int mb,
															 int nb,
															 int nnzb,
															 cusparseMatDescr descrA,
															 CUdeviceptr bsrValA,
															 CUdeviceptr bsrRowPtrA,
															 CUdeviceptr bsrColIndA,
															 int rowBlockDimA,
															 int colBlockDimA,
															 int rowBlockDimC,
															 int colBlockDimC,
															 ref SizeT pBufferSize);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:14,代码来源:CudaSparseNativeMethods.cs


注:本文中的cusparseDirection类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。