Class CooSemiringMatrixProperties

java.lang.Object
org.flag4j.linalg.ops.sparse.coo.semiring_ops.CooSemiringMatrixProperties

public final class CooSemiringMatrixProperties extends Object
This class contains low level implementations for methods to evaluate certain properties of a sparse COO Semiring matrix. For example, if the matrix is symmetric.
  • Method Details

    • isIdentity

      public static <T extends Semiring<T>> boolean isIdentity(Shape shape, T[] entries, int[] rowIndices, int[] colIndices)
      Checks if a complex sparse COO matrix is the identity matrix.
      Parameters:
      shape - Shape of the matrix.
      entries - Non-zero data of the matrix.
      rowIndices - Non-zero row indices of the matrix.
      colIndices - Non-zero column indices of the matrix.
      Returns:
      true if the src matrix is the identity matrix; false otherwise.