edu.jas.poly
Class Monomial<C extends RingElem<C>>
- java.lang.Object
-
- edu.jas.poly.Monomial<C>
-
public final class Monomial<C extends RingElem<C>> extends java.lang.ObjectMonomial class. Represents pairs of exponent vectors and coefficients. Adaptor for Map.Entry.
-
-
Field Summary
Fields Modifier and Type Field and Description CcCoefficient of monomial.ExpVectoreExponent of monomial.
-
Constructor Summary
Constructors Constructor and Description Monomial(ExpVector e, C c)Constructor of monomial.Monomial(java.util.Map.Entry<ExpVector,C> me)Constructor of monomial.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Ccoefficient()Getter for coefficient.ExpVectorexponent()Getter for exponent.java.lang.StringtoString()String representation of Monomial.
-
-
-
Field Detail
-
e
public final ExpVector e
Exponent of monomial.
-
-
Constructor Detail
-
Monomial
public Monomial(java.util.Map.Entry<ExpVector,C> me)
Constructor of monomial.- Parameters:
me- a MapEntry.
-
-
Method Detail
-
exponent
public ExpVector exponent()
Getter for exponent.- Returns:
- exponent.
-
coefficient
public C coefficient()
Getter for coefficient.- Returns:
- coefficient.
-
toString
public java.lang.String toString()
String representation of Monomial.- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
-
DMelt 3.0 © DataMelt by jWork.ORG