如何在C#中将DiffSharp的DM和DV相乘?

时间:2016-06-20 12:53:08

标签: c# diffsharp

我有以下代码:

    using DiffSharp.Interop.Float64;

public class Layer
{
       public DM W { get; set; }
       public DV b { get; set; }
       public Func<DV,DV> a { get; set; }

       public DV Compute(DV v)
       {
          return a(W * v); // This Line
       }
}

问题是我的陈述W * v,它说"Operator * cannot be applied to operands of type DM and DV"。在F#中,它们以这种方式相乘。我们如何在C#中将这个矩阵和向量相乘?

0 个答案:

没有答案