/*
 * $Id$
 */

package edu.jas.structure;


import java.util.List;


/**
 * Module factory interface. Defines conversion from list and sparse random.
 * @param  module type
 * @param  coefficient type
 * @author Heinz Kredel
 */
public interface ModulFactory, C extends RingElem> extends
                AbelianGroupFactory {


    /**
     * Convert list to module.
     * @param v list of ring elements.
     * @return a module element with the elements from v.
     */
    public M fromList(List v);


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

}

 

Ads help maintain this website.