Class RealComplexSparseEquals

java.lang.Object
org.flag4j.linalg.ops.sparse.coo.real_complex.RealComplexSparseEquals

public final class RealComplexSparseEquals extends Object
This class contains methods for checking the equality of real/complex sparse tensors.
  • Method Details

    • tensorEquals

      public static boolean tensorEquals(CooTensor a, CooCTensor b)
      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

      public static boolean matrixEquals(CooMatrix a, CooCMatrix b)
      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

      public static boolean vectorEquals(CooVector a, CooCVector b)
      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.