Class Eig.EigMatrix

  • Enclosing interface:
    Eig<T>

    public static final class Eig.EigMatrix
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double cdivi  
      private double cdivr  
      private double[] d
      Arrays for internal storage of eigenvalues.
      private double[] e
      Arrays for internal storage of eigenvalues.
      private static double EPSILON  
      private double[][] H
      Array for internal storage of nonsymmetric Hessenberg form.
      private boolean issymmetric
      Symmetry flag.
      private int n
      Row and column dimension (square matrix).
      private double[] ort
      Working storage for nonsymmetric algorithm.
      static long serialVersionUID  
      private double[][] V
      Array for internal storage of eigenvectors.
    • Constructor Summary

      Constructors 
      Constructor Description
      EigMatrix​(Matrix Arg)
      Check for symmetry, then construct the eigenvalue decomposition
    • Field Detail

      • EPSILON

        private static final double EPSILON
      • n

        private final int n
        Row and column dimension (square matrix).
      • issymmetric

        private boolean issymmetric
        Symmetry flag.
      • d

        private final double[] d
        Arrays for internal storage of eigenvalues.
      • e

        private final double[] e
        Arrays for internal storage of eigenvalues.
      • V

        private final double[][] V
        Array for internal storage of eigenvectors.
      • H

        private final double[][] H
        Array for internal storage of nonsymmetric Hessenberg form.
      • ort

        private final double[] ort
        Working storage for nonsymmetric algorithm.
      • cdivr

        private transient double cdivr
      • cdivi

        private transient double cdivi
    • Constructor Detail

      • EigMatrix

        public EigMatrix​(Matrix Arg)
        Check for symmetry, then construct the eigenvalue decomposition
        Parameters:
        A - Square matrix
    • Method Detail

      • tred2

        private final void tred2()
      • tql2

        private final void tql2()
      • orthes

        private final void orthes()
      • cdiv

        private final void cdiv​(double xr,
                                double xi,
                                double yr,
                                double yi)
      • hqr2

        private final void hqr2()
      • getRealEigenvalues

        public final double[] getRealEigenvalues()
        Return the real parts of the eigenvalues
        Returns:
        real(diag(D))
      • getImagEigenvalues

        public final double[] getImagEigenvalues()
        Return the imaginary parts of the eigenvalues
        Returns:
        imag(diag(D))
      • getD

        public final DenseDoubleMatrix2D getD()
        Return the block diagonal eigenvalue matrix
        Returns:
        D