Documentation of 'jsci.maths.matrices.RingMatrix' Java class
RingMatrix
jsci.maths.matrices

Class RingMatrix

    • Constructor Detail

      • RingMatrix

        public RingMatrix(Ring.Member[][] array)
        Constructs a matrix by wrapping an array.
        Parameters:
        array - an assigned value
    • Method Detail

      • equals

        public boolean equals(java.lang.Object m)
        Compares two matrices for equality.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        m - a matrix
      • toString

        public java.lang.String toString()
        Returns a string representing this matrix.
        Overrides:
        toString in class java.lang.Object
      • getElement

        public Ring.Member getElement(int i,
                                      int j)
        Returns an element of the matrix.
        Parameters:
        i - row index of the element
        j - column index of the element
        Throws:
        MatrixDimensionException - If attempting to access an invalid element.
      • setElement

        public void setElement(int i,
                               int j,
                               Ring.Member r)
        Sets the value of an element of the matrix.
        Parameters:
        i - row index of the element
        j - column index of the element
        r - a ring element
        Throws:
        MatrixDimensionException - If attempting to access an invalid element.
      • getSet

        public java.lang.Object getSet()
      • scalarMultiply

        public Module.Member scalarMultiply(Ring.Member r)
        Returns the multiplication of this matrix by a scalar.
        Parameters:
        r - a ring element.
      • scalarDivide

        public VectorSpace.Member scalarDivide(Field.Member x)
        Returns the division of this matrix by a scalar.
        Parameters:
        x - a field element.
      • multiply

        public final Ring.Member multiply(Ring.Member m)
        Returns the multiplication of this matrix and another.
        Parameters:
        m - a ring member
      • directSum

        public RingMatrix directSum(RingMatrix m)
        Returns the direct sum of this matrix and another.
      • tensor

        public RingMatrix tensor(RingMatrix m)
        Returns the tensor product of this matrix and another.
      • transpose

        public Matrix transpose()
        Returns the transpose of this matrix.
        Specified by:
        transpose in class Matrix
        Returns:
        a matrix

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.