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>, java.io.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
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description AfromList(java.util.List<java.util.List<C>> m)Convert list of list to matrix.Arandom(int k, float q)Random Matrix.-
Methods inherited from interface edu.jas.structure.RingFactory
characteristic, isField
-
Methods inherited from interface edu.jas.structure.AbelianGroupFactory
getZERO
-
Methods inherited from interface edu.jas.structure.MonoidFactory
getONE, isAssociative, isCommutative
-
Methods inherited from interface edu.jas.structure.ElemFactory
copy, fromInteger, fromInteger, generators, isFinite, parse, parse, random, random, toScript
-
-
-
-
Method Detail
-
fromList
A fromList(java.util.List<java.util.List<C>> m)
Convert list of list to matrix.- Parameters:
m- list of list of ring elements.- Returns:
- a matrix with the elements from m.
-
random
A random(int k, float q)
Random Matrix.- Parameters:
k- size of coefficients.q- fraction of non zero elements.- Returns:
- a random matrix.
-
-
DMelt 3.0 © DataMelt by jWork.ORG