public class GenVectorModul<C extends RingElem<C>> extends java.lang.Object implements ModulFactory<GenVector<C>,C>
| Modifier and Type | Field and Description |
|---|---|
java.util.List<GenVector<C>> |
BASIS |
RingFactory<C> |
coFac |
int |
cols |
static float |
DEFAULT_DENSITY |
GenVector<C> |
ZERO |
| Constructor and Description |
|---|
GenVectorModul(RingFactory<C> b,
int s)
Constructor for GenVectorModul.
|
| Modifier and Type | Method and Description |
|---|---|
GenVector<C> |
copy(GenVector<C> c)
copy vector.
|
boolean |
equals(java.lang.Object other)
Comparison with any other object.
|
GenVector<C> |
fromInteger(java.math.BigInteger a)
Get the vector for a.
|
GenVector<C> |
fromInteger(long a)
Get the vector for a.
|
GenVector<C> |
fromList(java.util.List<C> v)
From List of coefficients.
|
java.util.List<GenVector<C>> |
generators()
Get a list of the generating elements.
|
GenVector<C> |
getZERO()
getZERO.
|
int |
hashCode()
Hash code for this vector module.
|
boolean |
isFinite()
Is this structure finite or infinite.
|
GenVector<C> |
parse(java.io.Reader r)
Parse a vector from a Reader.
|
GenVector<C> |
parse(java.lang.String s)
Parse a vector from a String.
|
GenVector<C> |
random(int k)
Random vector.
|
GenVector<C> |
random(int k,
float q)
Random vector.
|
GenVector<C> |
random(int k,
float q,
java.util.Random random)
Random vector.
|
GenVector<C> |
random(int k,
java.util.Random random)
Random vector.
|
java.lang.String |
toScript()
Get a scripting compatible string representation.
|
java.lang.String |
toString()
Get the String representation as RingElem.
|
public final RingFactory<C extends RingElem<C>> coFac
public final int cols
public static final float DEFAULT_DENSITY
public GenVectorModul(RingFactory<C> b, int s)
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String toScript()
toScript in interface ElemFactory<GenVector<C extends RingElem<C>>>ElemFactory.toScript()public java.util.List<GenVector<C>> generators()
generators in interface ElemFactory<GenVector<C extends RingElem<C>>>ElemFactory.generators()public boolean isFinite()
isFinite in interface ElemFactory<GenVector<C extends RingElem<C>>>ElemFactory.isFinite()public boolean equals(java.lang.Object other)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public GenVector<C> fromInteger(long a)
fromInteger in interface ElemFactory<GenVector<C extends RingElem<C>>>a - longpublic GenVector<C> fromInteger(java.math.BigInteger a)
fromInteger in interface ElemFactory<GenVector<C extends RingElem<C>>>a - longpublic GenVector<C> random(int k, float q, java.util.Random random)
k - size of random coefficients.q - density of nonzero coefficients.random - is a source for random bits.public GenVector<C> parse(java.lang.String s)