|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.jas.vector.GenVectorModul<C>
public class GenVectorModul<C extends RingElem<C>>
GenVectorModul implements a generic vector factory with RingElem entries. Vectors of n columns over C.
Field Summary | |
---|---|
java.util.List<GenVector<C>> |
BASIS
|
RingFactory<C> |
coFac
|
int |
cols
|
static float |
DEFAULT_DENSITY
|
GenVector<C> |
ZERO
|
Constructor Summary | |
---|---|
GenVectorModul(RingFactory<C> b,
int s)
Constructor for GenVectorModul. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final RingFactory<C extends RingElem<C>> coFac
public final int cols
public final GenVector<C extends RingElem<C>> ZERO
public final java.util.List<GenVector<C extends RingElem<C>>> BASIS
public static final float DEFAULT_DENSITY
Constructor Detail |
---|
public GenVectorModul(RingFactory<C> b, int s)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.String toScript()
toScript
in interface ElemFactory<GenVector<C extends RingElem<C>>>
ElemFactory.toScript()
public GenVector<C> getZERO()
getZERO
in interface AbelianGroupFactory<GenVector<C extends RingElem<C>>>
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.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public GenVector<C> fromInteger(long a)
fromInteger
in interface ElemFactory<GenVector<C extends RingElem<C>>>
a
- long
public GenVector<C> fromInteger(java.math.BigInteger a)
fromInteger
in interface ElemFactory<GenVector<C extends RingElem<C>>>
a
- long
public GenVector<C> fromList(java.util.List<C> v)
fromList
in interface ModulFactory<GenVector<C extends RingElem<C>>,C extends RingElem<C>>
v
- list of coefficients.
public GenVector<C> random(int k)
random
in interface ElemFactory<GenVector<C extends RingElem<C>>>
k
- size of random coefficients.
public GenVector<C> random(int k, float q)
random
in interface ModulFactory<GenVector<C extends RingElem<C>>,C extends RingElem<C>>
k
- size of random coefficients.q
- density of nozero coefficients.
public GenVector<C> random(int k, java.util.Random random)
random
in interface ElemFactory<GenVector<C extends RingElem<C>>>
k
- size of random coefficients.random
- is a source for random bits.
public GenVector<C> random(int k, float q, java.util.Random random)
k
- size of random coefficients.q
- density of nozero coefficients.random
- is a source for random bits.
public GenVector<C> copy(GenVector<C> c)
copy
in interface ElemFactory<GenVector<C extends RingElem<C>>>
public GenVector<C> parse(java.lang.String s)
parse
in interface ElemFactory<GenVector<C extends RingElem<C>>>
s
- String.
public GenVector<C> parse(java.io.Reader r)
parse
in interface ElemFactory<GenVector<C extends RingElem<C>>>
r
- Reader.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |