Class GeneralEvD<N extends java.lang.Comparable<N>>

    • Method Detail

      • checkAndDecompose

        public boolean checkAndDecompose​(MatrixStore<N> matrix)
        Description copied from interface: MatrixDecomposition.Hermitian
        Absolutely must check if the matrix is hermitian or not. Then, depending on the result different paths can be chosen - compute or not / choose different algorithms...
        Parameters:
        matrix - A matrix to check and then (maybe) decompose
        Returns:
        true if the hermitian check passed and decomposition succeeded; false if not
      • getDeterminant

        public final N getDeterminant()
        Description copied from interface: MatrixDecomposition.Determinant

        A matrix' determinant is the product of its eigenvalues.

        Returns:
        The matrix' determinant
      • getTrace

        public final ComplexNumber getTrace()
        Description copied from interface: Eigenvalue
        A matrix' trace is the sum of the diagonal elements. It is also the sum of the eigenvalues. This method should return the sum of the eigenvalues.
        Returns:
        The matrix' trace
      • isHermitian

        public final boolean isHermitian()
        Description copied from interface: Eigenvalue
        If [A] is hermitian then [V][D][V]-1 becomes [Q][D][Q]H...
      • isOrdered

        public boolean isOrdered()
        Description copied from interface: Eigenvalue
        The eigenvalues in D (and the eigenvectors in V) are not necessarily ordered. This is a property of the algorithm/implementation, not the data.
        Returns:
        true if they are ordered
      • makeInverse

        protected final MatrixStore<N> makeInverse()