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 long
coefficient
the 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
Modifier and Type Method Description boolean
equals(Object o)
MonomialZp64
forceSetDegreeVector(int[] exponents, int totalDegree)
Sets the degree vectorint
hashCode()
MonomialZp64
setCoefficient(long c)
MonomialZp64
setCoefficientFrom(MonomialZp64 oth)
Sets coefficient of this with coefficient of othMonomialZp64
setDegreeVector(int[] exponents, int totalDegree)
Sets the degree vectorMonomialZp64
setDegreeVector(DegreeVector oth)
Sets the degree vectorMonomial<BigInteger>
toBigMonomial()
String
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
-
-
-
-
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:AMonomial
Sets coefficient of this with coefficient of oth- Specified by:
setCoefficientFrom
in classAMonomial<MonomialZp64>
-
setDegreeVector
public MonomialZp64 setDegreeVector(DegreeVector oth)
Description copied from class:AMonomial
Sets the degree vector- Specified by:
setDegreeVector
in classAMonomial<MonomialZp64>
-
setDegreeVector
public MonomialZp64 setDegreeVector(int[] exponents, int totalDegree)
Description copied from class:AMonomial
Sets the degree vector- Specified by:
setDegreeVector
in classAMonomial<MonomialZp64>
-
forceSetDegreeVector
public MonomialZp64 forceSetDegreeVector(int[] exponents, int totalDegree)
Description copied from class:AMonomial
Sets the degree vector- Specified by:
forceSetDegreeVector
in classAMonomial<MonomialZp64>
-
setCoefficient
public MonomialZp64 setCoefficient(long c)
-
toBigMonomial
public Monomial<BigInteger> toBigMonomial()
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classDegreeVector
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDegreeVector
-
toString
public String toString()
- Overrides:
toString
in classDegreeVector
-
-