Class RealCsrProperties
java.lang.Object
org.flag4j.linalg.ops.sparse.csr.real.RealCsrProperties
This class contains low-level implementations for evaluating properties of real sparse CSR matrices.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAntiSymmetric(CsrMatrix src) Checks if thesrcmatrix is anti-symmetric.static booleanChecks if thesrcmatrix is close to the identity matrix.static booleanisIdentity(CsrMatrix src) Checks if thesrcmatrix is the identity matrix.static booleanisSymmetric(CsrMatrix src) Checks if thesrcmatrix is symmetric.
-
Method Details
-
isIdentity
Checks if thesrcmatrix is the identity matrix.- Parameters:
src- The matrix to check if it is the identity matrix.- Returns:
- True if the
srcmatrix is the identity matrix. False otherwise.
-
isCloseToIdentity
Checks if thesrcmatrix is close to the identity matrix.- Parameters:
src- The matrix to check.- Returns:
- True if the
srcmatrix is close to identity matrix. False otherwise.
-
isSymmetric
Checks if thesrcmatrix is symmetric.- Parameters:
src- Source matrix to check symmetry of.- Returns:
trueifsrcis symmetric;falseotherwise.
-
isAntiSymmetric
Checks if thesrcmatrix is anti-symmetric.- Parameters:
src- Source matrix to check symmetry of.- Returns:
trueifsrcis symmetric;falseotherwise.
-