예제 #1
0
        public double[] CalculateEigenvalues()
        {
            //    Matrix eignVectors = CalculateEigenvector();

            //    double[] result = new double[eignVectors.NumberOfColumns];

            //    for (int i = 0; i < eignVectors.NumberOfColumns; i++)
            //    {
            //        Matrix tempEigenvector = new Matrix(NumberOfRows, 1);

            //        tempEigenvector.SetColumn(0, eignVectors.GetColumn(i));

            //        Matrix tempMultiplication = this * tempEigenvector;

            //        result[i] = tempMultiplication[0, 0] / tempEigenvector[0, 0];
            //    }

            //    return result;

            EigenvaluesEigenvectors result = GetEigenvaluesEigenvectors();

            return(result.Eigenvlaues);
        }
예제 #2
0
        //
        #region EigenvaluesEigenvectors

        public Matrix CalculateEigenvector()
        {
            EigenvaluesEigenvectors result = GetEigenvaluesEigenvectors();

            return(result.EigenvectorMatrix);
        }