Interface VectorValueEqualizer<V extends ValueVector>

Type Parameters:
V - the vector type.
All Superinterfaces:
Cloneable
All Known Implementing Classes:
ValueEpsilonEqualizers.Float4EpsilonEqualizer, ValueEpsilonEqualizers.Float8EpsilonEqualizer, ValueEpsilonEqualizers.FloatingPointEpsilonEqualizer

public interface VectorValueEqualizer<V extends ValueVector> extends Cloneable
A function to determine if two vectors are equal at specified positions.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a equalizer of the same type.
    boolean
    valuesEqual(V vector1, int index1, V vector2, int index2)
    Checks if the vectors are equal at the given positions, given that the values at both positions are non-null.
  • Method Details

    • valuesEqual

      boolean valuesEqual(V vector1, int index1, V vector2, int index2)
      Checks if the vectors are equal at the given positions, given that the values at both positions are non-null.
      Parameters:
      vector1 - the first vector.
      index1 - index in the first vector.
      vector2 - the second vector.
      index2 - index in the second vector.
      Returns:
      true if the two values are considered to be equal, and false otherwise.
    • clone

      Creates a equalizer of the same type.
      Returns:
      the newly created equalizer.