コード例 #1
0
 public void AddScaleInverseOperation <T>(NArray <T> a, T scale, NArray <T> result)
 {
     _operations.Add(
         Expression.Assign(GetParameter <T>(result),
                           ExpressionExtended.ScaleInverse <T>(GetParameter <T>(a), scale))
         );
 }
コード例 #2
0
 public void AddScaleOffsetOperation <T>(NArray <T> a, T scale, T offset, NArray <T> result)
 {
     _operations.Add(
         Expression.Assign(GetParameter <T>(result),
                           ExpressionExtended.ScaleOffset <T>(GetParameter <T>(a), scale, offset))
         );
 }
コード例 #3
0
 public void AddUnaryElementWiseOperation <T>(NArray <T> a,
                                              NArray <T> result, UnaryElementWiseOperation operation)
 {
     _operations.Add(
         Expression.Assign(GetParameter <T>(result),
                           ExpressionExtended.MakeUnary(operation, GetParameter <T>(a)))
         );
 }