Class GF2mVector
- java.lang.Object
 - 
- org.bouncycastle.pqc.math.linearalgebra.Vector
 - 
- org.bouncycastle.pqc.math.linearalgebra.GF2mVector
 
 
 
- 
- 
Constructor Summary
Constructors Constructor 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. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vectoradd(Vector addend)Add another vector to this vector.booleanequals(java.lang.Object other)Compare this vector with another object.byte[]getEncoded()GF2mFieldgetField()int[]getIntArrayForm()inthashCode()booleanisZero()Return whether this is the zero vector (i.e., all elements are zero).Vectormultiply(Permutation p)Multiply this vector with a permutation.java.lang.StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
GF2mVector
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)- Parameters:
 field- finite fieldv- array with elements of vector
 
- 
GF2mVector
public GF2mVector(GF2mField field, int[] vector)
Create a new vector over GF(2m) of the given length and element array.- Parameters:
 field- the finite field GF(2m)vector- the element array
 
- 
GF2mVector
public GF2mVector(GF2mVector other)
Copy constructor.- Parameters:
 other- anotherGF2mVector
 
 - 
 
- 
Method Detail
- 
getField
public GF2mField getField()
- Returns:
 - the finite field this vector is defined over
 
 
- 
getIntArrayForm
public int[] getIntArrayForm()
- Returns:
 - int[] form of this vector
 
 
- 
getEncoded
public byte[] getEncoded()
- Specified by:
 getEncodedin classVector- Returns:
 - a byte array encoding of this vector
 
 
- 
isZero
public boolean isZero()
Description copied from class:VectorReturn whether this is the zero vector (i.e., all elements are zero). 
- 
add
public Vector add(Vector addend)
Add another vector to this vector. Method is not yet implemented. 
- 
multiply
public Vector multiply(Permutation p)
Multiply this vector with a permutation. 
- 
equals
public boolean equals(java.lang.Object other)
Compare this vector with another object. 
- 
hashCode
public int hashCode()
 
 - 
 
 -