edu.jas.structure
Interface AlgebraFactory<A extends AlgebraElem<A,C>,C extends RingElem<C>>

Type Parameters:
A - algebra type
C - 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.

Author:
Heinz Kredel

Method Summary
 A fromList(java.util.List<java.util.List<C>> m)
          Convert list of list to matrix.
 A random(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.