Interface FieldElement<T>

Type Parameters:
T - the type of the field elements
All Known Subinterfaces:
RealFieldElement<T>
All Known Implementing Classes:
BigFraction, BigReal, Decimal64, DerivativeStructure, Fraction, SparseGradient

public interface FieldElement<T>
Interface representing field elements.
Since:
2.0
See Also:
Field
  • Method Summary

    Modifier and Type Method Description
    T add​(T a)
    Compute this + a.
    T divide​(T a)
    Compute this ÷ a.
    Field<T> getField()
    Get the Field to which the instance belongs.
    T multiply​(int n)
    Compute n × this.
    T multiply​(T a)
    Compute this × a.
    T negate()
    Returns the additive inverse of this element.
    T reciprocal()
    Returns the multiplicative inverse of this element.
    T subtract​(T a)
    Compute this - a.