homology.f2homology
public class F2 extends java.lang.Object
Constructor and Description |
---|
F2(int num)
Constructs an element of F2 from an integer number by taking it modulo 2.
|
Modifier and Type | Method and Description |
---|---|
F2 |
add(F2 val)
Returns the sum of this element and another one.
|
boolean |
equals(F2 val)
Returns true if this element equals another element.
|
boolean |
equals(java.lang.Object val)
Returns true if this element equals another object.
|
int |
getNumber()
Returns an integer number corresponding to this element modulo 2.
|
F2 |
multiply(F2 val)
Returns the product of this element and another one.
|
java.lang.String |
toString()
Returns a String representation of this element.
|
public F2(int num)
num
- an integer numberpublic int getNumber()
public F2 add(F2 val)
val
- an F2-valuepublic F2 multiply(F2 val)
val
- public boolean equals(F2 val)
val
- public boolean equals(java.lang.Object val)
equals
in class java.lang.Object
val
- public java.lang.String toString()
toString
in class java.lang.Object
0m2
or 1m2
.