Class RealSparseMatrixProperties
java.lang.Object
org.flag4j.operations.sparse.coo.real.RealSparseMatrixProperties
This class contains low level implementations for methods to evaluate certain properties of a real sparse matrix.
(i.e. if the matrix is symmetric).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isAntiSymmetric
(CooMatrix src) Checks if a real sparse matrix is anti-symmetric.static boolean
isIdentity
(CooMatrix src) Checks if a real sparse matrix is the identity matrix.static boolean
isSymmetric
(CooMatrix src) Checks if a real sparse matrix is symmetric.
-
Constructor Details
-
RealSparseMatrixProperties
private RealSparseMatrixProperties()
-
-
Method Details
-
isIdentity
Checks if a real sparse matrix is the identity matrix.- Parameters:
src
- Matrix to check if it is the identity matrix.- Returns:
- True if the
src
matrix is the identity matrix. Otherwise, returns false.
-
isSymmetric
Checks if a real sparse matrix is symmetric.- Parameters:
src
- Matrix to check if it is the symmetric matrix.- Returns:
- True if the
src
matrix is symmetric. False otherwise.
-
isAntiSymmetric
Checks if a real sparse matrix is anti-symmetric.- Parameters:
src
- Matrix to check if it is the anti-symmetric matrix.- Returns:
- True if the
src
matrix is anti-symmetric. False otherwise.
-