public abstract class SpoofOperator extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SpoofOperator.SideInput |
static class |
SpoofOperator.SideInputSparseCell |
static class |
SpoofOperator.SideInputSparseRow |
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) |
protected static SpoofOperator.SideInput[] |
createSparseSideInputs(SpoofOperator.SideInput[] input,
boolean row) |
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 DenseBlock[] |
getDenseMatrices(SpoofOperator.SideInput[] inputs) |
abstract String |
getSpoofType() |
static long |
getTotalInputNnz(ArrayList<MatrixBlock> inputs) |
static long |
getTotalInputSize(ArrayList<MatrixBlock> inputs) |
protected static double |
getValue(double[] data,
double index) |
protected static double |
getValue(double[] data,
int index) |
protected static double |
getValue(double[] avals,
int[] aix,
int ai,
int alen,
double colIndex) |
protected static double |
getValue(double[] avals,
int[] aix,
int ai,
int alen,
int colIndex) |
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)
public MatrixBlock execute(ArrayList<MatrixBlock> inputs, ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalars, MatrixBlock out, int k)
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)
public org.apache.sysml.runtime.instructions.cp.ScalarObject execute(ArrayList<MatrixBlock> inputs, ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalars, int k)
protected SpoofOperator.SideInput[] prepInputMatrices(ArrayList<MatrixBlock> inputs)
protected SpoofOperator.SideInput[] prepInputMatrices(ArrayList<MatrixBlock> inputs, boolean denseOnly)
protected SpoofOperator.SideInput[] prepInputMatrices(ArrayList<MatrixBlock> inputs, int offset, boolean denseOnly)
protected SpoofOperator.SideInput[] prepInputMatrices(ArrayList<MatrixBlock> inputs, boolean denseOnly, boolean tB1)
protected SpoofOperator.SideInput[] prepInputMatrices(ArrayList<MatrixBlock> inputs, int offset, int len, boolean denseOnly, boolean tB1)
protected static SpoofOperator.SideInput[] createSparseSideInputs(SpoofOperator.SideInput[] input)
protected static SpoofOperator.SideInput[] createSparseSideInputs(SpoofOperator.SideInput[] input, boolean row)
public static DenseBlock[] getDenseMatrices(SpoofOperator.SideInput[] inputs)
protected static double[] prepInputScalars(ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalarObjects)
public static long getTotalInputNnz(ArrayList<MatrixBlock> inputs)
public static long getTotalInputSize(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(double[] avals, int[] aix, int ai, int alen, double colIndex)
protected static double getValue(double[] avals, int[] aix, int ai, int alen, 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 © 2018 The Apache Software Foundation. All rights reserved.