Documentation of 'edu.jas.vector.GenMatrixRing' Java class
GenMatrixRing
edu.jas.vector

Class GenMatrixRing<C extends RingElem<C>>

    • Constructor Detail

      • GenMatrixRing

        public GenMatrixRing(RingFactory<C> b,
                             int r,
                             int c)
        Constructors for GenMatrixRing.
        Parameters:
        b - coefficient factory.
        r - number of rows.
        c - number of colums.
      • GenMatrixRing

        public GenMatrixRing(RingFactory<C> b,
                             int r,
                             int c,
                             int s)
        Constructors for GenMatrixRing.
        Parameters:
        b - coefficient factory.
        r - number of rows.
        c - number of colums.
        s - block size for blocked operations.
    • Method Detail

      • toString

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

        public boolean equals(java.lang.Object other)
        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 matrix ring.
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • isField

        public boolean isField()
        Query if this ring is a field. May return false if it is to hard to determine if this ring is a field.
        Specified by:
        isField in interface RingFactory<GenMatrix<C extends RingElem<C>>>
        Returns:
        true if it is known that this ring is a field, else false.
      • isCommutative

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

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

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

        public GenMatrixRing<C> transpose()
        Transposed matrix ring.
        Returns:
        transposed ring factory.
      • product

        public GenMatrixRing<C> product(GenMatrixRing<C> other)
        Product matrix ring for multiplication.
        Parameters:
        other - matrix ring factory.
        Returns:
        product ring factory.
      • random

        public GenMatrix<C> random(int k,
                                   java.util.Random random)
        Random matrix.
        Specified by:
        random in interface ElemFactory<GenMatrix<C extends RingElem<C>>>
        Parameters:
        k - size of random coefficients.
        random - is a source for random bits.
        Returns:
        a random element.
      • random

        public GenMatrix<C> random(int k,
                                   float q,
                                   java.util.Random random)
        Random matrix.
        Parameters:
        k - size of random coefficients.
        q - density of nozero coefficients.
        random - is a source for random bits.
        Returns:
        a random element.
      • randomUpper

        public GenMatrix<C> randomUpper(int k,
                                        float q)
        Random upper triangular matrix.
        Parameters:
        k - size of random coefficients.
        q - density of nozero coefficients.
      • randomUpper

        public GenMatrix<C> randomUpper(int k,
                                        float q,
                                        java.util.Random random)
        Random upper triangular matrix.
        Parameters:
        k - size of random coefficients.
        q - density of nozero coefficients.
        random - is a source for random bits.
        Returns:
        a random element.
      • randomLower

        public GenMatrix<C> randomLower(int k,
                                        float q)
        Random lower triangular matrix.
        Parameters:
        k - size of random coefficients.
        q - density of nozero coefficients.
      • randomLower

        public GenMatrix<C> randomLower(int k,
                                        float q,
                                        java.util.Random random)
        Random lower triangular matrix.
        Parameters:
        k - size of random coefficients.
        q - density of nozero coefficients.
        random - is a source for random bits.
        Returns:
        a random element.
      • parse

        public GenMatrix<C> parse(java.lang.String s)
        Parse a matrix from a String. Syntax: [ [ c, ..., c ], ..., [ c, ..., c ] ]
        Specified by:
        parse in interface ElemFactory<GenMatrix<C extends RingElem<C>>>
        Parameters:
        s - input String.
        Returns:
        parsed matrix

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.