Package edu.jas.structure
Interface ModulFactory<M extends ModulElem<M,C>,C extends RingElem<C>>
- Type Parameters:
M- module typeC- coefficient type
- All Superinterfaces:
AbelianGroupFactory<M>,ElemFactory<M>,Serializable
- All Known Implementing Classes:
GenVectorModul
public interface ModulFactory<M extends ModulElem<M,C>,C extends RingElem<C>>
extends AbelianGroupFactory<M>
Module factory interface. Defines conversion from list and sparse random.
-
Method Summary
Methods inherited from interface edu.jas.structure.AbelianGroupFactory
getZEROMethods inherited from interface edu.jas.structure.ElemFactory
copy, fromInteger, fromInteger, generators, isFinite, parse, parse, random, random, toScript, valueOf
-
Method Details
-
fromList
Convert list to module.- Parameters:
v- list of ring elements.- Returns:
- a module element with the elements from v.
-
random
Random vector.- Parameters:
k- size of coefficients.q- fraction of non zero elements.- Returns:
- a random vector.
-