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.MatrixValueMatrixValue.CellIndex
 
- 
 - 
Constructor SummaryConstructors Constructor Description WeightedCell()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description MatrixValueaggregateUnaryOperations(AggregateUnaryOperator op, MatrixValue result, int blen, MatrixIndexes indexesIn)intcompareTo(Object o)voidcopy(MatrixValue that)Copy that MatrixValue into this MatrixValue.voiddenseScalarOperationsInPlace(ScalarOperator op)booleanequals(Object o)doublegetValue()doublegetWeight()inthashCode()voidreadFields(DataInput in)MatrixValuereorgOperations(ReorgOperator op, MatrixValue result, int startRow, int startColumn, int length)MatrixValuescalarOperations(ScalarOperator op, MatrixValue result)voidsetWeight(double w)voidsparseScalarOperationsInPlace(ScalarOperator op)voidsparseUnaryOperationsInPlace(UnaryOperator op)StringtoString()MatrixValueunaryOperations(UnaryOperator op, MatrixValue result)voidwrite(DataOutput out)- 
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- 
readFieldspublic void readFields(DataInput in) throws IOException - Specified by:
- readFieldsin interface- org.apache.hadoop.io.Writable
- Overrides:
- readFieldsin class- MatrixCell
- Throws:
- IOException
 
 - 
writepublic void write(DataOutput out) throws IOException - Specified by:
- writein interface- org.apache.hadoop.io.Writable
- Overrides:
- writein class- MatrixCell
- 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- MatrixCell
- Parameters:
- that- object to copy the values into.
 
 - 
compareTopublic int compareTo(Object o) - Specified by:
- compareToin interface- Comparable
- Overrides:
- compareToin class- MatrixCell
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- MatrixCell
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- MatrixCell
 
 - 
setWeightpublic void setWeight(double w) 
 - 
getWeightpublic double getWeight() 
 - 
getValuepublic double getValue() - Overrides:
- getValuein class- MatrixCell
 
 - 
aggregateUnaryOperationspublic MatrixValue aggregateUnaryOperations(AggregateUnaryOperator op, MatrixValue result, int blen, MatrixIndexes indexesIn) - Overrides:
- aggregateUnaryOperationsin class- MatrixCell
 
 - 
denseScalarOperationsInPlacepublic void denseScalarOperationsInPlace(ScalarOperator op) - Overrides:
- denseScalarOperationsInPlacein class- MatrixCell
 
 - 
reorgOperationspublic MatrixValue reorgOperations(ReorgOperator op, MatrixValue result, int startRow, int startColumn, int length) - Overrides:
- reorgOperationsin class- MatrixCell
 
 - 
scalarOperationspublic MatrixValue scalarOperations(ScalarOperator op, MatrixValue result) - Overrides:
- scalarOperationsin class- MatrixCell
 
 - 
sparseScalarOperationsInPlacepublic void sparseScalarOperationsInPlace(ScalarOperator op) - Overrides:
- sparseScalarOperationsInPlacein class- MatrixCell
 
 - 
sparseUnaryOperationsInPlacepublic void sparseUnaryOperationsInPlace(UnaryOperator op) - Overrides:
- sparseUnaryOperationsInPlacein class- MatrixCell
 
 - 
unaryOperationspublic MatrixValue unaryOperations(UnaryOperator op, MatrixValue result) - Overrides:
- unaryOperationsin class- MatrixCell
 
 
- 
 
-