Class WeightedCell
- java.lang.Object
-
- org.apache.sysds.runtime.matrix.data.MatrixValue
-
- org.apache.sysds.runtime.matrix.data.MatrixCell
-
- org.apache.sysds.runtime.matrix.data.WeightedCell
-
- All Implemented Interfaces:
Serializable
,Comparable
,org.apache.hadoop.io.Writable
,org.apache.hadoop.io.WritableComparable
- Direct Known Subclasses:
WeightedPair
public class WeightedCell extends MatrixCell
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.sysds.runtime.matrix.data.MatrixValue
MatrixValue.CellIndex
-
-
Constructor Summary
Constructors Constructor Description WeightedCell()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MatrixValue
aggregateUnaryOperations(AggregateUnaryOperator op, MatrixValue result, int blen, MatrixIndexes indexesIn, boolean inCP)
int
compareTo(Object o)
void
copy(MatrixValue that)
Copy that MatrixValue into this MatrixValue.void
denseScalarOperationsInPlace(ScalarOperator op)
boolean
equals(Object o)
double
getValue()
double
getWeight()
int
hashCode()
void
readFields(DataInput in)
MatrixValue
reorgOperations(ReorgOperator op, MatrixValue result, int startRow, int startColumn, int length)
MatrixValue
scalarOperations(ScalarOperator op, MatrixValue result)
void
setWeight(double w)
void
sparseScalarOperationsInPlace(ScalarOperator op)
void
sparseUnaryOperationsInPlace(UnaryOperator op)
String
toString()
MatrixValue
unaryOperations(UnaryOperator op, MatrixValue result)
void
write(DataOutput out)
-
Methods inherited from class org.apache.sysds.runtime.matrix.data.MatrixCell
append, binaryOperations, binaryOperationsInPlace, compareTo, copy, ctableOperations, ctableOperations, ctableOperations, ctableOperations, ctableOperations, get, getNonZeros, getNumColumns, getNumRows, incrementalAggregate, incrementalAggregate, isEmpty, isInSparseFormat, replaceOperations, reset, reset, reset, reset, reset, set, setValue, slice, zeroOutOperations
-
Methods inherited from class org.apache.sysds.runtime.matrix.data.MatrixValue
aggregateUnaryOperations
-
-
-
-
Method Detail
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
readFields
in interfaceorg.apache.hadoop.io.Writable
- Overrides:
readFields
in classMatrixCell
- Throws:
IOException
-
write
public void write(DataOutput out) throws IOException
- Specified by:
write
in interfaceorg.apache.hadoop.io.Writable
- Overrides:
write
in classMatrixCell
- Throws:
IOException
-
copy
public void copy(MatrixValue that)
Description copied from class:MatrixValue
Copy that MatrixValue into this MatrixValue. If the MatrixValue is a MatrixBlock evaluate the sparsity of the original matrix, and copy into either a sparse or a dense matrix.- Overrides:
copy
in classMatrixCell
- Parameters:
that
- object to copy the values into.
-
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interfaceComparable
- Overrides:
compareTo
in classMatrixCell
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classMatrixCell
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classMatrixCell
-
setWeight
public void setWeight(double w)
-
getWeight
public double getWeight()
-
getValue
public double getValue()
- Overrides:
getValue
in classMatrixCell
-
aggregateUnaryOperations
public MatrixValue aggregateUnaryOperations(AggregateUnaryOperator op, MatrixValue result, int blen, MatrixIndexes indexesIn, boolean inCP)
- Overrides:
aggregateUnaryOperations
in classMatrixCell
-
denseScalarOperationsInPlace
public void denseScalarOperationsInPlace(ScalarOperator op)
- Overrides:
denseScalarOperationsInPlace
in classMatrixCell
-
reorgOperations
public MatrixValue reorgOperations(ReorgOperator op, MatrixValue result, int startRow, int startColumn, int length)
- Overrides:
reorgOperations
in classMatrixCell
-
scalarOperations
public MatrixValue scalarOperations(ScalarOperator op, MatrixValue result)
- Overrides:
scalarOperations
in classMatrixCell
-
sparseScalarOperationsInPlace
public void sparseScalarOperationsInPlace(ScalarOperator op)
- Overrides:
sparseScalarOperationsInPlace
in classMatrixCell
-
sparseUnaryOperationsInPlace
public void sparseUnaryOperationsInPlace(UnaryOperator op)
- Overrides:
sparseUnaryOperationsInPlace
in classMatrixCell
-
unaryOperations
public MatrixValue unaryOperations(UnaryOperator op, MatrixValue result)
- Overrides:
unaryOperations
in classMatrixCell
-
-