Class MonomialZp64

All Implemented Interfaces:
`Serializable`

```public final class MonomialZp64
extends AMonomial<MonomialZp64>```
Monomial with coefficient from Zp with p < 2^64
Since:
1.0
`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 vector
`int` `hashCode()`
`MonomialZp64` `setCoefficient​(long c)`
`MonomialZp64` `setCoefficientFrom​(MonomialZp64 oth)`
Sets coefficient of this with coefficient of oth
`MonomialZp64` ```setDegreeVector​(int[] exponents, int totalDegree)```
Sets the degree vector
`MonomialZp64` `setDegreeVector​(DegreeVector oth)`
Sets the degree vector
`Monomial<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`

Methods inherited from class java.lang.Object

`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`
• Field Details

• coefficient

public final long coefficient
the coefficient
• Constructor Details

• MonomialZp64

public MonomialZp64​(DegreeVector degreeVector, long coefficient)
Parameters:
`degreeVector` - DegreeVector
`coefficient` - the coefficient
• MonomialZp64

public MonomialZp64​(int[] exponents, int totalDegree, long coefficient)
Parameters:
`exponents` - exponents
`totalDegree` - total degree (sum of exponents)
`coefficient` - the coefficient
• MonomialZp64

public MonomialZp64​(int[] exponents, long coefficient)
Parameters:
`exponents` - exponents
`coefficient` - the coefficient
• MonomialZp64

public MonomialZp64​(int nVariables, long coefficient)
• Method Details

• setCoefficientFrom

public MonomialZp64 setCoefficientFrom​(MonomialZp64 oth)
Description copied from class: `AMonomial`
Sets coefficient of this with coefficient of oth
Specified by:
`setCoefficientFrom` in class `AMonomial<MonomialZp64>`
• setDegreeVector

public MonomialZp64 setDegreeVector​(DegreeVector oth)
Description copied from class: `AMonomial`
Sets the degree vector
Specified by:
`setDegreeVector` in class `AMonomial<MonomialZp64>`
• setDegreeVector

public MonomialZp64 setDegreeVector​(int[] exponents, int totalDegree)
Description copied from class: `AMonomial`
Sets the degree vector
Specified by:
`setDegreeVector` in class `AMonomial<MonomialZp64>`
• forceSetDegreeVector

public MonomialZp64 forceSetDegreeVector​(int[] exponents, int totalDegree)
Description copied from class: `AMonomial`
Sets the degree vector
Specified by:
`forceSetDegreeVector` in class `AMonomial<MonomialZp64>`
• setCoefficient

public MonomialZp64 setCoefficient​(long c)
• toBigMonomial

public  toBigMonomial()
• equals

public boolean equals​(Object o)
Overrides:
`equals` in class `DegreeVector`
• hashCode

public int hashCode()
Overrides:
`hashCode` in class `DegreeVector`
• toString

public String toString()
Overrides:
`toString` in class `DegreeVector`