Interface Field<T>

    • Method Detail

      • add

        T add​(T a,
              T b)
        Parameters:
        a - Field element.
        b - Field element.
        Returns:
        a + b.
      • subtract

        T subtract​(T a,
                   T b)
        Parameters:
        a - Field element.
        b - Field element.
        Returns:
        a - b.
      • negate

        T negate​(T a)
        Parameters:
        a - Field element.
        Returns:
        -a.
      • multiply

        T multiply​(int n,
                   T a)
        Parameters:
        a - Field element.
        n - Number of times a must be added to itself.
        Returns:
        n a.
      • multiply

        T multiply​(T a,
                   T b)
        Parameters:
        a - Field element.
        b - Field element.
        Returns:
        a * b.
      • divide

        T divide​(T a,
                 T b)
        Parameters:
        a - Field element.
        b - Field element.
        Returns:
        a * b-1.
      • reciprocal

        T reciprocal​(T a)
        Parameters:
        a - Field element.
        Returns:
        a-1.
      • one

        T one()
        Returns:
        the field element 1 such that for all a, 1 * a == a.
      • zero

        T zero()
        Returns:
        the field element 0 such that for all a, 0 + a == a.