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 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.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
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
readFieldsin interfaceorg.apache.hadoop.io.Writable- Overrides:
readFieldsin classMatrixCell- Throws:
IOException
-
write
public void write(DataOutput out) throws IOException
- Specified by:
writein interfaceorg.apache.hadoop.io.Writable- Overrides:
writein classMatrixCell- 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 classMatrixCell- Parameters:
that- object to copy the values into.
-
compareTo
public int compareTo(Object o)
- Specified by:
compareToin interfaceComparable- Overrides:
compareToin classMatrixCell
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classMatrixCell
-
hashCode
public int hashCode()
- Overrides:
hashCodein classMatrixCell
-
setWeight
public void setWeight(double w)
-
getWeight
public double getWeight()
-
getValue
public double getValue()
- Overrides:
getValuein classMatrixCell
-
aggregateUnaryOperations
public MatrixValue aggregateUnaryOperations(AggregateUnaryOperator op, MatrixValue result, int blen, MatrixIndexes indexesIn)
- Overrides:
aggregateUnaryOperationsin classMatrixCell
-
denseScalarOperationsInPlace
public void denseScalarOperationsInPlace(ScalarOperator op)
- Overrides:
denseScalarOperationsInPlacein classMatrixCell
-
reorgOperations
public MatrixValue reorgOperations(ReorgOperator op, MatrixValue result, int startRow, int startColumn, int length)
- Overrides:
reorgOperationsin classMatrixCell
-
scalarOperations
public MatrixValue scalarOperations(ScalarOperator op, MatrixValue result)
- Overrides:
scalarOperationsin classMatrixCell
-
sparseScalarOperationsInPlace
public void sparseScalarOperationsInPlace(ScalarOperator op)
- Overrides:
sparseScalarOperationsInPlacein classMatrixCell
-
sparseUnaryOperationsInPlace
public void sparseUnaryOperationsInPlace(UnaryOperator op)
- Overrides:
sparseUnaryOperationsInPlacein classMatrixCell
-
unaryOperations
public MatrixValue unaryOperations(UnaryOperator op, MatrixValue result)
- Overrides:
unaryOperationsin classMatrixCell
-
-