public abstract class SpoofCellwise extends SpoofOperator implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SpoofCellwise.AggOp |
static class |
SpoofCellwise.CellType |
SpoofOperator.SideInput, SpoofOperator.SideInputSparseCell, SpoofOperator.SideInputSparseRow
PAR_MINFLOP_THRESHOLD, PAR_NUMCELL_THRESHOLD
Constructor and Description |
---|
SpoofCellwise(SpoofCellwise.CellType type,
boolean sparseSafe,
SpoofCellwise.AggOp aggOp) |
Modifier and Type | Method and Description |
---|---|
org.apache.sysml.runtime.instructions.cp.ScalarObject |
execute(ArrayList<MatrixBlock> inputs,
ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalarObjects,
int k) |
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 double |
genexec(double a,
SpoofOperator.SideInput[] b,
double[] scalars,
int m,
int n,
int rowIndex,
int colIndex) |
SpoofCellwise.AggOp |
getAggOp() |
SpoofCellwise.CellType |
getCellType() |
String |
getSpoofType() |
boolean |
isSparseSafe() |
createSparseSideInputs, createSparseSideInputs, execute, getDenseMatrices, getTotalInputNnz, getTotalInputSize, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getVector, getVector, prepInputMatrices, prepInputMatrices, prepInputMatrices, prepInputMatrices, prepInputMatrices, prepInputScalars
public SpoofCellwise(SpoofCellwise.CellType type, boolean sparseSafe, SpoofCellwise.AggOp aggOp)
public SpoofCellwise.CellType getCellType()
public SpoofCellwise.AggOp getAggOp()
public boolean isSparseSafe()
public String getSpoofType()
getSpoofType
in class SpoofOperator
public org.apache.sysml.runtime.instructions.cp.ScalarObject execute(ArrayList<MatrixBlock> inputs, ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalarObjects, int k) throws DMLRuntimeException
execute
in class SpoofOperator
DMLRuntimeException
public MatrixBlock execute(ArrayList<MatrixBlock> inputs, ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalarObjects, MatrixBlock out) throws DMLRuntimeException
execute
in class SpoofOperator
DMLRuntimeException
public MatrixBlock execute(ArrayList<MatrixBlock> inputs, ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalarObjects, MatrixBlock out, int k) throws DMLRuntimeException
execute
in class SpoofOperator
DMLRuntimeException
protected abstract double genexec(double a, SpoofOperator.SideInput[] b, double[] scalars, int m, int n, int rowIndex, int colIndex)
Copyright © 2017 The Apache Software Foundation. All rights reserved.