Class RealComplexSparseEquals
java.lang.Object
org.flag4j.operations.sparse.coo.real_complex.RealComplexSparseEquals
This class contains methods for checking the equality of real/complex sparse tensors.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
matrixEquals
(CooMatrix a, CooCMatrix b) Checks if a real sparse matrix and complex sparse matrix are equal.static boolean
tensorEquals
(CooTensor a, CooCTensor b) Checks if a real sparse tensor and complex sparse tensor are equal.static boolean
vectorEquals
(CooVector a, CooCVector b) Checks if a real sparse vector and complex sparse vector are equal.
-
Constructor Details
-
RealComplexSparseEquals
public RealComplexSparseEquals()
-
-
Method Details
-
tensorEquals
Checks if a real sparse tensor and complex sparse tensor are equal.- Parameters:
a
- First tensor in the equality check.b
- Second tensor in the equality check.- Returns:
- True if the tensors are equal. False otherwise.
-
matrixEquals
Checks if a real sparse matrix and complex sparse matrix are equal.- Parameters:
a
- First vector in the equality check.b
- Second vector in the equality check.- Returns:
- True if the vectors are equal. False otherwise.
-
vectorEquals
Checks if a real sparse vector and complex sparse vector are equal.- Parameters:
a
- First vector in the equality check.b
- Second vector in the equality check.- Returns:
- True if the vectors are equal. False otherwise.
-