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
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sysds.runtime.matrix.data.MatrixValue
MatrixValue.CellIndex -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregateUnaryOperations(AggregateUnaryOperator op, MatrixValue result, int blen, MatrixIndexes indexesIn, boolean inCP) intvoidcopy(MatrixValue that) Copy that MatrixValue into this MatrixValue.voidbooleandoublegetValue()doubleinthashCode()voidreadFields(DataInput in) reorgOperations(ReorgOperator op, MatrixValue result, int startRow, int startColumn, int length) scalarOperations(ScalarOperator op, MatrixValue result) voidsetWeight(double w) voidvoidtoString()unaryOperations(UnaryOperator op, MatrixValue result) voidwrite(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, zeroOutOperationsMethods inherited from class org.apache.sysds.runtime.matrix.data.MatrixValue
aggregateUnaryOperations
-
Constructor Details
-
WeightedCell
public WeightedCell()
-
-
Method Details
-
toString
-
readFields
- Specified by:
readFieldsin interfaceorg.apache.hadoop.io.Writable- Overrides:
readFieldsin classMatrixCell- Throws:
IOException
-
write
- Specified by:
writein interfaceorg.apache.hadoop.io.Writable- Overrides:
writein classMatrixCell- Throws:
IOException
-
copy
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
- Specified by:
compareToin interfaceComparable- Overrides:
compareToin classMatrixCell
-
equals
- 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, boolean inCP) - Overrides:
aggregateUnaryOperationsin classMatrixCell
-
denseScalarOperationsInPlace
- Overrides:
denseScalarOperationsInPlacein classMatrixCell
-
reorgOperations
public MatrixValue reorgOperations(ReorgOperator op, MatrixValue result, int startRow, int startColumn, int length) - Overrides:
reorgOperationsin classMatrixCell
-
scalarOperations
- Overrides:
scalarOperationsin classMatrixCell
-
sparseScalarOperationsInPlace
- Overrides:
sparseScalarOperationsInPlacein classMatrixCell
-
sparseUnaryOperationsInPlace
- Overrides:
sparseUnaryOperationsInPlacein classMatrixCell
-
unaryOperations
- Overrides:
unaryOperationsin classMatrixCell
-