GF2mVector
, GF2Vector
public abstract class Vector
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected int |
length |
the length of this vector
|
Constructor | Description |
---|---|
Vector() |
Modifier and Type | Method | Description |
---|---|---|
abstract Vector |
add(Vector addend) |
Add another vector to this vector.
|
abstract boolean |
equals(java.lang.Object other) |
Check if the given object is equal to this vector.
|
abstract byte[] |
getEncoded() |
|
int |
getLength() |
|
abstract int |
hashCode() |
|
abstract boolean |
isZero() |
Return whether this is the zero vector (i.e., all elements are zero).
|
abstract Vector |
multiply(Permutation p) |
Multiply this vector with a permutation.
|
abstract java.lang.String |
toString() |
public final int getLength()
public abstract byte[] getEncoded()
public abstract boolean isZero()
public abstract Vector add(Vector addend)
addend
- the other vectorpublic abstract Vector multiply(Permutation p)
p
- the permutationpublic abstract boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- vectorpublic abstract int hashCode()
hashCode
in class java.lang.Object
public abstract java.lang.String toString()
toString
in class java.lang.Object