Class MathUtils.FieldSumAndResidual<T extends FieldElement<T>>

java.lang.Object
org.hipparchus.util.MathUtils.FieldSumAndResidual<T>
Type Parameters:
T - field element type
Enclosing class:
MathUtils

public static final class MathUtils.FieldSumAndResidual<T extends FieldElement<T>> extends Object
Result class for MathUtils.twoSum(FieldElement, FieldElement) containing the sum and the residual error in the sum.
  • Method Details

    • getSum

      public T getSum()
      Returns the sum.
      Returns:
      sum
    • getResidual

      public T getResidual()
      Returns the residual error in the sum.
      Returns:
      residual error in the sum