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.MatrixValueMatrixValue.CellIndex
 
- 
 - 
Constructor SummaryConstructors Constructor Description WeightedPair()
 - 
Method SummaryAll 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.WeightedCellaggregateUnaryOperations, denseScalarOperationsInPlace, getValue, getWeight, reorgOperations, scalarOperations, setWeight, sparseScalarOperationsInPlace, sparseUnaryOperationsInPlace, unaryOperations
 - 
Methods inherited from class org.apache.sysds.runtime.matrix.data.MatrixCellaggregateUnaryOperations, 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- 
toStringpublic String toString() - Overrides:
- toStringin class- WeightedCell
 
 - 
readFieldspublic void readFields(DataInput in) throws IOException - Specified by:
- readFieldsin interface- org.apache.hadoop.io.Writable
- Overrides:
- readFieldsin class- WeightedCell
- Throws:
- IOException
 
 - 
writepublic void write(DataOutput out) throws IOException - Specified by:
- writein interface- org.apache.hadoop.io.Writable
- Overrides:
- writein class- WeightedCell
- Throws:
- IOException
 
 - 
copypublic 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 class- WeightedCell
- Parameters:
- that- object to copy the values into.
 
 - 
getOtherValuepublic double getOtherValue() 
 - 
setOtherValuepublic void setOtherValue(double ov) 
 - 
compareTopublic int compareTo(Object o) - Specified by:
- compareToin interface- Comparable
- Overrides:
- compareToin class- WeightedCell
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- WeightedCell
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- WeightedCell
 
 
- 
 
-