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)) ); }
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)) ); }
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))) ); }