public abstract class SpoofOuterProduct extends SpoofOperator
Modifier and Type | Class and Description |
---|---|
static class |
SpoofOuterProduct.OutProdType |
SpoofOperator.SideInput, SpoofOperator.SideInputSparseCell, SpoofOperator.SideInputSparseRow
Modifier and Type | Field and Description |
---|---|
protected SpoofOuterProduct.OutProdType |
_outerProductType |
PAR_MINFLOP_THRESHOLD, PAR_NUMCELL_THRESHOLD
Constructor and Description |
---|
SpoofOuterProduct(SpoofOuterProduct.OutProdType type) |
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) |
org.apache.sysml.runtime.instructions.cp.ScalarObject |
execute(ArrayList<MatrixBlock> inputs,
ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalarObjects,
int numThreads) |
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 numThreads) |
protected abstract double |
genexecCellwise(double a,
double[] u,
int ui,
double[] v,
int vi,
SpoofOperator.SideInput[] b,
double[] scalars,
int m,
int n,
int k,
int rowIndex,
int colIndex) |
protected abstract void |
genexecDense(double a,
double[] u,
int ui,
double[] v,
int vi,
SpoofOperator.SideInput[] b,
double[] scalars,
double[] c,
int ci,
int m,
int n,
int k,
int rowIndex,
int colIndex) |
SpoofOuterProduct.OutProdType |
getOuterProdType() |
String |
getSpoofType() |
void |
setOuterProdType(SpoofOuterProduct.OutProdType type) |
createSparseSideInputs, createSparseSideInputs, getDenseMatrices, getTotalInputNnz, getTotalInputSize, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getVector, getVector, prepInputMatrices, prepInputMatrices, prepInputMatrices, prepInputMatrices, prepInputMatrices, prepInputScalars
protected SpoofOuterProduct.OutProdType _outerProductType
public SpoofOuterProduct(SpoofOuterProduct.OutProdType type)
public void setOuterProdType(SpoofOuterProduct.OutProdType type)
public SpoofOuterProduct.OutProdType getOuterProdType()
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)
execute
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 numThreads)
execute
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 numThreads)
execute
in class SpoofOperator
protected abstract void genexecDense(double a, double[] u, int ui, double[] v, int vi, SpoofOperator.SideInput[] b, double[] scalars, double[] c, int ci, int m, int n, int k, int rowIndex, int colIndex)
protected abstract double genexecCellwise(double a, double[] u, int ui, double[] v, int vi, SpoofOperator.SideInput[] b, double[] scalars, int m, int n, int k, int rowIndex, int colIndex)
Copyright © 2018 The Apache Software Foundation. All rights reserved.