Vector.
| Modifier and Type | Field and Description |
|---|---|
| private GF2mField | field
the finite field this vector is defined over |
| private int[] | vector
the element array |
| Access | Constructor and Description |
|---|---|
| public | GF2mVector(GF2mField
finite field field, byte[] array with elements of vector v)creates the vector over GF(2^m) of given length and with elements from array v (beginning at the first bit) |
| public | GF2mVector(GF2mField
the finite field GF(2m) field, int[] the element array vector)Create a new vector over GF(2m) of the given length and element array. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Vector | Returns: this + addendthe other vector addend)Implements abstract org. |
| public boolean | Returns: the result of the comparisonthe other object other)Implements abstract org. |
| public byte[] | Returns: a byte array encoding of this vectorImplements abstract org. |
| public GF2mField | |
| public int[] | |
| public int | Returns: the hash code of this vectorImplements abstract org. |
| public boolean | Returns: whether this is the zero vector (i.e., all elements are zero)Implements abstract org. |
| public Vector | Returns: this*p = p*thisthe permutation p)Implements abstract org. |
| public String | Returns: a human readable form of this vectorImplements abstract org. |
| field | back to summary |
|---|---|
| private GF2mField field the finite field this vector is defined over | |
| vector | back to summary |
|---|---|
| private int[] vector the element array | |
| GF2mVector | back to summary |
|---|---|
| public 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 | back to summary |
|---|---|
| public GF2mVector(GF2mField field, int[] vector) Create a new vector over GF(2m) of the given length and element array.
| |
| GF2mVector | back to summary |
|---|---|
| public GF2mVector(GF2mVector other) Copy constructor.
| |
| add | back to summary |
|---|---|
| public Vector add(Vector addend) Implements abstract org. Add another vector to this vector. Method is not yet implemented.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Implements abstract org. Compare this vector with another object.
| |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded() Implements abstract org.
| |
| getField | back to summary |
|---|---|
public GF2mField getField()
| |
| getIntArrayForm | back to summary |
|---|---|
public int[] getIntArrayForm()
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract org. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isZero | back to summary |
|---|---|
| public boolean isZero() Implements abstract org. Doc from org. Return whether this is the zero vector (i.e., all elements are zero).
| |
| multiply | back to summary |
|---|---|
| public Vector multiply(Permutation p) Implements abstract org. Multiply this vector with a permutation.
| |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract org. Doc from java. Returns a string representation of the object.
| |