Package edu.jas.structure
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 edu.jas.structure.AbelianGroupFactory
getZERO
Methods inherited from interface edu.jas.structure.ElemFactory
copy, fromInteger, fromInteger, generators, isFinite, parse, parse, random, random, toScript, valueOf
Methods inherited from interface edu.jas.structure.MonoidFactory
getONE, isAssociative, isCommutative
Methods inherited from interface edu.jas.structure.RingFactory
characteristic, isField
-
Method Details
-
fromList
Convert list of list to matrix.- Parameters:
m
- list of list of ring elements.- Returns:
- a matrix with the elements from m.
-
random
Random Matrix.- Parameters:
k
- size of coefficients.q
- fraction of non zero elements.- Returns:
- a random matrix.
-