Class RealComplexDenseSparseEquals
java.lang.Object
org.flag4j.operations.dense_sparse.coo.real_complex.RealComplexDenseSparseEquals
This class contains methods for checking the equality of real dense/sparse and complex dense/sparse tensors.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
matrixEquals
(CMatrix A, CooMatrix B) Checks if a dense complex matrix is equal to a real sparse matrix.static boolean
matrixEquals
(Matrix A, CooCMatrix B) Checks if a real dense matrix is equal to a sparse complex matrix.static boolean
tensorEquals
(CTensor A, CooTensor B) Checks if a complex dense tensor is equal to a real sparse tensor.static boolean
tensorEquals
(Tensor A, CooCTensor B) Checks if a real dense tensor is equal to a complex sparse tensor.static boolean
vectorEquals
(double[] src1, CNumber[] src2, int[] indices, int sparseSize) Checks if a real dense vector is equal to a complex sparse vector equals.static boolean
vectorEquals
(CNumber[] src1, double[] src2, int[] indices, int sparseSize) Checks if a complex dense vector is equal to a real sparse vector.
-
Constructor Details
-
RealComplexDenseSparseEquals
private RealComplexDenseSparseEquals()
-
-
Method Details
-
vectorEquals
Checks if a real dense vector is equal to a complex sparse vector equals.- 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.
-
vectorEquals
Checks if a complex dense vector is equal to a real 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.
-
matrixEquals
Checks if a real dense matrix is equal to a sparse complex matrix.- Parameters:
A
- First matrix.B
- Second matrix.- Returns:
- True if the two matrices are element-wise equivalent.
-
matrixEquals
-
tensorEquals
Checks if a real dense tensor is equal to a complex sparse tensor.- Parameters:
A
- Real dense tensor.B
- Complex sparse tensor.- Returns:
- True if the two tensors are element-wise equivalent.
-
tensorEquals
-