public abstract class SpoofMultiAggregate extends SpoofOperator implements Serializable
SpoofOperator.SideInput, SpoofOperator.SideInputSparsePAR_MINFLOP_THRESHOLD, PAR_NUMCELL_THRESHOLD| Constructor and Description |
|---|
SpoofMultiAggregate(boolean sparseSafe,
SpoofCellwise.AggOp... aggOps) |
| Modifier and Type | Method and Description |
|---|---|
static void |
aggregatePartialResults(SpoofCellwise.AggOp[] aggOps,
MatrixBlock c,
MatrixBlock b) |
MatrixBlock |
execute(ArrayList<MatrixBlock> inputs,
ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalarObjects,
MatrixBlock out) |
MatrixBlock |
execute(ArrayList<MatrixBlock> inputs,
ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalarObjects,
MatrixBlock out,
int k) |
protected abstract void |
genexec(double a,
SpoofOperator.SideInput[] b,
double[] scalars,
double[] c,
int m,
int n,
int rowIndex,
int colIndex) |
static org.apache.sysml.runtime.functionobjects.ValueFunction[] |
getAggFunctions(SpoofCellwise.AggOp[] aggOps) |
SpoofCellwise.AggOp[] |
getAggOps() |
static double |
getInitialValue(SpoofCellwise.AggOp aggop) |
String |
getSpoofType() |
boolean |
isSparseSafe() |
createSparseSideInputs, execute, execute, getDenseMatrices, getTotalInputNnz, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getVector, getVector, prepInputMatrices, prepInputMatrices, prepInputMatrices, prepInputMatrices, prepInputMatrices, prepInputScalarspublic SpoofMultiAggregate(boolean sparseSafe,
SpoofCellwise.AggOp... aggOps)
public SpoofCellwise.AggOp[] getAggOps()
public boolean isSparseSafe()
public String getSpoofType()
getSpoofType in class SpoofOperatorpublic MatrixBlock execute(ArrayList<MatrixBlock> inputs, ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalarObjects, MatrixBlock out) throws DMLRuntimeException
execute in class SpoofOperatorDMLRuntimeExceptionpublic MatrixBlock execute(ArrayList<MatrixBlock> inputs, ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalarObjects, MatrixBlock out, int k) throws DMLRuntimeException
execute in class SpoofOperatorDMLRuntimeExceptionprotected abstract void genexec(double a,
SpoofOperator.SideInput[] b,
double[] scalars,
double[] c,
int m,
int n,
int rowIndex,
int colIndex)
public static double getInitialValue(SpoofCellwise.AggOp aggop)
public static void aggregatePartialResults(SpoofCellwise.AggOp[] aggOps, MatrixBlock c, MatrixBlock b) throws DMLRuntimeException
DMLRuntimeExceptionpublic static org.apache.sysml.runtime.functionobjects.ValueFunction[] getAggFunctions(SpoofCellwise.AggOp[] aggOps)
Copyright © 2017 The Apache Software Foundation. All rights reserved.