Class SymmetricEigenFor2x2Matrix

  • All Implemented Interfaces:
    Spectrum

    public class SymmetricEigenFor2x2Matrix
    extends Object
    implements Spectrum
    Computes the eigen decomposition of a 2-by-2 symmetric matrix in the following form by symmetric QR algorithm. \[ \begin{bmatrix} a & b\\ b & c \end{bmatrix} \]
    • Constructor Detail

      • SymmetricEigenFor2x2Matrix

        public SymmetricEigenFor2x2Matrix​(double a,
                                          double b,
                                          double c)
    • Method Detail

      • getEigenvectors

        public List<Vector> getEigenvectors()
        Gets the eigenvectors.
        Returns:
        the 2 eigenvectors
      • getEigenvalues

        public List<Double> getEigenvalues()
        Description copied from interface: Spectrum
        Get all the eigenvalues.
        Specified by:
        getEigenvalues in interface Spectrum
        Returns:
        the eigenvalues