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

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

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

      • fac

        public final edu.jas.structure.RingFactory<C extends edu.jas.structure.RingElem<C>> fac
    • Constructor Detail

      • JLAdapterFactory

        public JLAdapterFactory​(edu.jas.structure.RingFactory<C> f)
        Parameters:
        f -
      • JLAdapterFactory

        public JLAdapterFactory​(edu.jas.structure.ElemFactory<C> f)
        Parameters:
        f - element factory
    • 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)
        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()
      • get

        public JLAdapter<Cget​(java.lang.Object o)
        Specified by:
        get in interface org.jlinalg.IRingElementFactory<C extends edu.jas.structure.RingElem<C>>
      • get

        public JLAdapter<Cget​(int i)
        Specified by:
        get in interface org.jlinalg.IRingElementFactory<C extends edu.jas.structure.RingElem<C>>
      • get

        public JLAdapter<Cget​(long i)
        Specified by:
        get in interface org.jlinalg.IRingElementFactory<C extends edu.jas.structure.RingElem<C>>
      • get

        public JLAdapter<Cget​(double d)
        Specified by:
        get in interface org.jlinalg.IRingElementFactory<C extends edu.jas.structure.RingElem<C>>
      • getArray

        public JLAdapter<C>[] getArray​(int size)
        Specified by:
        getArray in interface org.jlinalg.IRingElementFactory<C extends edu.jas.structure.RingElem<C>>
      • getArray

        public JLAdapter<C>[][] getArray​(int rows,
                                         int columns)
        Specified by:
        getArray in interface org.jlinalg.IRingElementFactory<C extends edu.jas.structure.RingElem<C>>
      • m_one

        public JLAdapter<Cm_one()
        Minus one? OK
        Specified by:
        m_one in interface org.jlinalg.IRingElementFactory<C extends edu.jas.structure.RingElem<C>>
        See Also:
        IRingElementFactory.m_one()
      • one

        public JLAdapter<Cone()
        Specified by:
        one in interface org.jlinalg.IRingElementFactory<C extends edu.jas.structure.RingElem<C>>
      • zero

        public JLAdapter<Czero()
        Specified by:
        zero in interface org.jlinalg.IRingElementFactory<C extends edu.jas.structure.RingElem<C>>
      • randomValue

        @Deprecated
        public JLAdapter<CrandomValue​(java.util.Random random)
        Deprecated.
        Specified by:
        randomValue in interface org.jlinalg.IRingElementFactory<C extends edu.jas.structure.RingElem<C>>
      • randomValue

        public JLAdapter<CrandomValue()
        Specified by:
        randomValue in interface org.jlinalg.IRingElementFactory<C extends edu.jas.structure.RingElem<C>>
      • gaussianRandomValue

        @Deprecated
        public JLAdapter<CgaussianRandomValue​(java.util.Random random)
        Deprecated.
        Specified by:
        gaussianRandomValue in interface org.jlinalg.IRingElementFactory<C extends edu.jas.structure.RingElem<C>>
      • gaussianRandomValue

        public JLAdapter<CgaussianRandomValue()
        Specified by:
        gaussianRandomValue in interface org.jlinalg.IRingElementFactory<C extends edu.jas.structure.RingElem<C>>
      • randomValue

        @Deprecated
        public JLAdapter<CrandomValue​(java.util.Random random,
                                        JLAdapter<C> min,
                                        JLAdapter<C> max)
        Deprecated.
        Specified by:
        randomValue in interface org.jlinalg.IRingElementFactory<C extends edu.jas.structure.RingElem<C>>
      • convert

        public org.jlinalg.Vector<JLAdapter<C>> convert​(org.jlinalg.Vector<? extends org.jlinalg.IRingElement<?>> from)
        Specified by:
        convert in interface org.jlinalg.IRingElementFactory<C extends edu.jas.structure.RingElem<C>>
      • convert

        public org.jlinalg.Matrix<JLAdapter<C>> convert​(org.jlinalg.Matrix<? extends org.jlinalg.IRingElement<?>> from)
        Specified by:
        convert in interface org.jlinalg.IRingElementFactory<C extends edu.jas.structure.RingElem<C>>