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); } }
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); } }
public override void Eval() { expr.Eval(); ND.ApplyFunc(expr, Fnc, this); }
public override void Eval() { leftExpr.Eval(); rightExpr.Eval(); ND.ApplyDotExpr(leftExpr, rightExpr, this); }
public override void Eval() { leftExpr.Eval(); rightExpr.Eval(); ND.ApplyElementWiseOp(leftExpr, rightExpr, Fnc, this); }