Class RealFieldDenseEquals

java.lang.Object
org.flag4j.linalg.ops.dense.real_field_ops.RealFieldDenseEquals

public final class RealFieldDenseEquals extends Object
This class provides methods for checking the equality of one dense real and one dense field tensors.
  • Method Details

    • matrixEquals

      public static <T extends Field<T>> boolean matrixEquals(Matrix A, AbstractDenseFieldMatrix<?,?,T> B)
      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.
    • tensorEquals

      public static <T extends Field<T>> boolean tensorEquals(Tensor A, AbstractDenseFieldTensor<?,T> B)
      Checks if two real dense tensors are equal.
      Parameters:
      A - First tensor in comparison.
      B - Second tensor in comparison.
      Returns:
      True if the two tensors are numerically element-wise equivalent.
    • tensorEquals

      public static <T extends Field<T>> boolean tensorEquals(double[] src1, Shape shape1, T[] src2, Shape shape2)
      Checks if two dense tensors are equal.
      Parameters:
      src1 - Entries of first tensor.
      shape1 - Shape of first tensor.
      src2 - Entries of second tensor.
      shape2 - Shape of second tensor.
      Returns:
      True if the two tensors are numerically element-wise equivalent.