Class ComplexDenseSparseEquals
java.lang.Object
org.flag4j.operations.dense_sparse.coo.complex.ComplexDenseSparseEquals
This class provides methods for checking the equality of a complex dense tensor with a complex sparse tensor.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
matrixEquals
(CMatrix A, CooCMatrix B) Checks if two real dense matrices are equal.static boolean
tensorEquals
(CTensor A, CooCTensor B) Checks if a complex dense tensor is equal to a complex sparse tensor.static boolean
vectorEquals
(CNumber[] src1, CNumber[] src2, int[] indices, int sparseSize) Checks if a complex dense vector is equal to a complex sparse vector.
-
Constructor Details
-
ComplexDenseSparseEquals
private ComplexDenseSparseEquals()
-
-
Method Details
-
matrixEquals
Checks if two real dense matrices are equal.- Parameters:
A
- First matrix.B
- Second matrix.- Returns:
- True if the two matrices are element-wise equivalent.
-
vectorEquals
Checks if a complex dense vector is equal to a complex sparse vector.- Parameters:
src1
- Entries of dense vector.src2
- Non-zero Entries of sparse vector.indices
- Indices of non-zero entries in the sparse vector.sparseSize
- Size of the sparse vector.- Returns:
- True if the two vectors are equal. Returns false otherwise.
-
tensorEquals
Checks if a complex dense tensor is equal to a complex sparse tensor.- Parameters:
A
- Complex dense tensor.B
- Complex sparse tensor.- Returns:
- True if the two tensors are element-wise equivalent.
-