public class LibMatrixOuterAgg extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
adjustRowIndicesMax(int[] vix,
double[] vmb,
BinaryOperator bOp)
This function adjusts indices to be leveraged in uarimaxXX functions.
|
static void |
adjustRowIndicesMin(int[] vix,
double[] vmb,
BinaryOperator bOp)
This function adjusts indices to be leveraged in uariminXX functions.
|
static void |
aggregateMatrix(MatrixBlock in1Val,
MatrixBlock outVal,
double[] bv,
int[] bvi,
BinaryOperator bOp,
AggregateUnaryOperator uaggOp) |
static boolean |
isCompareOperator(BinaryOperator bOp)
This will return if uaggOp is of type RowIndexMin
|
static boolean |
isRowIndexMax(AggregateUnaryOperator uaggOp)
This will return if uaggOp is of type RowIndexMax
|
static boolean |
isRowIndexMin(AggregateUnaryOperator uaggOp)
This will return if uaggOp is of type RowIndexMin
|
static boolean |
isSupportedUaggOp(AggregateUnaryOperator uaggOp,
BinaryOperator bOp) |
static int[] |
prepareRowIndices(int iCols,
double[] vmb,
BinaryOperator bOp,
AggregateUnaryOperator uaggOp) |
static int[] |
prepareRowIndicesMax(int iCols,
double[] vmb,
BinaryOperator bOp)
This function will return max indices, based on column vector data.
|
static int[] |
prepareRowIndicesMin(int iCols,
double[] vmb,
BinaryOperator bOp)
This function will return min indices, based on column vector data.
|
static void |
resetOutputMatrix(MatrixIndexes in1Ix,
MatrixBlock in1Val,
MatrixIndexes outIx,
MatrixBlock outVal,
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(AggregateUnaryOperator uaggOp)
uaggOp - aggregate unary operatorpublic static boolean isRowIndexMin(AggregateUnaryOperator uaggOp)
uaggOp - aggregate unary operatorpublic static boolean isCompareOperator(BinaryOperator bOp)
bOp - binary operatorpublic static boolean isSupportedUaggOp(AggregateUnaryOperator uaggOp, BinaryOperator bOp)
public static int[] prepareRowIndices(int iCols,
double[] vmb,
BinaryOperator bOp,
AggregateUnaryOperator uaggOp)
public static int[] prepareRowIndicesMax(int iCols,
double[] vmb,
BinaryOperator bOp)
iCols - ?vmb - ?bOp - binary operatorpublic static int[] prepareRowIndicesMin(int iCols,
double[] vmb,
BinaryOperator bOp)
iCols - ?vmb - ?bOp - binary operatorpublic static void resetOutputMatrix(MatrixIndexes in1Ix, MatrixBlock in1Val, MatrixIndexes outIx, MatrixBlock outVal, 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, BinaryOperator bOp, AggregateUnaryOperator uaggOp)
public static void adjustRowIndicesMax(int[] vix,
double[] vmb,
BinaryOperator bOp)
vix - ?vmb - ?bOp - binary operatorpublic static void adjustRowIndicesMin(int[] vix,
double[] vmb,
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 © 2020 The Apache Software Foundation. All rights reserved.