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

Class AbstractIntegerMatrix

    • Method Detail

      • equals

        public final boolean equals(java.lang.Object obj)
        Compares two ${nativeTyp} matrices for equality.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - a int matrix
      • equals

        public final boolean equals(AbstractIntegerMatrix m)
        Compares two ${nativeTyp} matrices for equality. Two matrices are considered to be equal if the Frobenius norm of their difference is within the zero tolerance.
        Parameters:
        m - a int matrix
      • toString

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

        public int hashCode()
        Returns a hashcode for this matrix.
        Overrides:
        hashCode in class java.lang.Object
      • toDoubleMatrix

        public AbstractDoubleMatrix toDoubleMatrix()
        Converts this matrix to a double matrix.
        Returns:
        a double matrix
      • toComplexMatrix

        public AbstractComplexMatrix toComplexMatrix()
        Converts this matrix to a complex matrix.
        Returns:
        a complex matrix
      • getElement

        public abstract int 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 abstract void setElement(int i,
                                        int j,
                                        int x)
        Sets the value of an element of the matrix. Should only be used to initialise this matrix.
        Parameters:
        i - row index of the element
        j - column index of the element
        x - a number
        Throws:
        MatrixDimensionException - If attempting to access an invalid element.
      • getSet

        public final java.lang.Object getSet()
      • infNorm

        public int infNorm()
        Returns the linfinity-norm.
      • frobeniusNorm

        public double frobeniusNorm()
        Returns the Frobenius or Hilbert-Schmidt (l2) norm.
      • scalarMultiply

        public final Module.Member scalarMultiply(Ring.Member x)
        Returns the multiplication of this matrix by a scalar.
        Parameters:
        x - a ring member
      • scalarMultiply

        public AbstractIntegerMatrix scalarMultiply(int x)
        Returns the multiplication of this matrix by a scalar.
        Parameters:
        x - a int.
        Returns:
        a int matrix.
      • scalarDivide

        public final VectorSpace.Member scalarDivide(Field.Member x)
        Returns the division of this matrix by a scalar. Always throws an exception.
        Parameters:
        x - a field member
      • scalarProduct

        public int scalarProduct(AbstractIntegerMatrix m)
        Returns the scalar product of this matrix and another.
        Parameters:
        m - a int matrix.
        Throws:
        MatrixDimensionException - If the matrices are different sizes.
      • multiply

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

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

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.