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>, 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 Details

    • fromList

      A fromList(List<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.