public abstract class SpoofMultiAggregate extends SpoofOperator implements Serializable
SpoofOperator.SideInput, SpoofOperator.SideInputSparseCell, SpoofOperator.SideInputSparseRow
PAR_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) |
MatrixBlock |
execute(ArrayList<MatrixBlock> inputs,
ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalarObjects,
MatrixBlock out,
int k,
long rix) |
protected void |
genexec(double a,
SpoofOperator.SideInput[] b,
double[] scalars,
double[] c,
int m,
int n,
int rix,
int cix) |
protected abstract void |
genexec(double a,
SpoofOperator.SideInput[] b,
double[] scalars,
double[] c,
int m,
int n,
long grix,
int rix,
int cix) |
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, createSparseSideInputs, execute, execute, getDenseMatrices, getTotalInputNnz, getTotalInputSize, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getVector, getVector, prepInputMatrices, prepInputMatrices, prepInputMatrices, prepInputMatrices, prepInputMatrices, prepInputScalars
public SpoofMultiAggregate(boolean sparseSafe, SpoofCellwise.AggOp... aggOps)
public SpoofCellwise.AggOp[] getAggOps()
public boolean isSparseSafe()
public String getSpoofType()
getSpoofType
in class SpoofOperator
public MatrixBlock execute(ArrayList<MatrixBlock> inputs, ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalarObjects, MatrixBlock out)
execute
in class SpoofOperator
public MatrixBlock execute(ArrayList<MatrixBlock> inputs, ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalarObjects, MatrixBlock out, int k)
execute
in class SpoofOperator
public MatrixBlock execute(ArrayList<MatrixBlock> inputs, ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalarObjects, MatrixBlock out, int k, long rix)
protected final void genexec(double a, SpoofOperator.SideInput[] b, double[] scalars, double[] c, int m, int n, int rix, int cix)
protected abstract void genexec(double a, SpoofOperator.SideInput[] b, double[] scalars, double[] c, int m, int n, long grix, int rix, int cix)
public static double getInitialValue(SpoofCellwise.AggOp aggop)
public static void aggregatePartialResults(SpoofCellwise.AggOp[] aggOps, MatrixBlock c, MatrixBlock b)
public static org.apache.sysml.runtime.functionobjects.ValueFunction[] getAggFunctions(SpoofCellwise.AggOp[] aggOps)
Copyright © 2018 The Apache Software Foundation. All rights reserved.