public static void incrementalAggregation( MatrixValue valueAgg, MatrixValue correction, MatrixValue valueAdd, AggregateOperator op, boolean imbededCorrection) throws DMLRuntimeException { if (op.correctionExists) { if (!imbededCorrection || op.correctionLocation == CorrectionLocationType.NONE) valueAgg.incrementalAggregate(op, correction, valueAdd); else valueAgg.incrementalAggregate(op, valueAdd); } else valueAgg.binaryOperationsInPlace(op.increOp, valueAdd); }