Package cc.redberry.rings.poly.multivar
Class MonomialZp64
- java.lang.Object
-
- cc.redberry.rings.poly.multivar.DegreeVector
-
- cc.redberry.rings.poly.multivar.AMonomial<MonomialZp64>
-
- cc.redberry.rings.poly.multivar.MonomialZp64
-
- All Implemented Interfaces:
Serializable
public final class MonomialZp64 extends AMonomial<MonomialZp64>
Monomial with coefficient from Zp with p < 2^64- Since:
- 1.0
- See Also:
IMonomialAlgebra.MonomialAlgebraZp64, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description longcoefficientthe coefficient-
Fields inherited from class cc.redberry.rings.poly.multivar.DegreeVector
exponents, totalDegree
-
-
Constructor Summary
Constructors Constructor Description MonomialZp64(int[] exponents, int totalDegree, long coefficient)MonomialZp64(int[] exponents, long coefficient)MonomialZp64(int nVariables, long coefficient)MonomialZp64(DegreeVector degreeVector, long coefficient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)MonomialZp64forceSetDegreeVector(int[] exponents, int totalDegree)Sets the degree vectorinthashCode()MonomialZp64setCoefficient(long c)MonomialZp64setCoefficientFrom(MonomialZp64 oth)Sets coefficient of this with coefficient of othMonomialZp64setDegreeVector(int[] exponents, int totalDegree)Sets the degree vectorMonomialZp64setDegreeVector(DegreeVector oth)Sets the degree vectorMonomial<BigInteger>toBigMonomial()StringtoString()-
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
-
-
-
-
Constructor Detail
-
MonomialZp64
public MonomialZp64(DegreeVector degreeVector, long coefficient)
- Parameters:
degreeVector- DegreeVectorcoefficient- the coefficient
-
MonomialZp64
public MonomialZp64(int[] exponents, int totalDegree, long coefficient)- Parameters:
exponents- exponentstotalDegree- total degree (sum of exponents)coefficient- the coefficient
-
MonomialZp64
public MonomialZp64(int[] exponents, long coefficient)- Parameters:
exponents- exponentscoefficient- the coefficient
-
MonomialZp64
public MonomialZp64(int nVariables, long coefficient)
-
-
Method Detail
-
setCoefficientFrom
public MonomialZp64 setCoefficientFrom(MonomialZp64 oth)
Description copied from class:AMonomialSets coefficient of this with coefficient of oth- Specified by:
setCoefficientFromin classAMonomial<MonomialZp64>
-
setDegreeVector
public MonomialZp64 setDegreeVector(DegreeVector oth)
Description copied from class:AMonomialSets the degree vector- Specified by:
setDegreeVectorin classAMonomial<MonomialZp64>
-
setDegreeVector
public MonomialZp64 setDegreeVector(int[] exponents, int totalDegree)
Description copied from class:AMonomialSets the degree vector- Specified by:
setDegreeVectorin classAMonomial<MonomialZp64>
-
forceSetDegreeVector
public MonomialZp64 forceSetDegreeVector(int[] exponents, int totalDegree)
Description copied from class:AMonomialSets the degree vector- Specified by:
forceSetDegreeVectorin classAMonomial<MonomialZp64>
-
setCoefficient
public MonomialZp64 setCoefficient(long c)
-
toBigMonomial
public Monomial<BigInteger> toBigMonomial()
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classDegreeVector
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDegreeVector
-
toString
public String toString()
- Overrides:
toStringin classDegreeVector
-
-