public abstract class SpoofRowwise extends SpoofOperator
Modifier and Type | Class and Description |
---|---|
static class |
SpoofRowwise.RowType |
SpoofOperator.SideInput, SpoofOperator.SideInputSparseCell, SpoofOperator.SideInputSparseRow
Modifier and Type | Field and Description |
---|---|
protected long |
_constDim2 |
protected int |
_reqVectMem |
protected boolean |
_tB1 |
protected SpoofRowwise.RowType |
_type |
PAR_MINFLOP_THRESHOLD, PAR_NUMCELL_THRESHOLD
Constructor and Description |
---|
SpoofRowwise(SpoofRowwise.RowType type,
long constDim2,
boolean tB1,
int reqVectMem) |
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,
boolean allocTmp,
boolean aggIncr,
long rix) |
MatrixBlock |
execute(ArrayList<MatrixBlock> inputs,
ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalarObjects,
MatrixBlock out,
int k) |
protected void |
genexec(double[] avals,
int[] aix,
int ai,
SpoofOperator.SideInput[] b,
double[] scalars,
double[] c,
int ci,
int alen,
int n,
int rix) |
protected abstract void |
genexec(double[] avals,
int[] aix,
int ai,
SpoofOperator.SideInput[] b,
double[] scalars,
double[] c,
int ci,
int alen,
int n,
long grix,
int rix) |
protected void |
genexec(double[] a,
int ai,
SpoofOperator.SideInput[] b,
double[] scalars,
double[] c,
int ci,
int len,
int rix) |
protected abstract void |
genexec(double[] a,
int ai,
SpoofOperator.SideInput[] b,
double[] scalars,
double[] c,
int ci,
int len,
long grix,
int rix) |
long |
getConstDim2() |
int |
getNumIntermediates() |
SpoofRowwise.RowType |
getRowType() |
String |
getSpoofType() |
static boolean |
hasMatrixSideInput(ArrayList<MatrixBlock> inputs) |
createSparseSideInputs, createSparseSideInputs, execute, getDenseMatrices, getTotalInputNnz, getTotalInputSize, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getVector, getVector, prepInputMatrices, prepInputMatrices, prepInputMatrices, prepInputMatrices, prepInputMatrices, prepInputScalars
protected final SpoofRowwise.RowType _type
protected final long _constDim2
protected final boolean _tB1
protected final int _reqVectMem
public SpoofRowwise(SpoofRowwise.RowType type, long constDim2, boolean tB1, int reqVectMem)
public SpoofRowwise.RowType getRowType()
public long getConstDim2()
public int getNumIntermediates()
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)
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, boolean allocTmp, boolean aggIncr, long rix)
public MatrixBlock execute(ArrayList<MatrixBlock> inputs, ArrayList<org.apache.sysml.runtime.instructions.cp.ScalarObject> scalarObjects, MatrixBlock out, int k)
execute
in class SpoofOperator
public static boolean hasMatrixSideInput(ArrayList<MatrixBlock> inputs)
protected final void genexec(double[] a, int ai, SpoofOperator.SideInput[] b, double[] scalars, double[] c, int ci, int len, int rix)
protected final void genexec(double[] avals, int[] aix, int ai, SpoofOperator.SideInput[] b, double[] scalars, double[] c, int ci, int alen, int n, int rix)
protected abstract void genexec(double[] a, int ai, SpoofOperator.SideInput[] b, double[] scalars, double[] c, int ci, int len, long grix, int rix)
protected abstract void genexec(double[] avals, int[] aix, int ai, SpoofOperator.SideInput[] b, double[] scalars, double[] c, int ci, int alen, int n, long grix, int rix)
Copyright © 2018 The Apache Software Foundation. All rights reserved.