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

Class AbstractComplexMatrix

    • Method Detail

      • equals

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

        public final boolean equals(AbstractComplexMatrix m)
        Compares two complex 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 complex 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
      • real

        public AbstractDoubleMatrix real()
        Returns the real part of this complex matrix.
        Returns:
        a double matrix
      • imag

        public AbstractDoubleMatrix imag()
        Returns the imaginary part of this complex matrix.
        Returns:
        a double matrix
      • getElement

        public abstract Complex 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.
      • getRealElement

        public abstract double getRealElement(int i,
                                              int j)
        Returns the real part of 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.
      • getImagElement

        public abstract double getImagElement(int i,
                                              int j)
        Returns the imag part of 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,
                                        Complex z)
        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
        z - a complex number
        Throws:
        MatrixDimensionException - If attempting to access an invalid element.
      • setElement

        public abstract void setElement(int i,
                                        int j,
                                        double x,
                                        double y)
        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 - the real part of a complex number
        y - the imaginary part of a complex number
        Throws:
        MatrixDimensionException - If attempting to access an invalid element.
      • getSet

        public java.lang.Object getSet()
      • infNorm

        public double 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 AbstractComplexMatrix scalarMultiply(Complex z)
        Returns the multiplication of this matrix by a scalar.
        Parameters:
        z - a complex number
        Returns:
        a complex matrix
      • scalarMultiply

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

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

        public AbstractComplexMatrix scalarDivide(Complex z)
        Returns the division of this matrix by a scalar.
        Parameters:
        z - a complex number
        Returns:
        a complex matrix
      • scalarDivide

        public AbstractComplexMatrix scalarDivide(double x)
        Returns the division of this matrix by a scalar.
        Parameters:
        x - a double
        Returns:
        a complex matrix
      • multiply

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

        public AbstractComplexMatrix hermitianAdjoint()
        Returns the hermitian adjoint of this matrix.
        Returns:
        a complex matrix
      • conjugate

        public AbstractComplexMatrix conjugate()
        Returns the complex conjugate of this matrix.
        Returns:
        a complex matrix
      • transpose

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

        public AbstractComplexMatrix mapElements(ComplexMapping f)
        Applies a function on all the matrix elements.
        Parameters:
        f - a user-defined function
        Returns:
        a complex matrix

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.