Class Vector
- java.lang.Object
 - 
- org.bouncycastle.pqc.math.linearalgebra.Vector
 
 
- 
- Direct Known Subclasses:
 GF2mVector,GF2Vector
public abstract class Vector extends java.lang.ObjectThis abstract class defines vectors. It holds the length of vector. 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected intlengththe length of this vector 
- 
Constructor Summary
Constructors Constructor Description Vector() 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Vectoradd(Vector addend)Add another vector to this vector.abstract booleanequals(java.lang.Object other)Check if the given object is equal to this vector.abstract byte[]getEncoded()intgetLength()abstract inthashCode()abstract booleanisZero()Return whether this is the zero vector (i.e., all elements are zero).abstract Vectormultiply(Permutation p)Multiply this vector with a permutation.abstract java.lang.StringtoString() 
 - 
 
- 
- 
Method Detail
- 
getLength
public final int getLength()
- Returns:
 - the length of this vector
 
 
- 
getEncoded
public abstract byte[] getEncoded()
- Returns:
 - this vector as byte array
 
 
- 
isZero
public abstract boolean isZero()
Return whether this is the zero vector (i.e., all elements are zero).- Returns:
 - true if this is the zero vector, false otherwise
 
 
- 
add
public abstract Vector add(Vector addend)
Add another vector to this vector.- Parameters:
 addend- the other vector- Returns:
 - this + addend
 
 
- 
multiply
public abstract Vector multiply(Permutation p)
Multiply this vector with a permutation.- Parameters:
 p- the permutation- Returns:
 - this*p = p*this
 
 
- 
equals
public abstract boolean equals(java.lang.Object other)
Check if the given object is equal to this vector.- Overrides:
 equalsin classjava.lang.Object- Parameters:
 other- vector- Returns:
 - the result of the comparison
 
 
- 
hashCode
public abstract int hashCode()
- Overrides:
 hashCodein classjava.lang.Object- Returns:
 - the hash code of this vector
 
 
- 
toString
public abstract java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object- Returns:
 - a human readable form of this vector
 
 
 - 
 
 -