public class MatrixCell extends MatrixValue implements org.apache.hadoop.io.WritableComparable, Serializable
MatrixValue.CellIndex| Constructor and Description |
|---|
MatrixCell() |
MatrixCell(double v) |
MatrixCell(MatrixCell that) |
MatrixCell(MatrixValue that) |
| Modifier and Type | Method and Description |
|---|---|
MatrixValue |
aggregateUnaryOperations(AggregateUnaryOperator op,
MatrixValue result,
int blen,
MatrixIndexes indexesIn) |
MatrixValue |
aggregateUnaryOperations(AggregateUnaryOperator op,
MatrixValue result,
int blen,
MatrixIndexes indexesIn,
boolean inCP) |
void |
append(MatrixValue valueIn2,
ArrayList<IndexedMatrixValue> outlist,
int blen,
boolean cbind,
boolean m2IsLast,
int nextNCol) |
MatrixValue |
binaryOperations(BinaryOperator op,
MatrixValue thatValue,
MatrixValue result) |
MatrixValue |
binaryOperationsInPlace(BinaryOperator op,
MatrixValue thatValue) |
int |
compareTo(MatrixCell o) |
int |
compareTo(Object o) |
void |
copy(MatrixValue that)
Copy that MatrixValue into this MatrixValue.
|
void |
copy(MatrixValue that,
boolean sp)
Copy that MatrixValue into this MatrixValue.
|
void |
ctableOperations(Operator op,
double scalarThat,
double scalarThat2,
CTableMap resultMap,
MatrixBlock resultBlock) |
void |
ctableOperations(Operator op,
double scalarThat,
MatrixValue that2,
CTableMap resultMap,
MatrixBlock resultBlock) |
void |
ctableOperations(Operator op,
MatrixIndexes ix1,
double scalarThat,
boolean left,
int blen,
CTableMap resultMap,
MatrixBlock resultBlock) |
void |
ctableOperations(Operator op,
MatrixValue that,
double scalarThat2,
boolean ignoreZeros,
CTableMap ctableResult,
MatrixBlock ctableResultBlock) |
void |
ctableOperations(Operator op,
MatrixValue that,
MatrixValue that2,
CTableMap resultMap,
MatrixBlock resultBlock) |
void |
denseScalarOperationsInPlace(ScalarOperator op) |
boolean |
equals(Object o) |
long |
getNonZeros() |
int |
getNumColumns() |
int |
getNumRows() |
double |
getValue() |
double |
getValue(int r,
int c) |
int |
hashCode() |
void |
incrementalAggregate(AggregateOperator aggOp,
MatrixValue newWithCorrection) |
void |
incrementalAggregate(AggregateOperator aggOp,
MatrixValue correction,
MatrixValue newWithCorrection,
boolean deep) |
boolean |
isEmpty() |
boolean |
isInSparseFormat() |
void |
readFields(DataInput in) |
MatrixValue |
reorgOperations(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(ScalarOperator op,
MatrixValue result) |
void |
setValue(double v) |
void |
setValue(int r,
int c,
double v) |
void |
slice(ArrayList<IndexedMatrixValue> outlist,
IndexRange range,
int rowCut,
int colCut,
int blen,
int boundaryRlen,
int boundaryClen)
Slice out up to 4 matrixBlocks that are separated by the row and col Cuts.
|
void |
sparseScalarOperationsInPlace(ScalarOperator op) |
void |
sparseUnaryOperationsInPlace(UnaryOperator op) |
MatrixValue |
unaryOperations(UnaryOperator op,
MatrixValue result) |
void |
write(DataOutput out) |
MatrixValue |
zeroOutOperations(MatrixValue result,
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)
MatrixValuecopy in class MatrixValuethat - object to copy the values into.sp - boolean specifying if output should be forced sparse or dense. (only applicable if the 'that' is a MatrixBlock)public void copy(MatrixValue that)
MatrixValuecopy in class MatrixValuethat - object to copy the values into.public 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(AggregateUnaryOperator op, MatrixValue result, int blen, MatrixIndexes indexesIn)
aggregateUnaryOperations in class MatrixValuepublic MatrixValue binaryOperations(BinaryOperator op, MatrixValue thatValue, MatrixValue result)
binaryOperations in class MatrixValuepublic MatrixValue binaryOperationsInPlace(BinaryOperator op, MatrixValue thatValue)
binaryOperationsInPlace in class MatrixValuepublic void denseScalarOperationsInPlace(ScalarOperator op)
public MatrixValue reorgOperations(ReorgOperator op, MatrixValue result, int startRow, int startColumn, int length)
reorgOperations in class MatrixValuepublic MatrixValue scalarOperations(ScalarOperator op, MatrixValue result)
scalarOperations in class MatrixValuepublic void sparseScalarOperationsInPlace(ScalarOperator op)
public void sparseUnaryOperationsInPlace(UnaryOperator op)
public MatrixValue unaryOperations(UnaryOperator op, MatrixValue result)
unaryOperations in class MatrixValuepublic int compareTo(MatrixCell o)
public int compareTo(Object o)
compareTo in interface Comparablepublic void incrementalAggregate(AggregateOperator aggOp, MatrixValue correction, MatrixValue newWithCorrection, boolean deep)
incrementalAggregate in class MatrixValuepublic MatrixValue zeroOutOperations(MatrixValue result, IndexRange range, boolean complementary)
zeroOutOperations in class MatrixValuepublic void incrementalAggregate(AggregateOperator aggOp, MatrixValue newWithCorrection)
incrementalAggregate in class MatrixValuepublic void ctableOperations(Operator op, MatrixValue that, MatrixValue that2, CTableMap resultMap, MatrixBlock resultBlock)
ctableOperations in class MatrixValuepublic void ctableOperations(Operator op, MatrixValue that, double scalarThat2, boolean ignoreZeros, CTableMap ctableResult, MatrixBlock ctableResultBlock)
ctableOperations in class MatrixValuepublic void ctableOperations(Operator op, double scalarThat, double scalarThat2, CTableMap resultMap, MatrixBlock resultBlock)
ctableOperations in class MatrixValuepublic void ctableOperations(Operator op, MatrixIndexes ix1, double scalarThat, boolean left, int blen, CTableMap resultMap, MatrixBlock resultBlock)
ctableOperations in class MatrixValuepublic void ctableOperations(Operator op, double scalarThat, MatrixValue that2, CTableMap resultMap, MatrixBlock resultBlock)
ctableOperations in class MatrixValuepublic void slice(ArrayList<IndexedMatrixValue> outlist, IndexRange range, int rowCut, int colCut, int blen, int boundaryRlen, int boundaryClen)
MatrixValueslice in class MatrixValueoutlist - The output matrix blocks that is extracted from the matrixrange - An index range containing overlapping information.rowCut - The row to cut and split the matrix.colCut - The column to cut ans split the matrix.blen - The Block size of the output matrices.boundaryRlen - The row length of the edge case matrix block, used for the final blocks
that does not have enough rows to construct a full block.boundaryClen - The col length of the edge case matrix block, used for the final blocks
that does not have enough cols to construct a full block.public MatrixValue replaceOperations(MatrixValue result, double pattern, double replacement)
replaceOperations in class MatrixValuepublic MatrixValue aggregateUnaryOperations(AggregateUnaryOperator op, MatrixValue result, int blen, MatrixIndexes indexesIn, boolean inCP)
aggregateUnaryOperations in class MatrixValuepublic void append(MatrixValue valueIn2, ArrayList<IndexedMatrixValue> outlist, int blen, boolean cbind, boolean m2IsLast, int nextNCol)
append in class MatrixValueCopyright © 2021 The Apache Software Foundation. All rights reserved.