Class WeightedPair
- java.lang.Object
-
- org.apache.sysds.runtime.matrix.data.MatrixValue
-
- org.apache.sysds.runtime.matrix.data.MatrixCell
-
- org.apache.sysds.runtime.matrix.data.WeightedCell
-
- org.apache.sysds.runtime.matrix.data.WeightedPair
-
- All Implemented Interfaces:
Serializable,Comparable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.WritableComparable
public class WeightedPair extends WeightedCell
- 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 WeightedPair()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Object o)voidcopy(MatrixValue that)Copy that MatrixValue into this MatrixValue.booleanequals(Object o)doublegetOtherValue()inthashCode()voidreadFields(DataInput in)voidsetOtherValue(double ov)StringtoString()voidwrite(DataOutput out)-
Methods inherited from class org.apache.sysds.runtime.matrix.data.WeightedCell
aggregateUnaryOperations, denseScalarOperationsInPlace, getValue, getWeight, reorgOperations, scalarOperations, setWeight, sparseScalarOperationsInPlace, sparseUnaryOperationsInPlace, unaryOperations
-
Methods inherited from class org.apache.sysds.runtime.matrix.data.MatrixCell
aggregateUnaryOperations, append, binaryOperations, binaryOperationsInPlace, compareTo, copy, ctableOperations, ctableOperations, ctableOperations, ctableOperations, ctableOperations, getNonZeros, getNumColumns, getNumRows, getValue, incrementalAggregate, incrementalAggregate, isEmpty, isInSparseFormat, replaceOperations, reset, reset, reset, reset, reset, setValue, setValue, slice, zeroOutOperations
-
-
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toStringin classWeightedCell
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
readFieldsin interfaceorg.apache.hadoop.io.Writable- Overrides:
readFieldsin classWeightedCell- Throws:
IOException
-
write
public void write(DataOutput out) throws IOException
- Specified by:
writein interfaceorg.apache.hadoop.io.Writable- Overrides:
writein classWeightedCell- Throws:
IOException
-
copy
public void copy(MatrixValue that)
Description copied from class:MatrixValueCopy 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:
copyin classWeightedCell- Parameters:
that- object to copy the values into.
-
getOtherValue
public double getOtherValue()
-
setOtherValue
public void setOtherValue(double ov)
-
compareTo
public int compareTo(Object o)
- Specified by:
compareToin interfaceComparable- Overrides:
compareToin classWeightedCell
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classWeightedCell
-
hashCode
public int hashCode()
- Overrides:
hashCodein classWeightedCell
-
-