Package cc.redberry.rings.poly.multivar
Class Monomial<E>
- All Implemented Interfaces:
Serializable
public class Monomial<E> extends AMonomial<Monomial<E>>
Monomial with coefficient from generic ring
- Since:
- 1.0
- See Also:
IMonomialAlgebra.MonomialAlgebra
, Serialized Form
-
Field Summary
Fields Modifier and Type Field Description E
coefficient
the coefficientFields inherited from class cc.redberry.rings.poly.multivar.DegreeVector
exponents, totalDegree
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
Monomial<E>
forceSetDegreeVector(int[] exponents, int totalDegree)
Sets the degree vectorint
hashCode()
Monomial<E>
setCoefficient(E c)
Monomial<E>
setCoefficientFrom(Monomial<E> oth)
Sets coefficient of this with coefficient of othMonomial<E>
setDegreeVector(int[] exponents, int totalDegree)
Sets the degree vectorMonomial<E>
setDegreeVector(DegreeVector oth)
Sets the degree vectorString
toString()
Methods inherited from class cc.redberry.rings.poly.multivar.AMonomial
divideOrNull, divideOrNull, dropSelect, dv, dvToString, dvToString, insert, insert, joinNewVariable, joinNewVariables, joinNewVariables, map, multiply, multiply, range, select, select, set, setDegreeVector, setNVariables, setZero, setZero, toZero, without, without
Methods inherited from class cc.redberry.rings.poly.multivar.DegreeVector
dvDivideExact, dvDivideExact, dvDivideOrNull, dvDivideOrNull, dvDivideOrNull, dvDivisibleBy, dvDivisibleBy, dvDropSelect, dvEquals, dvInsert, dvInsert, dvJoinNewVariable, dvJoinNewVariables, dvJoinNewVariables, dvMap, dvMultiply, dvMultiply, dvMultiply, dvRange, dvSelect, dvSelect, dvSet, dvSetNVariables, dvSetZero, dvSetZero, dvTotalDegree, dvWithout, dvWithout, isZeroVector, nVariables, toString, toStringArray
-
Field Details
-
coefficient
the coefficient
-
-
Constructor Details
-
Monomial
- Parameters:
degreeVector
- DegreeVectorcoefficient
- the coefficient
-
Monomial
- Parameters:
exponents
- exponentstotalDegree
- total degree (sum of exponents)coefficient
- the coefficient
-
Monomial
- Parameters:
exponents
- exponentscoefficient
- the coefficient
-
Monomial
-
-
Method Details
-
setCoefficientFrom
Description copied from class:AMonomial
Sets coefficient of this with coefficient of oth- Specified by:
setCoefficientFrom
in classAMonomial<Monomial<E>>
-
setDegreeVector
Description copied from class:AMonomial
Sets the degree vector- Specified by:
setDegreeVector
in classAMonomial<Monomial<E>>
-
setDegreeVector
Description copied from class:AMonomial
Sets the degree vector- Specified by:
setDegreeVector
in classAMonomial<Monomial<E>>
-
forceSetDegreeVector
Description copied from class:AMonomial
Sets the degree vector- Specified by:
forceSetDegreeVector
in classAMonomial<Monomial<E>>
-
setCoefficient
-
equals
- Overrides:
equals
in classDegreeVector
-
hashCode
public int hashCode()- Overrides:
hashCode
in classDegreeVector
-
toString
- Overrides:
toString
in classDegreeVector
-