Package edu.jas.poly
Class ExpVectorPair
- java.lang.Object
-
- edu.jas.poly.ExpVectorPair
-
- All Implemented Interfaces:
java.io.Serializable
public class ExpVectorPair extends java.lang.Object implements java.io.Serializable
ExpVectorPair implements pairs of exponent vectors for S-polynomials. Objects of this class are immutable.- Author:
- Heinz Kredel
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExpVectorPair(ExpVector e, ExpVector f)
Constructors for ExpVectorPair.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(ExpVectorPair b)
equals.boolean
equals(java.lang.Object B)
equals.ExpVector
getFirst()
ExpVector
getSecond()
int
hashCode()
hash code.boolean
isMultiple(ExpVectorPair p)
isMultiple.java.lang.String
toString()
toString.long
totalDeg()
-
-
-
Constructor Detail
-
ExpVectorPair
public ExpVectorPair(ExpVector e, ExpVector f)
Constructors for ExpVectorPair.- Parameters:
e
- first part.f
- second part.
-
-
Method Detail
-
totalDeg
public long totalDeg()
- Returns:
- total degree of both parts.
-
toString
public java.lang.String toString()
toString.- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object B)
equals.- Overrides:
equals
in classjava.lang.Object
- Parameters:
B
- other.- Returns:
- true, if this == b, else false.
-
equals
public boolean equals(ExpVectorPair b)
equals.- Parameters:
b
- other.- Returns:
- true, if this == b, else false.
-
hashCode
public int hashCode()
hash code.- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
isMultiple
public boolean isMultiple(ExpVectorPair p)
isMultiple.- Parameters:
p
- other.- Returns:
- true, if this is a multiple of b, else false.
-
-