Class RealCsrProperties
java.lang.Object
org.flag4j.operations.sparse.csr.real.RealCsrProperties
This class contains low-level implementations for determining certain properties of real sparse CSR matrices.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isAntiSymmetric
(CsrMatrix src) Checks if thesrc
matrix is anti-symmetric.static boolean
isIdentity
(CsrMatrix src) Checks if thesrc
matrix is the identity matrix.static boolean
isSymmetric
(CsrMatrix src) Checks if thesrc
matrix is symmetric.
-
Constructor Details
-
RealCsrProperties
private RealCsrProperties()
-
-
Method Details
-
isIdentity
Checks if thesrc
matrix is the identity matrix.- Parameters:
src
- The matrix to check if it is the identity matrix.- Returns:
- True if the
src
matrix is the identity matrix. False otherwise.
-
isSymmetric
Checks if thesrc
matrix is symmetric.- Parameters:
src
- Source matrix to check symmetry of.- Returns:
- True if
src
is symmetric. Otherwise, returns false.
-
isAntiSymmetric
Checks if thesrc
matrix is anti-symmetric.- Parameters:
src
- Source matrix to check symmetry of.- Returns:
- True if
src
is symmetric. Otherwise, returns false.
-