public class OperationsOnMatrixValues extends Object
Constructor and Description |
---|
OperationsOnMatrixValues() |
Modifier and Type | Method and Description |
---|---|
static void |
incrementalAggregation(MatrixValue valueAgg,
MatrixValue correction,
MatrixValue valueAdd,
org.apache.sysml.runtime.matrix.operators.AggregateOperator op,
boolean imbededCorrection) |
static void |
performAggregateBinary(MatrixIndexes indexes1,
MatrixValue value1,
MatrixIndexes indexes2,
MatrixValue value2,
MatrixIndexes indexesOut,
MatrixValue valueOut,
org.apache.sysml.runtime.matrix.operators.AggregateBinaryOperator op) |
static MatrixValue |
performAggregateBinaryIgnoreIndexes(MatrixValue value1,
MatrixValue value2,
MatrixValue valueOut,
org.apache.sysml.runtime.matrix.operators.AggregateBinaryOperator op) |
static void |
performAggregateUnary(MatrixIndexes indexesIn,
MatrixValue valueIn,
MatrixIndexes indexesOut,
MatrixValue valueOut,
org.apache.sysml.runtime.matrix.operators.AggregateUnaryOperator op,
int brlen,
int bclen) |
static void |
performAppend(MatrixValue valueIn1,
MatrixValue valueIn2,
ArrayList<org.apache.sysml.runtime.matrix.mapred.IndexedMatrixValue> outlist,
int blockRowFactor,
int blockColFactor,
boolean cbind,
boolean m2IsLast,
int nextNCol) |
static void |
performBinaryIgnoreIndexes(MatrixValue value1,
MatrixValue value2,
MatrixValue valueOut,
org.apache.sysml.runtime.matrix.operators.BinaryOperator op) |
static void |
performMapGroupedAggregate(org.apache.sysml.runtime.matrix.operators.Operator op,
org.apache.sysml.runtime.matrix.mapred.IndexedMatrixValue inTarget,
MatrixBlock groups,
int ngroups,
int brlen,
int bclen,
ArrayList<org.apache.sysml.runtime.matrix.mapred.IndexedMatrixValue> outlist) |
static void |
performReorg(MatrixIndexes indexesIn,
MatrixValue valueIn,
MatrixIndexes indexesOut,
MatrixValue valueOut,
org.apache.sysml.runtime.matrix.operators.ReorgOperator op,
int startRow,
int startColumn,
int length) |
static void |
performScalarIgnoreIndexes(MatrixValue valueIn,
MatrixValue valueOut,
org.apache.sysml.runtime.matrix.operators.ScalarOperator op) |
static void |
performShift(org.apache.sysml.runtime.matrix.mapred.IndexedMatrixValue in,
org.apache.sysml.runtime.util.IndexRange ixrange,
int brlen,
int bclen,
long rlen,
long clen,
ArrayList<org.apache.sysml.runtime.matrix.mapred.IndexedMatrixValue> outlist) |
static void |
performShift(Pair<Long,FrameBlock> in,
org.apache.sysml.runtime.util.IndexRange ixrange,
int brlenLeft,
int clenLeft,
long rlen,
long clen,
ArrayList<Pair<Long,FrameBlock>> outlist) |
static void |
performSlice(org.apache.sysml.runtime.matrix.mapred.IndexedMatrixValue in,
org.apache.sysml.runtime.util.IndexRange ixrange,
int brlen,
int bclen,
ArrayList<org.apache.sysml.runtime.matrix.mapred.IndexedMatrixValue> outlist) |
static ArrayList |
performSlice(org.apache.sysml.runtime.util.IndexRange ixrange,
int brlen,
int bclen,
int iix,
int jix,
org.apache.sysml.runtime.controlprogram.caching.CacheBlock in) |
static ArrayList |
performSlice(org.apache.sysml.runtime.util.IndexRange ixrange,
int brlen,
int bclen,
int iix,
int jix,
FrameBlock in) |
static ArrayList |
performSlice(org.apache.sysml.runtime.util.IndexRange ixrange,
int brlen,
int bclen,
int iix,
int jix,
MatrixBlock in) |
static void |
performSlice(Pair<Long,FrameBlock> in,
org.apache.sysml.runtime.util.IndexRange ixrange,
int brlen,
int bclen,
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 |
performTernary(MatrixIndexes indexesIn1,
MatrixValue valueIn1,
double scalarIn2,
boolean left,
int brlen,
CTableMap resultMap,
MatrixBlock resultBlock,
org.apache.sysml.runtime.matrix.operators.Operator op) |
static void |
performTernary(MatrixIndexes indexesIn1,
MatrixValue valueIn1,
double scalarIn2,
double scalarIn3,
CTableMap resultMap,
MatrixBlock resultBlock,
org.apache.sysml.runtime.matrix.operators.Operator op) |
static void |
performTernary(MatrixIndexes indexesIn1,
MatrixValue valueIn1,
double scalarIn2,
MatrixIndexes indexesIn3,
MatrixValue valueIn3,
CTableMap resultMap,
MatrixBlock resultBlock,
org.apache.sysml.runtime.matrix.operators.Operator op) |
static void |
performTernary(MatrixIndexes indexesIn1,
MatrixValue valueIn1,
MatrixIndexes indexesIn2,
MatrixValue valueIn2,
double scalarIn3,
CTableMap resultMap,
MatrixBlock resultBlock,
org.apache.sysml.runtime.matrix.operators.Operator op) |
static void |
performTernary(MatrixIndexes indexesIn1,
MatrixValue valueIn1,
MatrixIndexes indexesIn2,
MatrixValue valueIn2,
MatrixIndexes indexesIn3,
MatrixValue valueIn3,
CTableMap resultMap,
MatrixBlock resultBlock,
org.apache.sysml.runtime.matrix.operators.Operator op) |
static void |
performUnaryIgnoreIndexes(MatrixValue valueIn,
MatrixValue valueOut,
org.apache.sysml.runtime.matrix.operators.UnaryOperator op) |
static void |
performZeroOut(MatrixIndexes indexesIn,
MatrixValue valueIn,
MatrixIndexes indexesOut,
MatrixValue valueOut,
org.apache.sysml.runtime.util.IndexRange range,
boolean complementary) |
static void |
startAggregation(MatrixValue valueOut,
MatrixValue correction,
org.apache.sysml.runtime.matrix.operators.AggregateOperator op,
int rlen,
int clen,
boolean sparseHint,
boolean imbededCorrection) |
public static void performScalarIgnoreIndexes(MatrixValue valueIn, MatrixValue valueOut, org.apache.sysml.runtime.matrix.operators.ScalarOperator op) throws DMLRuntimeException
DMLRuntimeException
public static void performUnaryIgnoreIndexes(MatrixValue valueIn, MatrixValue valueOut, org.apache.sysml.runtime.matrix.operators.UnaryOperator op) throws DMLRuntimeException
DMLRuntimeException
public static void performReorg(MatrixIndexes indexesIn, MatrixValue valueIn, MatrixIndexes indexesOut, MatrixValue valueOut, org.apache.sysml.runtime.matrix.operators.ReorgOperator op, int startRow, int startColumn, int length) throws DMLRuntimeException
DMLRuntimeException
public static void performAppend(MatrixValue valueIn1, MatrixValue valueIn2, ArrayList<org.apache.sysml.runtime.matrix.mapred.IndexedMatrixValue> outlist, int blockRowFactor, int blockColFactor, boolean cbind, boolean m2IsLast, int nextNCol) throws DMLRuntimeException
DMLRuntimeException
public static void performZeroOut(MatrixIndexes indexesIn, MatrixValue valueIn, MatrixIndexes indexesOut, MatrixValue valueOut, org.apache.sysml.runtime.util.IndexRange range, boolean complementary) throws DMLRuntimeException
DMLRuntimeException
public static void performTernary(MatrixIndexes indexesIn1, MatrixValue valueIn1, MatrixIndexes indexesIn2, MatrixValue valueIn2, MatrixIndexes indexesIn3, MatrixValue valueIn3, CTableMap resultMap, MatrixBlock resultBlock, org.apache.sysml.runtime.matrix.operators.Operator op) throws DMLRuntimeException
DMLRuntimeException
public static void performTernary(MatrixIndexes indexesIn1, MatrixValue valueIn1, MatrixIndexes indexesIn2, MatrixValue valueIn2, double scalarIn3, CTableMap resultMap, MatrixBlock resultBlock, org.apache.sysml.runtime.matrix.operators.Operator op) throws DMLRuntimeException
DMLRuntimeException
public static void performTernary(MatrixIndexes indexesIn1, MatrixValue valueIn1, double scalarIn2, double scalarIn3, CTableMap resultMap, MatrixBlock resultBlock, org.apache.sysml.runtime.matrix.operators.Operator op) throws DMLRuntimeException
DMLRuntimeException
public static void performTernary(MatrixIndexes indexesIn1, MatrixValue valueIn1, double scalarIn2, boolean left, int brlen, CTableMap resultMap, MatrixBlock resultBlock, org.apache.sysml.runtime.matrix.operators.Operator op) throws DMLRuntimeException
DMLRuntimeException
public static void performTernary(MatrixIndexes indexesIn1, MatrixValue valueIn1, double scalarIn2, MatrixIndexes indexesIn3, MatrixValue valueIn3, CTableMap resultMap, MatrixBlock resultBlock, org.apache.sysml.runtime.matrix.operators.Operator op) throws DMLRuntimeException
DMLRuntimeException
public static void performBinaryIgnoreIndexes(MatrixValue value1, MatrixValue value2, MatrixValue valueOut, org.apache.sysml.runtime.matrix.operators.BinaryOperator op) throws DMLRuntimeException
DMLRuntimeException
public static void startAggregation(MatrixValue valueOut, MatrixValue correction, org.apache.sysml.runtime.matrix.operators.AggregateOperator op, int rlen, int clen, boolean sparseHint, boolean imbededCorrection) throws DMLRuntimeException
DMLRuntimeException
public static void incrementalAggregation(MatrixValue valueAgg, MatrixValue correction, MatrixValue valueAdd, org.apache.sysml.runtime.matrix.operators.AggregateOperator op, boolean imbededCorrection) throws DMLRuntimeException
DMLRuntimeException
public static void performAggregateUnary(MatrixIndexes indexesIn, MatrixValue valueIn, MatrixIndexes indexesOut, MatrixValue valueOut, org.apache.sysml.runtime.matrix.operators.AggregateUnaryOperator op, int brlen, int bclen) throws DMLRuntimeException
DMLRuntimeException
public static void performAggregateBinary(MatrixIndexes indexes1, MatrixValue value1, MatrixIndexes indexes2, MatrixValue value2, MatrixIndexes indexesOut, MatrixValue valueOut, org.apache.sysml.runtime.matrix.operators.AggregateBinaryOperator op) throws DMLRuntimeException
DMLRuntimeException
public static MatrixValue performAggregateBinaryIgnoreIndexes(MatrixValue value1, MatrixValue value2, MatrixValue valueOut, org.apache.sysml.runtime.matrix.operators.AggregateBinaryOperator op) throws DMLRuntimeException
DMLRuntimeException
public static ArrayList performSlice(org.apache.sysml.runtime.util.IndexRange ixrange, int brlen, int bclen, int iix, int jix, org.apache.sysml.runtime.controlprogram.caching.CacheBlock in) throws DMLRuntimeException
DMLRuntimeException
public static ArrayList performSlice(org.apache.sysml.runtime.util.IndexRange ixrange, int brlen, int bclen, int iix, int jix, MatrixBlock in) throws DMLRuntimeException
DMLRuntimeException
public static void performSlice(org.apache.sysml.runtime.matrix.mapred.IndexedMatrixValue in, org.apache.sysml.runtime.util.IndexRange ixrange, int brlen, int bclen, ArrayList<org.apache.sysml.runtime.matrix.mapred.IndexedMatrixValue> outlist) throws DMLRuntimeException
DMLRuntimeException
public static void performShift(org.apache.sysml.runtime.matrix.mapred.IndexedMatrixValue in, org.apache.sysml.runtime.util.IndexRange ixrange, int brlen, int bclen, long rlen, long clen, ArrayList<org.apache.sysml.runtime.matrix.mapred.IndexedMatrixValue> outlist) throws DMLRuntimeException
DMLRuntimeException
public static void performMapGroupedAggregate(org.apache.sysml.runtime.matrix.operators.Operator op, org.apache.sysml.runtime.matrix.mapred.IndexedMatrixValue inTarget, MatrixBlock groups, int ngroups, int brlen, int bclen, ArrayList<org.apache.sysml.runtime.matrix.mapred.IndexedMatrixValue> outlist) throws DMLRuntimeException
DMLRuntimeException
public static ArrayList performSlice(org.apache.sysml.runtime.util.IndexRange ixrange, int brlen, int bclen, int iix, int jix, FrameBlock in) throws DMLRuntimeException
DMLRuntimeException
public static void performSlice(Pair<Long,FrameBlock> in, org.apache.sysml.runtime.util.IndexRange ixrange, int brlen, int bclen, ArrayList<Pair<Long,FrameBlock>> outlist) throws DMLRuntimeException
in
- ?ixrange
- index rangebrlen
- number of rows in a blockbclen
- number of columns in a blockoutlist
- list of pairs of frame blocksDMLRuntimeException
- if DMLRuntimeException occurspublic static void performShift(Pair<Long,FrameBlock> in, org.apache.sysml.runtime.util.IndexRange ixrange, int brlenLeft, int clenLeft, long rlen, long clen, ArrayList<Pair<Long,FrameBlock>> outlist) throws DMLRuntimeException
DMLRuntimeException
Copyright © 2017 The Apache Software Foundation. All rights reserved.