Class SymmPackEVD


  • public class SymmPackEVD
    extends java.lang.Object
    Computes eigenvalues of symmetrical, packed matrices
    • Constructor Detail

      • SymmPackEVD

        public SymmPackEVD​(int n,
                           boolean upper)
        Sets up an eigenvalue decomposition for symmetrical, packed matrices. Computes all eigenvalues and eigenvectors
        Parameters:
        n - Size of the matrix
        upper - True if the upper part of the matrix is stored, and false if the lower part of the matrix is stored instead
      • SymmPackEVD

        public SymmPackEVD​(int n,
                           boolean upper,
                           boolean vectors)
        Sets up an eigenvalue decomposition for symmetrical, packed matrices
        Parameters:
        n - Size of the matrix
        upper - True if the upper part of the matrix is stored, and false if the lower part of the matrix is stored instead
        vectors - True to compute the eigenvectors, false for just the eigenvalues
    • Method Detail

      • factorize

        public static SymmPackEVD factorize​(Matrix A)
                                     throws NotConvergedException
        Convenience method for computing the full eigenvalue decomposition of the given matrix
        Parameters:
        A - Matrix to factorize. Upper part extracted, and the matrix is not modified
        Returns:
        Newly allocated decomposition
        Throws:
        NotConvergedException
      • getEigenvalues

        public double[] getEigenvalues()
        Gets the eigenvalues (stored in ascending order)
      • getEigenvectors

        public DenseMatrix getEigenvectors()
        Gets the eigenvectors, if available
      • hasEigenvectors

        public boolean hasEigenvectors()
        True if the eigenvectors have been computed