Class GenVectorModul<C extends RingElem<C>>
java.lang.Object
edu.jas.vector.GenVectorModul<C>
- All Implemented Interfaces:
AbelianGroupFactory<GenVector<C>>, ElemFactory<GenVector<C>>, ModulFactory<GenVector<C>, C>, Serializable
public class GenVectorModul<C extends RingElem<C>>
extends Object
implements ModulFactory<GenVector<C>, C>
GenVectorModul implements a generic vector factory with RingElem entries.
Vectors of n columns over C.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy vector.booleanComparison with any other object.fromInteger(long a) Get the vector for a.Get the vector for a.From List of coefficients.Get a list of the generating elements.getZERO()getZERO.inthashCode()Hash code for this vector module.booleanisFinite()Is this structure finite or infinite.Parse a vector from a Reader.Parse a vector from a String.random(int k) Random vector.random(int k, float q) Random vector.Random vector.Random vector.toScript()Get a scripting compatible string representation.toString()Get the String representation as RingElem.Methods inherited from interface ElemFactory
valueOf
-
Field Details
-
logger
private static final org.apache.logging.log4j.Logger logger -
coFac
-
cols
public final int cols -
ZERO
-
BASIS
-
random
-
DEFAULT_DENSITY
public static final float DEFAULT_DENSITY- See Also:
-
density
private final float density- See Also:
-
-
Constructor Details
-
GenVectorModul
Constructor for GenVectorModul.
-
-
Method Details
-
toString
-
toScript
-
getZERO
-
generators
Get a list of the generating elements.- Specified by:
generatorsin interfaceElemFactory<C extends RingElem<C>>- Returns:
- list of generators for the algebraic structure.
- See Also:
-
isFinite
public boolean isFinite()Is this structure finite or infinite.- Specified by:
isFinitein interfaceElemFactory<C extends RingElem<C>>- Returns:
- true if this structure is finite, else false.
- See Also:
-
equals
-
hashCode
-
fromInteger
Get the vector for a.- Specified by:
fromIntegerin interfaceElemFactory<C extends RingElem<C>>- Parameters:
a- long- Returns:
- vector corresponding to a.
-
fromInteger
Get the vector for a.- Specified by:
fromIntegerin interfaceElemFactory<C extends RingElem<C>>- Parameters:
a- long- Returns:
- vector corresponding to a.
-
fromList
-
random
-
random
-
random
-
random
-
copy
-
parse
-
parse
-