I have the following code:
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
}
}
The problem is i the statement W * v
and it says "Operator * cannot be applied to operands of type DM and DV"
. In F# they are multiplied in this manner. How can we multiply this matrix and vector in C#?