public abstract class SpoofOperator extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SpoofOperator.SideInput |
static class |
SpoofOperator.SideInputSparse |
Modifier and Type | Field and Description |
---|---|
protected static long |
PAR_MINFLOP_THRESHOLD |
protected static long |
PAR_NUMCELL_THRESHOLD |
Constructor and Description |
---|
SpoofOperator() |
Modifier and Type | Method and Description |
---|---|
protected static SpoofOperator.SideInput[] |
createSparseSideInputs(SpoofOperator.SideInput[] input) |
org.apache.sysml.runtime.instructions.cp.ScalarObject |
execute(ArrayList<MatrixBlock> inputs,
ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalars) |
org.apache.sysml.runtime.instructions.cp.ScalarObject |
execute(ArrayList<MatrixBlock> inputs,
ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalars,
int k) |
abstract MatrixBlock |
execute(ArrayList<MatrixBlock> inputs,
ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalars,
MatrixBlock out) |
MatrixBlock |
execute(ArrayList<MatrixBlock> inputs,
ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalars,
MatrixBlock out,
int k) |
static double[][] |
getDenseMatrices(SpoofOperator.SideInput[] inputs) |
abstract String |
getSpoofType() |
static long |
getTotalInputNnz(ArrayList<MatrixBlock> inputs) |
protected static double |
getValue(double[] data,
double index) |
protected static double |
getValue(double[] data,
int index) |
protected static double |
getValue(double[] data,
int n,
double rowIndex,
double colIndex) |
protected static double |
getValue(double[] data,
int n,
int rowIndex,
int colIndex) |
protected static double |
getValue(SpoofOperator.SideInput data,
double rowIndex) |
protected static double |
getValue(SpoofOperator.SideInput data,
int rowIndex) |
protected static double |
getValue(SpoofOperator.SideInput data,
int n,
double rowIndex,
double colIndex) |
protected static double |
getValue(SpoofOperator.SideInput data,
int n,
int rowIndex,
int colIndex) |
protected static double[] |
getVector(SpoofOperator.SideInput data,
int n,
double rowIndex,
double colIndex) |
protected static double[] |
getVector(SpoofOperator.SideInput data,
int n,
int rowIndex,
int colIndex) |
protected SpoofOperator.SideInput[] |
prepInputMatrices(ArrayList<MatrixBlock> inputs) |
protected SpoofOperator.SideInput[] |
prepInputMatrices(ArrayList<MatrixBlock> inputs,
boolean denseOnly) |
protected SpoofOperator.SideInput[] |
prepInputMatrices(ArrayList<MatrixBlock> inputs,
boolean denseOnly,
boolean tB1) |
protected SpoofOperator.SideInput[] |
prepInputMatrices(ArrayList<MatrixBlock> inputs,
int offset,
boolean denseOnly) |
protected SpoofOperator.SideInput[] |
prepInputMatrices(ArrayList<MatrixBlock> inputs,
int offset,
int len,
boolean denseOnly,
boolean tB1) |
protected static double[] |
prepInputScalars(ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalarObjects) |
protected static final long PAR_NUMCELL_THRESHOLD
protected static final long PAR_MINFLOP_THRESHOLD
public abstract MatrixBlock execute(ArrayList<MatrixBlock> inputs, ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalars, MatrixBlock out) throws DMLRuntimeException
DMLRuntimeException
public MatrixBlock execute(ArrayList<MatrixBlock> inputs, ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalars, MatrixBlock out, int k) throws DMLRuntimeException
DMLRuntimeException
public abstract String getSpoofType()
public org.apache.sysml.runtime.instructions.cp.ScalarObject execute(ArrayList<MatrixBlock> inputs, ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalars) throws DMLRuntimeException
DMLRuntimeException
public org.apache.sysml.runtime.instructions.cp.ScalarObject execute(ArrayList<MatrixBlock> inputs, ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalars, int k) throws DMLRuntimeException
DMLRuntimeException
protected SpoofOperator.SideInput[] prepInputMatrices(ArrayList<MatrixBlock> inputs) throws DMLRuntimeException
DMLRuntimeException
protected SpoofOperator.SideInput[] prepInputMatrices(ArrayList<MatrixBlock> inputs, boolean denseOnly) throws DMLRuntimeException
DMLRuntimeException
protected SpoofOperator.SideInput[] prepInputMatrices(ArrayList<MatrixBlock> inputs, int offset, boolean denseOnly) throws DMLRuntimeException
DMLRuntimeException
protected SpoofOperator.SideInput[] prepInputMatrices(ArrayList<MatrixBlock> inputs, boolean denseOnly, boolean tB1) throws DMLRuntimeException
DMLRuntimeException
protected SpoofOperator.SideInput[] prepInputMatrices(ArrayList<MatrixBlock> inputs, int offset, int len, boolean denseOnly, boolean tB1) throws DMLRuntimeException
DMLRuntimeException
protected static SpoofOperator.SideInput[] createSparseSideInputs(SpoofOperator.SideInput[] input)
public static double[][] getDenseMatrices(SpoofOperator.SideInput[] inputs)
protected static double[] prepInputScalars(ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalarObjects)
public static long getTotalInputNnz(ArrayList<MatrixBlock> inputs)
protected static double getValue(double[] data, double index)
protected static double getValue(double[] data, int index)
protected static double getValue(double[] data, int n, double rowIndex, double colIndex)
protected static double getValue(double[] data, int n, int rowIndex, int colIndex)
protected static double getValue(SpoofOperator.SideInput data, double rowIndex)
protected static double getValue(SpoofOperator.SideInput data, int rowIndex)
protected static double getValue(SpoofOperator.SideInput data, int n, double rowIndex, double colIndex)
protected static double getValue(SpoofOperator.SideInput data, int n, int rowIndex, int colIndex)
protected static double[] getVector(SpoofOperator.SideInput data, int n, double rowIndex, double colIndex)
protected static double[] getVector(SpoofOperator.SideInput data, int n, int rowIndex, int colIndex)
Copyright © 2017 The Apache Software Foundation. All rights reserved.