Constructor and Description |
---|
GF2mVector(GF2mField field,
byte[] v)
creates the vector over GF(2^m) of given length and with elements from
array v (beginning at the first bit)
|
GF2mVector(GF2mField field,
int[] vector)
Create a new vector over GF(2m) of the given
length and element array.
|
GF2mVector(GF2mVector other)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
Vector |
add(Vector addend)
Add another vector to this vector.
|
boolean |
equals(java.lang.Object other)
Compare this vector with another object.
|
byte[] |
getEncoded() |
GF2mField |
getField() |
int[] |
getIntArrayForm() |
int |
hashCode() |
boolean |
isZero()
Return whether this is the zero vector (i.e., all elements are zero).
|
Vector |
multiply(Permutation p)
Multiply this vector with a permutation.
|
java.lang.String |
toString() |
public GF2mVector(GF2mField field, byte[] v)
field
- finite fieldv
- array with elements of vectorpublic GF2mVector(GF2mField field, int[] vector)
field
- the finite field GF(2m)vector
- the element arraypublic GF2mVector(GF2mVector other)
other
- another GF2mVector
public GF2mField getField()
public int[] getIntArrayForm()
public byte[] getEncoded()
getEncoded
in class Vector
public boolean isZero()
Vector
public Vector add(Vector addend)
public Vector multiply(Permutation p)
public boolean equals(java.lang.Object other)
public int hashCode()