Class CooSemiringMatrixProperties
java.lang.Object
org.flag4j.linalg.ops.sparse.coo.semiring_ops.CooSemiringMatrixProperties
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Semiring<T>>
booleanisIdentity(Shape shape, T[] entries, int[] rowIndices, int[] colIndices) Checks if a complex sparse COO matrix is the identity matrix.
-
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:
trueif thesrcmatrix is the identity matrix;falseotherwise.
-