Interface AlgebraFactory<A extends AlgebraElem<A,C>, C extends RingElem<C>>
- Type Parameters:
A- algebra typeC- coefficient type
- All Superinterfaces:
AbelianGroupFactory<A>, ElemFactory<A>, MonoidFactory<A>, RingFactory<A>, Serializable
- All Known Implementing Classes:
GenMatrixRing
public interface AlgebraFactory<A extends AlgebraElem<A,C>, C extends RingElem<C>>
extends RingFactory<A>
Algebra factory interface. Defines conversion from list of lists and sparse
random.
-
Method Summary
Methods inherited from interface AbelianGroupFactory
getZEROMethods inherited from interface ElemFactory
copy, fromInteger, fromInteger, generators, isFinite, parse, parse, random, random, toScript, valueOfMethods inherited from interface MonoidFactory
getONE, isAssociative, isCommutativeMethods inherited from interface RingFactory
characteristic, isField
-
Method Details
-
fromList
-
random
Random Matrix.- Parameters:
k- size of coefficients.q- fraction of non zero elements.- Returns:
- a random matrix.
-