Class RealCsrProperties

java.lang.Object
org.flag4j.linalg.ops.sparse.csr.real.RealCsrProperties

public final class RealCsrProperties extends Object
This class contains low-level implementations for evaluating properties of real sparse CSR matrices.
  • Method Details

    • isIdentity

      public static boolean isIdentity(CsrMatrix src)
      Checks if the src 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

      public static boolean isCloseToIdentity(CsrMatrix src)
      Checks if the src 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

      public static boolean isSymmetric(CsrMatrix src)
      Checks if the src matrix is symmetric.
      Parameters:
      src - Source matrix to check symmetry of.
      Returns:
      true if src is symmetric; false otherwise.
    • isAntiSymmetric

      public static boolean isAntiSymmetric(CsrMatrix src)
      Checks if the src matrix is anti-symmetric.
      Parameters:
      src - Source matrix to check symmetry of.
      Returns:
      true if src is symmetric; false otherwise.