• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# CudaSparse.cusparseMatDescr类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: CudaSparseMatrixDescriptor

        /// <summary>
        /// When the matrix descriptor is created, its fields are initialized to: 
		/// CUSPARSE_MATRIXYPE_GENERAL
		/// CUSPARSE_INDEX_BASE_ZERO
		/// All other fields are uninitialized
        /// </summary>
        public CudaSparseMatrixDescriptor()
        {
            _descr = new cusparseMatDescr();
            res = CudaSparseNativeMethods.cusparseCreateMatDescr(ref _descr);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusparseCreateMatDescr", res));
            if (res != cusparseStatus.Success)
                throw new CudaSparseException(res);
        }
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:14,代码来源:CudaSparseMatrixDescriptor.cs


示例2: 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


示例3: 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


示例4: cusparseZbsrsv2_bufferSizeExt

		public static extern cusparseStatus cusparseZbsrsv2_bufferSizeExt(cusparseContext handle,
														cusparseDirection dirA,
														cusparseOperation transA,
														int mb,
														int nnzb,
														cusparseMatDescr descrA,
														CUdeviceptr bsrVal,
														CUdeviceptr bsrRowPtr,
														CUdeviceptr bsrColInd,
														int blockDim,
														bsrsv2Info info,
														ref SizeT pBufferSize);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:12,代码来源:CudaSparseNativeMethods.cs


示例5: cusparseSetMatFillMode

		public static extern cusparseStatus cusparseSetMatFillMode(cusparseMatDescr descrA, cusparseFillMode fillMode);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:CudaSparseNativeMethods.cs


示例6: cusparseZcsrsv2_analysis

		public static extern cusparseStatus cusparseZcsrsv2_analysis(cusparseContext handle,
													  cusparseOperation transA,
													  int m,
													  int nnz,
													  cusparseMatDescr descrA,
													  CUdeviceptr csrValA,
													  CUdeviceptr csrRowPtrA,
													  CUdeviceptr csrColIndA,
													  csrsv2Info info,
													  cusparseSolvePolicy policy,
													  CUdeviceptr pBuffer);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:11,代码来源:CudaSparseNativeMethods.cs


示例7: cusparseDestroyMatDescr

		public static extern cusparseStatus cusparseDestroyMatDescr(cusparseMatDescr descrA);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:CudaSparseNativeMethods.cs


示例8: cusparseCreateMatDescr

		public static extern cusparseStatus cusparseCreateMatDescr(ref cusparseMatDescr descrA);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:CudaSparseNativeMethods.cs


示例9: cusparseZcsr2csru

		public static extern cusparseStatus cusparseZcsr2csru(cusparseContext handle,
                                               int m,
                                               int n,
                                               int nnz,
                                               cusparseMatDescr descrA,
                                               CUdeviceptr csrVal,
                                               CUdeviceptr csrRowPtr,
                                               CUdeviceptr csrColInd,
                                               csru2csrInfo  info,
                                               CUdeviceptr pBuffer);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:10,代码来源:CudaSparseNativeMethods.cs


示例10: 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


示例11: 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


示例12: 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


示例13: cusparseZhyb2csc

		public static extern cusparseStatus cusparseZhyb2csc(cusparseContext handle,
                                              cusparseMatDescr descrA,
                                              cusparseHybMat hybA,
											  CUdeviceptr cscVal,
											  CUdeviceptr cscRowInd,
											  CUdeviceptr cscColPtr);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:6,代码来源:CudaSparseNativeMethods.cs


示例14: cusparseZcsc2hyb

		public static extern cusparseStatus cusparseZcsc2hyb(cusparseContext handle,
                                              int m,
                                              int n,
                                              cusparseMatDescr descrA,
                                              CUdeviceptr cscValA,
                                              CUdeviceptr cscRowIndA,
                                              CUdeviceptr cscColPtrA,
                                              cusparseHybMat hybA,
                                              int userEllWidth,
                                              cusparseHybPartition partitionType);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:10,代码来源:CudaSparseNativeMethods.cs


示例15: cusparseXcscsort

		public static extern cusparseStatus cusparseXcscsort(cusparseContext handle,
                                              int m,
                                              int n,
                                              int nnz,
                                              cusparseMatDescr descrA,
                                              CUdeviceptr cscColPtrA,
                                              CUdeviceptr cscRowIndA,
                                              CUdeviceptr P,
                                              CUdeviceptr pBuffer);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:9,代码来源:CudaSparseNativeMethods.cs


示例16: cusparseCcsrsv_analysis

		public static extern cusparseStatus cusparseCcsrsv_analysis(cusparseContext handle, cusparseOperation transA, int m, int nnz, cusparseMatDescr descrA, CUdeviceptr csrValA, CUdeviceptr csrRowPtrA, CUdeviceptr csrColIndA, cusparseSolveAnalysisInfo info);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:CudaSparseNativeMethods.cs


示例17: cusparseZcsrmv

		public static extern cusparseStatus cusparseZcsrmv(cusparseContext handle, cusparseOperation transA, int m, int n, int nnz, CUdeviceptr alpha, cusparseMatDescr descrA, CUdeviceptr csrValA, CUdeviceptr csrRowPtrA, CUdeviceptr csrColIndA, CUdeviceptr x, CUdeviceptr beta, CUdeviceptr y);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:CudaSparseNativeMethods.cs


示例18: cusparseZcsrsv_solve

		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);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:CudaSparseNativeMethods.cs


示例19: 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


示例20: cusparseZcsrsv2_bufferSizeExt

		public static extern cusparseStatus cusparseZcsrsv2_bufferSizeExt(cusparseContext handle,
														cusparseOperation transA,
														int m,
														int nnz,
														cusparseMatDescr descrA,
														CUdeviceptr csrValA,
														CUdeviceptr csrRowPtrA,
														CUdeviceptr csrColIndA,
														csrsv2Info info,
														ref SizeT pBufferSize);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:10,代码来源:CudaSparseNativeMethods.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# NPP.NPPImage_16sC1类代码示例发布时间:2022-05-26
下一篇:
C# CudaSparse.cusparseContext类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap