Exemple #1
0
 public override void Eval()
 {
     expr.Eval();
     if (argIndex == ArgIndex.Min)
     {
         ND.ApplyArgMinMax(expr, this, axis, NDarray <U> .OpsT.Min, NDarray <U> .OpsT.Maxvalue);
     }
     else
     {
         ND.ApplyArgMinMax(expr, this, axis, NDarray <U> .OpsT.Max, NDarray <U> .OpsT.Minvalue);
     }
 }
 public override void Eval()
 {
     expr.Eval();
     if (transformType == TransformType.Reshape)
     {
         ND.ApplyReshape(expr, arr, this);
     }
     else if (transformType == TransformType.Transpose)
     {
         ND.ApplyTranspose(expr, arr, this);
     }
 }
Exemple #3
0
 public override void Eval()
 {
     expr.Eval();
     if (axisOps == AxisOpsType.Sum)
     {
         ND.ApplyAxisOps(expr, this, axis, keepdims, NDarray <U> .OpsT.Add, NDarray <U> .OpsT.Zero);
     }
     else if (axisOps == AxisOpsType.Prod)
     {
         ND.ApplyAxisOps(expr, this, axis, keepdims, NDarray <U> .OpsT.Mul, NDarray <U> .OpsT.One);
     }
     else if (axisOps == AxisOpsType.Min)
     {
         ND.ApplyAxisOps(expr, this, axis, keepdims, NDarray <U> .OpsT.Min, NDarray <U> .OpsT.Maxvalue);
     }
     else if (axisOps == AxisOpsType.Max)
     {
         ND.ApplyAxisOps(expr, this, axis, keepdims, NDarray <U> .OpsT.Max, NDarray <U> .OpsT.Minvalue);
     }
     else if (axisOps == AxisOpsType.Mean)
     {
         ND.ApplyAxisOps(expr, this, axis, keepdims, NDarray <U> .OpsT.Add, NDarray <U> .OpsT.Zero, true);
     }
 }
Exemple #4
0
 public override void Eval()
 {
     expr.Eval();
     ND.ApplyFunc(expr, Fnc, this);
 }
Exemple #5
0
 public override void Eval()
 {
     leftExpr.Eval();
     rightExpr.Eval();
     ND.ApplyDotExpr(leftExpr, rightExpr, this);
 }
Exemple #6
0
 public override void Eval()
 {
     leftExpr.Eval();
     rightExpr.Eval();
     ND.ApplyElementWiseOp(leftExpr, rightExpr, Fnc, this);
 }