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(Object m)
        Compares two matrices for equality.
        Overrides:
        equals in class Object
        Parameters:
        m - a matrix
      • toString

        public String toString()
        Returns a string representing this matrix.
        Overrides:
        toString in class 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 Object getSet()
      • scalarMultiply

        public Module.Member scalarMultiply(Ring.Member r)
        Returns the multiplication of this matrix by a scalar.
        Parameters:
        r - a ring 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

SCaVis 1.8 © jWork.org