Class LibMatrixEquals
java.lang.Object
org.apache.sysds.runtime.matrix.data.LibMatrixEquals
Equals library for MatrixBlocks:
The implementations adhere to the properties of equals of:
- Reflective
- Symmetric
- Transitive
- Consistent
The equals also is valid if the metadata of number of non zeros are unknown in either input. An unknown number of non zero values is indicated by a negative nonzero count in the input matrices.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanequals(MatrixBlock a, MatrixBlock b) Analyze if the two matrix blocks are equivalent, this functions even if the underlying allocation and data structure varies.static booleanequals(MatrixBlock a, MatrixBlock b, double eps) Analyze if the two matrix blocks are equivalent, this functions even if the underlying allocation and data structure varies.
-
Method Details
-
equals
Analyze if the two matrix blocks are equivalent, this functions even if the underlying allocation and data structure varies.
The implementations adhere to the properties of equals of:
- Reflective
- Symmetric
- Transitive
- Consistent
- Parameters:
a- Matrix Block a to compareb- Matrix Block b to compare- Returns:
- If the block are equivalent.
-
equals
Analyze if the two matrix blocks are equivalent, this functions even if the underlying allocation and data structure varies.
The implementations adhere to the properties of equals of:
- Reflective
- Symmetric
- Transitive
- Consistent
- Parameters:
a- Matrix Block a to compareb- Matrix Block b to compareeps- Epsilon to allow between values- Returns:
- If the block are equivalent.
-