Documentation of 'edu.jas.poly.LocalRing' Java class
LocalRing
edu.jas.poly

Class LocalRing<C extends RingElem<C>>

    • Constructor Summary

      Constructors 
      Constructor and Description
      LocalRing(RingFactory<C> r, C i)
      The constructor creates a LocalRing object from a RingFactory and a RingElem.
    • Constructor Detail

      • LocalRing

        public LocalRing(RingFactory<C> r,
                         C i)
        The constructor creates a LocalRing object from a RingFactory and a RingElem.
        Parameters:
        i - localization ideal generator.
    • Method Detail

      • isCommutative

        public boolean isCommutative()
        Query if this ring is commutative.
        Specified by:
        isCommutative in interface MonoidFactory<Local<C extends RingElem<C>>>
        Returns:
        true if this ring is commutative, else false.
      • isAssociative

        public boolean isAssociative()
        Query if this ring is associative.
        Specified by:
        isAssociative in interface MonoidFactory<Local<C extends RingElem<C>>>
        Returns:
        true if this ring is associative, else false.
      • characteristic

        public java.math.BigInteger characteristic()
        Characteristic of this ring.
        Specified by:
        characteristic in interface RingFactory<Local<C extends RingElem<C>>>
        Returns:
        characteristic of this ring.
      • fromInteger

        public Local<C> fromInteger(java.math.BigInteger a)
        Get a Local element from a BigInteger value.
        Specified by:
        fromInteger in interface ElemFactory<Local<C extends RingElem<C>>>
        Parameters:
        a - BigInteger.
        Returns:
        a Local.
      • toString

        public java.lang.String toString()
        Get the String representation as RingFactory.
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()
      • equals

        public boolean equals(java.lang.Object b)
        Comparison with any other object.
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • hashCode

        public int hashCode()
        Hash code for this local ring.
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • random

        public Local<C> random(int n)
        Local random.
        Specified by:
        random in interface ElemFactory<Local<C extends RingElem<C>>>
        Parameters:
        n - such that 0 ≤ v ≤ (2n-1).
        Returns:
        a random residue element.
      • random

        public Local<C> random(int n,
                               java.util.Random rnd)
        Local random.
        Specified by:
        random in interface ElemFactory<Local<C extends RingElem<C>>>
        Parameters:
        n - such that 0 ≤ v ≤ (2n-1).
        rnd - is a source for random bits.
        Returns:
        a random residue element.
      • parse

        public Local<C> parse(java.lang.String s)
        Parse Local from String.
        Specified by:
        parse in interface ElemFactory<Local<C extends RingElem<C>>>
        Parameters:
        s - String.
        Returns:
        Local from s.
      • parse

        public Local<C> parse(java.io.Reader r)
        Parse Local from Reader.
        Specified by:
        parse in interface ElemFactory<Local<C extends RingElem<C>>>
        Parameters:
        r - Reader.
        Returns:
        next Local from r.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.