Class RealCsrEquals
java.lang.Object
org.flag4j.linalg.ops.sparse.csr.real.RealCsrEquals
This class contains methods to check equality or approximate equality between two sparse CSR matrices.
-
Method Summary
-
Method Details
-
allClose
Checks if all data of this tensor are close to the data of the argumenttensor
.- Parameters:
src1
- First matrix in the comparison.src2
- Second matrix in the comparison.relTol
- Relative tolerance.absTol
- Absolute tolerance.- Returns:
- True if the
src1
matrix is the same shape as thesrc2
matrix and all data are 'close', i.e. elementsa
andb
at the same positions in the two matrices respectively satisfy|a-b| <= (absTol + relTol*|b|)
. Otherwise, returns false.
-