/*
 * $Id$
 */

package edu.jas.structure;


import java.util.List;


/**
 * Algebra factory interface. Defines conversion from list of lists and sparse
 * random.
 * @param  algebra type
 * @param  coefficient type
 * @author Heinz Kredel
 */
public interface AlgebraFactory, C extends RingElem> extends RingFactory {


    /**
     * Convert list of list to matrix.
     * @param m list of list of ring elements.
     * @return a matrix with the elements from m.
     */
    public A fromList(List> m);


    /**
     * Random Matrix.
     * @param k size of coefficients.
     * @param q fraction of non zero elements.
     * @return a random matrix.
     */
    public A random(int k, float q);

}

 

Ads help maintain this website.