public class MatrixCell extends MatrixValue implements org.apache.hadoop.io.WritableComparable, Serializable
MatrixValue.CellIndex| Modifier and Type | Field and Description |
|---|---|
protected double |
value |
| Constructor and Description |
|---|
MatrixCell() |
MatrixCell(double v) |
MatrixCell(MatrixCell that) |
MatrixCell(MatrixValue that) |
| Modifier and Type | Method and Description |
|---|---|
MatrixValue |
aggregateUnaryOperations(org.apache.sysml.runtime.matrix.operators.AggregateUnaryOperator op,
MatrixValue result,
int brlen,
int bclen,
MatrixIndexes indexesIn) |
MatrixValue |
aggregateUnaryOperations(org.apache.sysml.runtime.matrix.operators.AggregateUnaryOperator op,
MatrixValue result,
int blockingFactorRow,
int blockingFactorCol,
MatrixIndexes indexesIn,
boolean inCP) |
void |
append(MatrixValue valueIn2,
ArrayList<org.apache.sysml.runtime.matrix.mapred.IndexedMatrixValue> outlist,
int blockRowFactor,
int blockColFactor,
boolean cbind,
boolean m2IsLast,
int nextNCol) |
MatrixValue |
binaryOperations(org.apache.sysml.runtime.matrix.operators.BinaryOperator op,
MatrixValue thatValue,
MatrixValue result) |
void |
binaryOperationsInPlace(org.apache.sysml.runtime.matrix.operators.BinaryOperator op,
MatrixValue thatValue) |
int |
compareTo(MatrixCell o) |
int |
compareTo(Object o) |
void |
copy(MatrixValue that) |
void |
copy(MatrixValue that,
boolean sp) |
void |
ctableOperations(org.apache.sysml.runtime.matrix.operators.Operator op,
double scalarThat,
double scalarThat2,
CTableMap resultMap,
MatrixBlock resultBlock) |
void |
ctableOperations(org.apache.sysml.runtime.matrix.operators.Operator op,
double scalarThat,
MatrixValue that2,
CTableMap resultMap,
MatrixBlock resultBlock) |
void |
ctableOperations(org.apache.sysml.runtime.matrix.operators.Operator op,
MatrixIndexes ix1,
double scalarThat,
boolean left,
int brlen,
CTableMap resultMap,
MatrixBlock resultBlock) |
void |
ctableOperations(org.apache.sysml.runtime.matrix.operators.Operator op,
MatrixValue that,
double scalarThat2,
boolean ignoreZeros,
CTableMap ctableResult,
MatrixBlock ctableResultBlock) |
void |
ctableOperations(org.apache.sysml.runtime.matrix.operators.Operator op,
MatrixValue that,
MatrixValue that2,
CTableMap resultMap,
MatrixBlock resultBlock) |
void |
denseScalarOperationsInPlace(org.apache.sysml.runtime.matrix.operators.ScalarOperator op) |
boolean |
equals(Object o) |
long |
getNonZeros() |
int |
getNumColumns() |
int |
getNumRows() |
double |
getValue() |
double |
getValue(int r,
int c) |
int |
hashCode() |
void |
incrementalAggregate(org.apache.sysml.runtime.matrix.operators.AggregateOperator aggOp,
MatrixValue newWithCorrection) |
void |
incrementalAggregate(org.apache.sysml.runtime.matrix.operators.AggregateOperator aggOp,
MatrixValue correction,
MatrixValue newWithCorrection) |
boolean |
isEmpty() |
boolean |
isInSparseFormat() |
void |
readFields(DataInput in) |
MatrixValue |
reorgOperations(org.apache.sysml.runtime.matrix.operators.ReorgOperator op,
MatrixValue result,
int startRow,
int startColumn,
int length) |
MatrixValue |
replaceOperations(MatrixValue result,
double pattern,
double replacement) |
void |
reset() |
void |
reset(int rl,
int cl) |
void |
reset(int rl,
int cl,
boolean sp) |
void |
reset(int rl,
int cl,
boolean sp,
long nnzs) |
void |
reset(int rl,
int cl,
double v) |
MatrixValue |
scalarOperations(org.apache.sysml.runtime.matrix.operators.ScalarOperator op,
MatrixValue result) |
void |
setValue(double v) |
void |
setValue(int r,
int c,
double v) |
void |
slice(ArrayList<org.apache.sysml.runtime.matrix.mapred.IndexedMatrixValue> outlist,
org.apache.sysml.runtime.util.IndexRange range,
int rowCut,
int colCut,
int blockRowFactor,
int blockColFactor,
int boundaryRlen,
int boundaryClen) |
void |
sparseScalarOperationsInPlace(org.apache.sysml.runtime.matrix.operators.ScalarOperator op) |
void |
sparseUnaryOperationsInPlace(org.apache.sysml.runtime.matrix.operators.UnaryOperator op) |
MatrixValue |
unaryOperations(org.apache.sysml.runtime.matrix.operators.UnaryOperator op,
MatrixValue result) |
void |
write(DataOutput out) |
MatrixValue |
zeroOutOperations(MatrixValue result,
org.apache.sysml.runtime.util.IndexRange range,
boolean complementary) |
public MatrixCell()
public MatrixCell(MatrixCell that)
public MatrixCell(MatrixValue that)
public MatrixCell(double v)
public void setValue(double v)
public double getValue()
public void copy(MatrixValue that, boolean sp)
copy in class MatrixValuepublic void copy(MatrixValue that)
copy in class MatrixValuepublic long getNonZeros()
getNonZeros in class MatrixValuepublic int getNumColumns()
getNumColumns in class MatrixValuepublic int getNumRows()
getNumRows in class MatrixValuepublic double getValue(int r,
int c)
getValue in class MatrixValuepublic boolean isInSparseFormat()
isInSparseFormat in class MatrixValuepublic boolean isEmpty()
isEmpty in class MatrixValuepublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic void reset()
reset in class MatrixValuepublic void reset(int rl,
int cl)
reset in class MatrixValuepublic void reset(int rl,
int cl,
boolean sp)
reset in class MatrixValuepublic void reset(int rl,
int cl,
boolean sp,
long nnzs)
reset in class MatrixValuepublic void reset(int rl,
int cl,
double v)
reset in class MatrixValuepublic void setValue(int r,
int c,
double v)
setValue in class MatrixValuepublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic MatrixValue aggregateUnaryOperations(org.apache.sysml.runtime.matrix.operators.AggregateUnaryOperator op, MatrixValue result, int brlen, int bclen, MatrixIndexes indexesIn) throws DMLRuntimeException
aggregateUnaryOperations in class MatrixValueDMLRuntimeExceptionpublic MatrixValue binaryOperations(org.apache.sysml.runtime.matrix.operators.BinaryOperator op, MatrixValue thatValue, MatrixValue result) throws DMLRuntimeException
binaryOperations in class MatrixValueDMLRuntimeExceptionpublic void binaryOperationsInPlace(org.apache.sysml.runtime.matrix.operators.BinaryOperator op,
MatrixValue thatValue)
throws DMLRuntimeException
binaryOperationsInPlace in class MatrixValueDMLRuntimeExceptionpublic void denseScalarOperationsInPlace(org.apache.sysml.runtime.matrix.operators.ScalarOperator op)
throws DMLRuntimeException
DMLRuntimeExceptionpublic MatrixValue reorgOperations(org.apache.sysml.runtime.matrix.operators.ReorgOperator op, MatrixValue result, int startRow, int startColumn, int length) throws DMLRuntimeException
reorgOperations in class MatrixValueDMLRuntimeExceptionpublic MatrixValue scalarOperations(org.apache.sysml.runtime.matrix.operators.ScalarOperator op, MatrixValue result) throws DMLRuntimeException
scalarOperations in class MatrixValueDMLRuntimeExceptionpublic void sparseScalarOperationsInPlace(org.apache.sysml.runtime.matrix.operators.ScalarOperator op)
throws DMLRuntimeException
DMLRuntimeExceptionpublic void sparseUnaryOperationsInPlace(org.apache.sysml.runtime.matrix.operators.UnaryOperator op)
throws DMLRuntimeException
DMLRuntimeExceptionpublic MatrixValue unaryOperations(org.apache.sysml.runtime.matrix.operators.UnaryOperator op, MatrixValue result) throws DMLRuntimeException
unaryOperations in class MatrixValueDMLRuntimeExceptionpublic int compareTo(MatrixCell o)
public int compareTo(Object o)
compareTo in interface Comparablepublic void incrementalAggregate(org.apache.sysml.runtime.matrix.operators.AggregateOperator aggOp,
MatrixValue correction,
MatrixValue newWithCorrection)
throws DMLRuntimeException
incrementalAggregate in class MatrixValueDMLRuntimeExceptionpublic MatrixValue zeroOutOperations(MatrixValue result, org.apache.sysml.runtime.util.IndexRange range, boolean complementary) throws DMLRuntimeException
zeroOutOperations in class MatrixValueDMLRuntimeExceptionpublic void incrementalAggregate(org.apache.sysml.runtime.matrix.operators.AggregateOperator aggOp,
MatrixValue newWithCorrection)
throws DMLRuntimeException
incrementalAggregate in class MatrixValueDMLRuntimeExceptionpublic void ctableOperations(org.apache.sysml.runtime.matrix.operators.Operator op,
MatrixValue that,
MatrixValue that2,
CTableMap resultMap,
MatrixBlock resultBlock)
throws DMLRuntimeException
ctableOperations in class MatrixValueDMLRuntimeExceptionpublic void ctableOperations(org.apache.sysml.runtime.matrix.operators.Operator op,
MatrixValue that,
double scalarThat2,
boolean ignoreZeros,
CTableMap ctableResult,
MatrixBlock ctableResultBlock)
throws DMLRuntimeException
ctableOperations in class MatrixValueDMLRuntimeExceptionpublic void ctableOperations(org.apache.sysml.runtime.matrix.operators.Operator op,
double scalarThat,
double scalarThat2,
CTableMap resultMap,
MatrixBlock resultBlock)
throws DMLRuntimeException
ctableOperations in class MatrixValueDMLRuntimeExceptionpublic void ctableOperations(org.apache.sysml.runtime.matrix.operators.Operator op,
MatrixIndexes ix1,
double scalarThat,
boolean left,
int brlen,
CTableMap resultMap,
MatrixBlock resultBlock)
throws DMLRuntimeException
ctableOperations in class MatrixValueDMLRuntimeExceptionpublic void ctableOperations(org.apache.sysml.runtime.matrix.operators.Operator op,
double scalarThat,
MatrixValue that2,
CTableMap resultMap,
MatrixBlock resultBlock)
throws DMLRuntimeException
ctableOperations in class MatrixValueDMLRuntimeExceptionpublic void slice(ArrayList<org.apache.sysml.runtime.matrix.mapred.IndexedMatrixValue> outlist, org.apache.sysml.runtime.util.IndexRange range, int rowCut, int colCut, int blockRowFactor, int blockColFactor, int boundaryRlen, int boundaryClen) throws DMLRuntimeException
slice in class MatrixValueDMLRuntimeExceptionpublic MatrixValue replaceOperations(MatrixValue result, double pattern, double replacement) throws DMLRuntimeException
replaceOperations in class MatrixValueDMLRuntimeExceptionpublic MatrixValue aggregateUnaryOperations(org.apache.sysml.runtime.matrix.operators.AggregateUnaryOperator op, MatrixValue result, int blockingFactorRow, int blockingFactorCol, MatrixIndexes indexesIn, boolean inCP) throws DMLRuntimeException
aggregateUnaryOperations in class MatrixValueDMLRuntimeExceptionpublic void append(MatrixValue valueIn2, ArrayList<org.apache.sysml.runtime.matrix.mapred.IndexedMatrixValue> outlist, int blockRowFactor, int blockColFactor, boolean cbind, boolean m2IsLast, int nextNCol) throws DMLRuntimeException
append in class MatrixValueDMLRuntimeExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.