public class OperationsOnMatrixValues extends Object
Constructor and Description |
---|
OperationsOnMatrixValues() |
Modifier and Type | Method and Description |
---|---|
static void |
incrementalAggregation(MatrixValue valueAgg,
MatrixValue correction,
MatrixValue valueAdd,
AggregateOperator op,
boolean embeddedCorrection) |
static void |
incrementalAggregation(MatrixValue valueAgg,
MatrixValue correction,
MatrixValue valueAdd,
AggregateOperator op,
boolean embeddedCorrection,
boolean deep) |
static MatrixBlock |
matMult(MatrixBlock value1,
MatrixBlock value2,
MatrixBlock valueOut,
AggregateBinaryOperator op) |
static MatrixBlock |
matMult(MatrixIndexes indexes1,
MatrixBlock value1,
MatrixIndexes indexes2,
MatrixBlock value2,
MatrixIndexes indexesOut,
MatrixBlock valueOut,
AggregateBinaryOperator op) |
static void |
performAggregateUnary(MatrixIndexes indexesIn,
MatrixValue valueIn,
MatrixIndexes indexesOut,
MatrixValue valueOut,
AggregateUnaryOperator op,
int blen) |
static void |
performAppend(MatrixValue valueIn1,
MatrixValue valueIn2,
ArrayList<IndexedMatrixValue> outlist,
int blen,
boolean cbind,
boolean m2IsLast,
int nextNCol) |
static void |
performBinaryIgnoreIndexes(MatrixValue value1,
MatrixValue value2,
MatrixValue valueOut,
BinaryOperator op) |
static void |
performCtable(MatrixIndexes indexesIn1,
MatrixValue valueIn1,
double scalarIn2,
boolean left,
int blen,
CTableMap resultMap,
MatrixBlock resultBlock,
Operator op) |
static void |
performCtable(MatrixIndexes indexesIn1,
MatrixValue valueIn1,
double scalarIn2,
double scalarIn3,
CTableMap resultMap,
MatrixBlock resultBlock,
Operator op) |
static void |
performCtable(MatrixIndexes indexesIn1,
MatrixValue valueIn1,
double scalarIn2,
MatrixIndexes indexesIn3,
MatrixValue valueIn3,
CTableMap resultMap,
MatrixBlock resultBlock,
Operator op) |
static void |
performCtable(MatrixIndexes indexesIn1,
MatrixValue valueIn1,
MatrixIndexes indexesIn2,
MatrixValue valueIn2,
double scalarIn3,
CTableMap resultMap,
MatrixBlock resultBlock,
Operator op) |
static void |
performCtable(MatrixIndexes indexesIn1,
MatrixValue valueIn1,
MatrixIndexes indexesIn2,
MatrixValue valueIn2,
MatrixIndexes indexesIn3,
MatrixValue valueIn3,
CTableMap resultMap,
MatrixBlock resultBlock,
Operator op) |
static void |
performMapGroupedAggregate(Operator op,
IndexedMatrixValue inTarget,
MatrixBlock groups,
int ngroups,
int blen,
ArrayList<IndexedMatrixValue> outlist) |
static void |
performReorg(MatrixIndexes indexesIn,
MatrixValue valueIn,
MatrixIndexes indexesOut,
MatrixValue valueOut,
ReorgOperator op,
int startRow,
int startColumn,
int length) |
static void |
performShift(IndexedMatrixValue in,
IndexRange ixrange,
int blen,
long rlen,
long clen,
ArrayList<IndexedMatrixValue> outlist) |
static void |
performShift(Pair<Long,FrameBlock> in,
IndexRange ixrange,
int blenLeft,
long rlen,
long clen,
ArrayList<Pair<Long,FrameBlock>> outlist) |
static void |
performSlice(IndexedMatrixValue in,
IndexRange ixrange,
int blen,
ArrayList<IndexedMatrixValue> outlist) |
static List |
performSlice(IndexRange ixrange,
int blen,
int iix,
int jix,
CacheBlock in) |
static ArrayList |
performSlice(IndexRange ixrange,
int blen,
int iix,
int jix,
FrameBlock in) |
static List |
performSlice(IndexRange ixrange,
int blen,
int iix,
int jix,
MatrixBlock in) |
static void |
performSlice(Pair<Long,FrameBlock> in,
IndexRange ixrange,
int blen,
ArrayList<Pair<Long,FrameBlock>> outlist)
This function will get slice of the input frame block overlapping in overall slice(Range), slice has requested for.
|
static void |
performZeroOut(MatrixIndexes indexesIn,
MatrixValue valueIn,
MatrixIndexes indexesOut,
MatrixValue valueOut,
IndexRange range,
boolean complementary) |
static void |
startAggregation(MatrixValue valueOut,
MatrixValue correction,
AggregateOperator op,
int rlen,
int clen,
boolean sparseHint,
boolean embeddedCorrection) |
public static void performReorg(MatrixIndexes indexesIn, MatrixValue valueIn, MatrixIndexes indexesOut, MatrixValue valueOut, ReorgOperator op, int startRow, int startColumn, int length)
public static void performAppend(MatrixValue valueIn1, MatrixValue valueIn2, ArrayList<IndexedMatrixValue> outlist, int blen, boolean cbind, boolean m2IsLast, int nextNCol)
public static void performZeroOut(MatrixIndexes indexesIn, MatrixValue valueIn, MatrixIndexes indexesOut, MatrixValue valueOut, IndexRange range, boolean complementary)
public static void performCtable(MatrixIndexes indexesIn1, MatrixValue valueIn1, MatrixIndexes indexesIn2, MatrixValue valueIn2, MatrixIndexes indexesIn3, MatrixValue valueIn3, CTableMap resultMap, MatrixBlock resultBlock, Operator op)
public static void performCtable(MatrixIndexes indexesIn1, MatrixValue valueIn1, MatrixIndexes indexesIn2, MatrixValue valueIn2, double scalarIn3, CTableMap resultMap, MatrixBlock resultBlock, Operator op)
public static void performCtable(MatrixIndexes indexesIn1, MatrixValue valueIn1, double scalarIn2, double scalarIn3, CTableMap resultMap, MatrixBlock resultBlock, Operator op)
public static void performCtable(MatrixIndexes indexesIn1, MatrixValue valueIn1, double scalarIn2, boolean left, int blen, CTableMap resultMap, MatrixBlock resultBlock, Operator op)
public static void performCtable(MatrixIndexes indexesIn1, MatrixValue valueIn1, double scalarIn2, MatrixIndexes indexesIn3, MatrixValue valueIn3, CTableMap resultMap, MatrixBlock resultBlock, Operator op)
public static void performBinaryIgnoreIndexes(MatrixValue value1, MatrixValue value2, MatrixValue valueOut, BinaryOperator op)
public static void startAggregation(MatrixValue valueOut, MatrixValue correction, AggregateOperator op, int rlen, int clen, boolean sparseHint, boolean embeddedCorrection)
public static void incrementalAggregation(MatrixValue valueAgg, MatrixValue correction, MatrixValue valueAdd, AggregateOperator op, boolean embeddedCorrection)
public static void incrementalAggregation(MatrixValue valueAgg, MatrixValue correction, MatrixValue valueAdd, AggregateOperator op, boolean embeddedCorrection, boolean deep)
public static void performAggregateUnary(MatrixIndexes indexesIn, MatrixValue valueIn, MatrixIndexes indexesOut, MatrixValue valueOut, AggregateUnaryOperator op, int blen)
public static MatrixBlock matMult(MatrixIndexes indexes1, MatrixBlock value1, MatrixIndexes indexes2, MatrixBlock value2, MatrixIndexes indexesOut, MatrixBlock valueOut, AggregateBinaryOperator op)
public static MatrixBlock matMult(MatrixBlock value1, MatrixBlock value2, MatrixBlock valueOut, AggregateBinaryOperator op)
public static List performSlice(IndexRange ixrange, int blen, int iix, int jix, CacheBlock in)
public static List performSlice(IndexRange ixrange, int blen, int iix, int jix, MatrixBlock in)
public static void performSlice(IndexedMatrixValue in, IndexRange ixrange, int blen, ArrayList<IndexedMatrixValue> outlist)
public static void performShift(IndexedMatrixValue in, IndexRange ixrange, int blen, long rlen, long clen, ArrayList<IndexedMatrixValue> outlist)
public static void performMapGroupedAggregate(Operator op, IndexedMatrixValue inTarget, MatrixBlock groups, int ngroups, int blen, ArrayList<IndexedMatrixValue> outlist)
public static ArrayList performSlice(IndexRange ixrange, int blen, int iix, int jix, FrameBlock in)
public static void performSlice(Pair<Long,FrameBlock> in, IndexRange ixrange, int blen, ArrayList<Pair<Long,FrameBlock>> outlist)
in
- ?ixrange
- index rangeblen
- block lengthoutlist
- list of pairs of frame blockspublic static void performShift(Pair<Long,FrameBlock> in, IndexRange ixrange, int blenLeft, long rlen, long clen, ArrayList<Pair<Long,FrameBlock>> outlist)
Copyright © 2020 The Apache Software Foundation. All rights reserved.