public class LibMatrixOuterAgg extends Object
Modifier and Type | Method and Description |
---|---|
static void |
adjustRowIndicesMax(int[] vix,
double[] vmb,
org.apache.sysml.runtime.matrix.operators.BinaryOperator bOp)
This function adjusts indices to be leveraged in uarimaxXX functions.
|
static void |
adjustRowIndicesMin(int[] vix,
double[] vmb,
org.apache.sysml.runtime.matrix.operators.BinaryOperator bOp)
This function adjusts indices to be leveraged in uariminXX functions.
|
static void |
aggregateMatrix(MatrixBlock in1Val,
MatrixBlock outVal,
double[] bv,
int[] bvi,
org.apache.sysml.runtime.matrix.operators.BinaryOperator bOp,
org.apache.sysml.runtime.matrix.operators.AggregateUnaryOperator uaggOp) |
static boolean |
isCompareOperator(org.apache.sysml.runtime.matrix.operators.BinaryOperator bOp)
This will return if uaggOp is of type RowIndexMin
|
static boolean |
isRowIndexMax(org.apache.sysml.runtime.matrix.operators.AggregateUnaryOperator uaggOp)
This will return if uaggOp is of type RowIndexMax
|
static boolean |
isRowIndexMin(org.apache.sysml.runtime.matrix.operators.AggregateUnaryOperator uaggOp)
This will return if uaggOp is of type RowIndexMin
|
static boolean |
isSupportedUaggOp(org.apache.sysml.runtime.matrix.operators.AggregateUnaryOperator uaggOp,
org.apache.sysml.runtime.matrix.operators.BinaryOperator bOp) |
static int[] |
prepareRowIndices(int iCols,
double[] vmb,
org.apache.sysml.runtime.matrix.operators.BinaryOperator bOp,
org.apache.sysml.runtime.matrix.operators.AggregateUnaryOperator uaggOp) |
static int[] |
prepareRowIndicesMax(int iCols,
double[] vmb,
org.apache.sysml.runtime.matrix.operators.BinaryOperator bOp)
This function will return max indices, based on column vector data.
|
static int[] |
prepareRowIndicesMin(int iCols,
double[] vmb,
org.apache.sysml.runtime.matrix.operators.BinaryOperator bOp)
This function will return min indices, based on column vector data.
|
static void |
resetOutputMatrix(MatrixIndexes in1Ix,
MatrixBlock in1Val,
MatrixIndexes outIx,
MatrixBlock outVal,
org.apache.sysml.runtime.matrix.operators.AggregateUnaryOperator uaggOp)
ReSet output matrix
|
static void |
setMaxIndexInPartition(int[] vix,
double[] vmb)
This function will set maximum index in the partition to all cells in partition.
|
static void |
setMinIndexInPartition(int[] vix,
double[] vmb)
This function will set minimum index in the partition to all cells in partition.
|
static void |
shiftLeft(int[] vix,
double[] vmb)
This function will shift indices from one partition to next in left direction.
|
static void |
shiftRight(int[] vix,
double[] vmb)
This function will shift indices from one partition to next in right direction.
|
public static boolean isRowIndexMax(org.apache.sysml.runtime.matrix.operators.AggregateUnaryOperator uaggOp)
uaggOp
- aggregate unary operatorpublic static boolean isRowIndexMin(org.apache.sysml.runtime.matrix.operators.AggregateUnaryOperator uaggOp)
uaggOp
- aggregate unary operatorpublic static boolean isCompareOperator(org.apache.sysml.runtime.matrix.operators.BinaryOperator bOp)
bOp
- binary operatorpublic static boolean isSupportedUaggOp(org.apache.sysml.runtime.matrix.operators.AggregateUnaryOperator uaggOp, org.apache.sysml.runtime.matrix.operators.BinaryOperator bOp)
public static int[] prepareRowIndices(int iCols, double[] vmb, org.apache.sysml.runtime.matrix.operators.BinaryOperator bOp, org.apache.sysml.runtime.matrix.operators.AggregateUnaryOperator uaggOp)
public static int[] prepareRowIndicesMax(int iCols, double[] vmb, org.apache.sysml.runtime.matrix.operators.BinaryOperator bOp)
iCols
- ?vmb
- ?bOp
- binary operatorpublic static int[] prepareRowIndicesMin(int iCols, double[] vmb, org.apache.sysml.runtime.matrix.operators.BinaryOperator bOp)
iCols
- ?vmb
- ?bOp
- binary operatorpublic static void resetOutputMatrix(MatrixIndexes in1Ix, MatrixBlock in1Val, MatrixIndexes outIx, MatrixBlock outVal, org.apache.sysml.runtime.matrix.operators.AggregateUnaryOperator uaggOp)
in1Ix
- input matrix indexesin1Val
- input matrix blockoutIx
- output matrix indexesoutVal
- output matrix blockuaggOp
- aggregate unary operatorpublic static void aggregateMatrix(MatrixBlock in1Val, MatrixBlock outVal, double[] bv, int[] bvi, org.apache.sysml.runtime.matrix.operators.BinaryOperator bOp, org.apache.sysml.runtime.matrix.operators.AggregateUnaryOperator uaggOp)
public static void adjustRowIndicesMax(int[] vix, double[] vmb, org.apache.sysml.runtime.matrix.operators.BinaryOperator bOp)
vix
- ?vmb
- ?bOp
- binary operatorpublic static void adjustRowIndicesMin(int[] vix, double[] vmb, org.apache.sysml.runtime.matrix.operators.BinaryOperator bOp)
vix
- ?vmb
- ?bOp
- binary operatorpublic static void shiftRight(int[] vix, double[] vmb)
vix
- ?vmb
- ?public static void shiftLeft(int[] vix, double[] vmb)
vix
- ?vmb
- ?public static void setMinIndexInPartition(int[] vix, double[] vmb)
vix
- ?vmb
- ?public static void setMaxIndexInPartition(int[] vix, double[] vmb)
vix
- ?vmb
- ?Copyright © 2018 The Apache Software Foundation. All rights reserved.