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

C# cublasOperation类代码示例

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

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



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

示例1: TRSV

 /// <summary>
 /// Solves the triangular linear system with a single right-hand-side.
 /// x = op(A)^-1 * x
 /// </summary>
 /// <param name="n">number of rows and columns of matrix A.</param>
 /// <param name="A">array of dimensions lda * n with lda >= max(1, n).</param>
 /// <param name="x">vector with n elements.</param>
 /// <param name="trans">operation op(A) that is non- or (conj.) transpose.</param>
 /// <param name="uplo">indicates if matrix A lower or upper part is stored, the other part is not referenced and is inferred from the stored elements.</param>
 /// <param name="diag">indicates if the elements on the main diagonal of matrix A are unity and should not be accessed.</param>
 /// <param name="lda">leading dimension of two-dimensional array used to store matrix A. if lda = 0, lda is automatically be n.</param>
 /// <param name="incx">stride between consecutive elements of x.</param>
 public abstract void TRSV(int n, double[] A, double[] x, cublasOperation trans = cublasOperation.N, cublasFillMode uplo = cublasFillMode.Lower, cublasDiagType diag = cublasDiagType.NonUnit, int lda = 0, int incx = 1);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:13,代码来源:GPGPUBLAS.cs


示例2: cublasSsyrk

 public CUBLASStatusv2 cublasSsyrk(cublasHandle handle, cublasFillMode uplo, cublasOperation trans, int n, int k, ref float alpha, IntPtr A, int lda, ref float beta, IntPtr C, int ldc)
 {
     throw new NotImplementedException();
 }
开发者ID:constructor-igor,项目名称:cudafy,代码行数:4,代码来源:CUBLASDriver32Ex.cs


示例3: cublasDtrsm

 public CUBLASStatusv2 cublasDtrsm(cublasHandle handle, cublasSideMode side, cublasFillMode uplo, cublasOperation trans, cublasDiagType diag, int m, int n, ref double alpha, IntPtr A, int lda, IntPtr B, int ldb)
 {
     throw new NotImplementedException();
 }
开发者ID:constructor-igor,项目名称:cudafy,代码行数:4,代码来源:CUBLASDriver32Ex.cs


示例4: cublasDgemv_v2

 private static extern CUBLASStatusv2 cublasDgemv_v2(cublasHandle handle, cublasOperation trans, int m, int n, ref double alpha, IntPtr A, int lda, IntPtr x, int incx, ref double beta, IntPtr y, int incy);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:1,代码来源:CUBLASDriver64Ex.cs


示例5: cublasDtrsv

 public CUBLASStatusv2 cublasDtrsv(cublasHandle handle, cublasFillMode uplo, cublasOperation trans, cublasDiagType diag, int n, IntPtr A, int lda, IntPtr x, int incx)
 {
     throw new NotImplementedException();
 }
开发者ID:constructor-igor,项目名称:cudafy,代码行数:4,代码来源:CUBLASDriver32Ex.cs


示例6: cublasSsyrk

 public CUBLASStatusv2 cublasSsyrk(cublasHandle handle, cublasFillMode uplo, cublasOperation trans, int n, int k, ref float alpha, IntPtr A, int lda, ref float beta, IntPtr C, int ldc)
 {
     return cublasSsyrk_v2(handle, uplo, trans, n, k, ref alpha, A, lda, ref beta, C, ldc);
 }
开发者ID:constructor-igor,项目名称:cudafy,代码行数:4,代码来源:CUBLASDriver64Ex.cs


示例7: cublasStrmm

 public CUBLASStatusv2 cublasStrmm(cublasHandle handle, cublasSideMode side, cublasFillMode uplo, cublasOperation trans, cublasDiagType diag, int m, int n, ref float alpha, IntPtr A, int lda, IntPtr B, int ldb, IntPtr C, int ldc)
 {
     return cublasStrmm_v2(handle, side, uplo, trans, diag, m, n, ref alpha, A, lda, B, ldb, C, ldc);
 }
开发者ID:constructor-igor,项目名称:cudafy,代码行数:4,代码来源:CUBLASDriver64Ex.cs


示例8: TRSM

 /// <summary>
 /// Solves the triangular linear system with multiple right-hand-sides.
 /// B = alpha * (op(A))^-1 * B (left side),
 /// B = alpha * B * (op(A))^-1 (right side)
 /// </summary>
 /// <param name="m">number of rows of matrix B, with matrix A sized accordingly.</param>
 /// <param name="n">number of columns of matrix B, with matrix A sized accordingly.</param>
 /// <param name="alpha">scalar used for multiplication.</param>
 /// <param name="A">array of dimension m * m (n * n right side).</param>
 /// <param name="B">array of dimension m * n.</param>
 /// <param name="side">indicates if matrix A is on the left or right of B.</param>
 /// <param name="trans">operation op(A) that is non- or (conj.) transpose.</param>
 /// <param name="uplo">indicates if matrix A lower or upper part is stored, the other part is not refernced and is inferred from the stored elements.</param>
 /// <param name="diag">indicates if the elements on the main diagonal of matrix A are unity and should not be accessed.</param>
 /// <param name="lda">leading dimension of two-dimensional array used to store matrix A.</param>
 /// <param name="ldb">leading dimension of two-dimensional array used to store matrix B.</param>
 public abstract void TRSM(int m, int n, double alpha, double[] A, double[] B, cublasSideMode side = cublasSideMode.Left, cublasOperation trans = cublasOperation.N, cublasFillMode uplo = cublasFillMode.Lower, cublasDiagType diag = cublasDiagType.NonUnit, int lda = 0, int ldb = 0);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:17,代码来源:GPGPUBLAS.cs


示例9: cublasDtrsv_v2

 private static extern CUBLASStatusv2 cublasDtrsv_v2(cublasHandle handle, cublasFillMode uplo, cublasOperation trans, cublasDiagType diag, int n, IntPtr A, int lda, IntPtr x, int incx);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:1,代码来源:CUBLASDriver64Ex.cs


示例10: SYR2K

 /// <summary>
 /// Performs the symmetric rank-2k update.
 /// C = alpha * (op(A) * transpose(op(B)) + op(B) * transpose(op(A))) + beta * C
 /// </summary>
 /// <param name="n">number of rows of matrix op(A), op(B) and C.</param>
 /// <param name="k">number of columns of matrix op(A) and op(B).</param>
 /// <param name="alpha">scalar used for multiplication.</param>
 /// <param name="A">array of dimension n * k.</param>
 /// <param name="B">array of dimension n * k.</param>
 /// <param name="beta">scalar used for multiplication.</param>
 /// <param name="C">array of dimension n * n.</param>
 /// <param name="trans">operation op(A), op(B) that is non- or transpose.</param>
 /// <param name="uplo">indicates if matrix C lower of upper part is stored, the other symmetric part is not referenced and is inferred from the stored elements.</param>
 /// <param name="lda">leading dimension of two-dimensional array used to store matrix A.</param>
 /// <param name="ldb">leading dimension of two-dimensional array used to store matrix B.</param>
 /// <param name="ldc">leading dimension of two-dimensional array used to store matrix C.</param>
 public abstract void SYR2K(int n, int k, double alpha, double[] A, double[] B, double beta, double[] C, cublasOperation trans = cublasOperation.N, cublasFillMode uplo = cublasFillMode.Lower, int lda = 0, int ldb = 0, int ldc = 0);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:17,代码来源:GPGPUBLAS.cs


示例11: TRMM

 /// <summary>
 /// Performs the triangular matrix-matrix multiplication.
 /// C = alpha * op(A) * B (side left),
 /// C = alpha * B * op(A) (side right)
 /// </summary>
 /// <param name="m">number of rows of matrix B, with matrix A sized accordingly.</param>
 /// <param name="n">number of columns of matrix B, with matrix A sized accordingly.</param>
 /// <param name="alpha">scalar used for multiplication.</param>
 /// <param name="A">array of dimension m * m.</param>
 /// <param name="B">array of dimension m * n.</param>
 /// <param name="C">array of dimension m * n.</param>
 /// <param name="side">indicates if matrix A is on the left or right of B.</param>
 /// <param name="trans">operation op(A) that is non- or (conj.) transpose.</param>
 /// <param name="uplo">indicates if matrix A lower or upper part is stored, the other part is not refernced and is inferred from the stored elements.</param>
 /// <param name="diag">indicates if the elements on the main diagonal of matrix A are unity and should not be accessed.</param>
 /// <param name="lda">leading dimension of two-dimensional array used to store matrix A.</param>
 /// <param name="ldb">leading dimension of two-dimensional array used to store matrix B.</param>
 /// <param name="ldc">leading dimension of two-dimensional array used to store matrix C.</param>
 public abstract void TRMM(int m, int n, float alpha, float[] A, float[] B, float[] C, cublasSideMode side = cublasSideMode.Left, cublasOperation trans = cublasOperation.N, cublasFillMode uplo = cublasFillMode.Lower, cublasDiagType diag = cublasDiagType.NonUnit, int lda = 0, int ldb = 0, int ldc = 0);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:19,代码来源:GPGPUBLAS.cs


示例12: GEMM

 /// <summary>
 /// Performs the matrix-matrix multiplication.
 /// C = alpha * op(A) * op(B) + beta * C
 /// </summary>
 /// <param name="m">number of rows of matrix op(A) and C.</param>
 /// <param name="k">number of columns of matix op(A) and rows of op(B).</param>
 /// <param name="n">number of columns of matix op(B) and C.</param>
 /// <param name="alpha">scalar used for multiplication.</param>
 /// <param name="A">arrasy of dimensions m * k.</param>
 /// <param name="B">array of dimension k * n.</param>
 /// <param name="beta">scalar used for multiplication.</param>
 /// <param name="C">array of dimension m * n.</param>
 /// <param name="transa">operation op(A) that is non- or (conj.) transpose.</param>
 /// <param name="transb">operation op(B) that is non- or (conj.) transpose.</param>
 /// <param name="lda">leading dimension of two-dimensional array used to store the matrix A.</param>
 /// <param name="ldb">leading dimension of two-dimensional array used to store the matrix B.</param>
 /// <param name="ldc">leading dimension of two-dimensional array used to store the matrix C.</param>
 public abstract void GEMM(int m, int k, int n, double alpha, double[] A, double[] B, double beta, double[] C, cublasOperation transa = cublasOperation.N, cublasOperation transb = cublasOperation.N, int lda = 0, int ldb = 0, int ldc = 0);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:18,代码来源:GPGPUBLAS.cs


示例13: cublasDgemm

 public CUBLASStatusv2 cublasDgemm(cublasHandle handle, cublasOperation transa, cublasOperation transb, int m, int n, int k, ref double alpha, IntPtr A, int lda, IntPtr B, int ldb, ref double beta, IntPtr C, int ldc)
 {
     return cublasDgemm_v2(handle, transa, transb, m, n, k, ref alpha, A, lda, B, ldb, ref beta, C, ldc);
 }
开发者ID:constructor-igor,项目名称:cudafy,代码行数:4,代码来源:CUBLASDriver64Ex.cs


示例14: cublasDgemm_v2

 private static extern CUBLASStatusv2 cublasDgemm_v2(cublasHandle handle, cublasOperation transa, cublasOperation transb, int m, int n, int k, ref double alpha, IntPtr A, int lda, IntPtr B, int ldb, ref double beta, IntPtr C, int ldc);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:1,代码来源:CUBLASDriver64Ex.cs


示例15: cublasSgbmv_v2

 private static extern CUBLASStatusv2 cublasSgbmv_v2(cublasHandle handle, cublasOperation trans, int m, int n, int kl, int ku, ref float alpha, IntPtr A, int lda, IntPtr x, int incx, ref float beta, IntPtr y, int incy);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:1,代码来源:CUBLASDriver64Ex.cs


示例16: cublasSsyrk_v2

 private static extern CUBLASStatusv2 cublasSsyrk_v2(cublasHandle handle, cublasFillMode uplo, cublasOperation trans, int n, int k, ref float alpha, IntPtr A, int lda, ref float beta, IntPtr C, int ldc);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:1,代码来源:CUBLASDriver64Ex.cs


示例17: cublasDsyr2k

 public CUBLASStatusv2 cublasDsyr2k(cublasHandle handle, cublasFillMode uplo, cublasOperation trans, int n, int k, ref double alpha, IntPtr A, int lda, IntPtr B, int ldb, ref double beta, IntPtr C, int ldc)
 {
     return cublasDsyr2k_v2(handle, uplo, trans, n, k, ref alpha, A, lda, B, ldb, ref beta, C, ldc);
 }
开发者ID:constructor-igor,项目名称:cudafy,代码行数:4,代码来源:CUBLASDriver64Ex.cs


示例18: cublasDsyr2k_v2

 private static extern CUBLASStatusv2 cublasDsyr2k_v2(cublasHandle handle, cublasFillMode uplo, cublasOperation trans, int n, int k, ref double alpha, IntPtr A, int lda, IntPtr B, int ldb, ref double beta, IntPtr C, int ldc);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:1,代码来源:CUBLASDriver64Ex.cs


示例19: cublasDtrsm

 public CUBLASStatusv2 cublasDtrsm(cublasHandle handle, cublasSideMode side, cublasFillMode uplo, cublasOperation trans, cublasDiagType diag, int m, int n, ref double alpha, IntPtr A, int lda, IntPtr B, int ldb)
 {
     return cublasDtrsm_v2(handle, side, uplo, trans, diag, m, n, ref alpha, A, lda, B, ldb);
 }
开发者ID:constructor-igor,项目名称:cudafy,代码行数:4,代码来源:CUBLASDriver64Ex.cs


示例20: cublasDtrsm_v2

 private static extern CUBLASStatusv2 cublasDtrsm_v2(cublasHandle handle, cublasSideMode side, cublasFillMode uplo, cublasOperation trans, cublasDiagType diag, int m, int n, ref double alpha, IntPtr A, int lda, IntPtr B, int ldb);
开发者ID:constructor-igor,项目名称:cudafy,代码行数:1,代码来源:CUBLASDriver64Ex.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# cudaMemcpyKind类代码示例发布时间:2022-05-24
下一篇:
C# cublasFillMode类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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