/*
 * $Id$
 */

package edu.jas.arith;


import edu.jas.structure.RingElem;
import edu.jas.structure.RingFactory;


/**
 * Modular ring factory interface. Defines chinese remainder method and get
 * modul method.
 * @author Heinz Kredel
 */

public interface ModularRingFactory & Modular> extends RingFactory {


    /**
     * Return the BigInteger modul for the factory.
     * @return a BigInteger of this.modul.
     */
    public BigInteger getIntegerModul();


    /**
     * Chinese remainder algorithm. Assert c.modul >= a.modul and c.modul *
     * a.modul = this.modul.
     * @param c modular.
     * @param ci inverse of c.modul in ring of a.
     * @param a other ModLong.
     * @return S, with S mod c.modul == c and S mod a.modul == a.
     */
    public C chineseRemainder(C c, C ci, C a);

}

 

Ads help maintain this website.