Class JLAdapter<C extends edu.jas.structure.RingElem<C>>

  • Type Parameters:
    C - JAS ring element type
    All Implemented Interfaces:
    org.jlinalg.IRingElement<JLAdapter<C>>

    public class JLAdapter<C extends edu.jas.structure.RingElem<C>>
    extends java.lang.Object
    implements org.jlinalg.IRingElement<JLAdapter<C>>
    Class that wraps a JAS RingElem in an JLinALg IRingElement.
    Author:
    Heinz Kredel
    • Field Detail

      • val

        public final C extends edu.jas.structure.RingElem<C> val
    • Method Detail

      • toString

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

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface org.jlinalg.IRingElement<C extends edu.jas.structure.RingElem<C>>
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • abs

        public JLAdapter<Cabs()
        Specified by:
        abs in interface org.jlinalg.IRingElement<C extends edu.jas.structure.RingElem<C>>
      • norm

        public JLAdapter<Cnorm()
        Specified by:
        norm in interface org.jlinalg.IRingElement<C extends edu.jas.structure.RingElem<C>>
      • add

        public JLAdapter<Cadd​(JLAdapter<C> other)
        Specified by:
        add in interface org.jlinalg.IRingElement<C extends edu.jas.structure.RingElem<C>>
      • apply

        public JLAdapter<Capply​(org.jlinalg.operator.MonadicOperator<JLAdapter<C>> fun)
        Specified by:
        apply in interface org.jlinalg.IRingElement<C extends edu.jas.structure.RingElem<C>>
      • compareTo

        public int compareTo​(JLAdapter<C> other)
        Specified by:
        compareTo in interface org.jlinalg.IRingElement<C extends edu.jas.structure.RingElem<C>>
      • divide

        public JLAdapter<Cdivide​(JLAdapter<C> other)
                            throws org.jlinalg.DivisionByZeroException
        Specified by:
        divide in interface org.jlinalg.IRingElement<C extends edu.jas.structure.RingElem<C>>
        Throws:
        org.jlinalg.DivisionByZeroException
      • ge

        public boolean ge​(JLAdapter<C> val)
        Specified by:
        ge in interface org.jlinalg.IRingElement<C extends edu.jas.structure.RingElem<C>>
      • getFactory

        public org.jlinalg.IRingElementFactory<JLAdapter<C>> getFactory()
        Specified by:
        getFactory in interface org.jlinalg.IRingElement<C extends edu.jas.structure.RingElem<C>>
      • gt

        public boolean gt​(JLAdapter<C> val)
        Specified by:
        gt in interface org.jlinalg.IRingElement<C extends edu.jas.structure.RingElem<C>>
      • invert

        public JLAdapter<Cinvert()
                            throws org.jlinalg.DivisionByZeroException
        Specified by:
        invert in interface org.jlinalg.IRingElement<C extends edu.jas.structure.RingElem<C>>
        Throws:
        org.jlinalg.DivisionByZeroException
      • isOne

        public boolean isOne()
        Specified by:
        isOne in interface org.jlinalg.IRingElement<C extends edu.jas.structure.RingElem<C>>
      • isZero

        public boolean isZero()
        Specified by:
        isZero in interface org.jlinalg.IRingElement<C extends edu.jas.structure.RingElem<C>>
      • le

        public boolean le​(JLAdapter<C> val)
        Specified by:
        le in interface org.jlinalg.IRingElement<C extends edu.jas.structure.RingElem<C>>
      • lt

        public boolean lt​(JLAdapter<C> val)
        Specified by:
        lt in interface org.jlinalg.IRingElement<C extends edu.jas.structure.RingElem<C>>
      • multiply

        public JLAdapter<Cmultiply​(JLAdapter<C> other)
        Specified by:
        multiply in interface org.jlinalg.IRingElement<C extends edu.jas.structure.RingElem<C>>
      • negate

        public JLAdapter<Cnegate()
        Specified by:
        negate in interface org.jlinalg.IRingElement<C extends edu.jas.structure.RingElem<C>>
      • subtract

        public JLAdapter<Csubtract​(JLAdapter<C> other)
        Specified by:
        subtract in interface org.jlinalg.IRingElement<C extends edu.jas.structure.RingElem<C>>