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 boolean
isAntiSymmetric
(CsrMatrix src) Checks if thesrc
matrix is anti-symmetric.static boolean
Checks if thesrc
matrix is close to the identity matrix.static boolean
isIdentity
(CsrMatrix src) Checks if thesrc
matrix is the identity matrix.static boolean
isSymmetric
(CsrMatrix src) Checks if thesrc
matrix is symmetric.
-
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.
-
isCloseToIdentity
Checks if thesrc
matrix is close to the identity matrix.- Parameters:
src
- The matrix to check.- Returns:
- True if the
src
matrix is close to identity matrix. False otherwise.
-
isSymmetric
Checks if thesrc
matrix is symmetric.- Parameters:
src
- Source matrix to check symmetry of.- Returns:
true
ifsrc
is symmetric;false
otherwise.
-
isAntiSymmetric
Checks if thesrc
matrix is anti-symmetric.- Parameters:
src
- Source matrix to check symmetry of.- Returns:
true
ifsrc
is symmetric;false
otherwise.
-