Accord.Tests.Math.GeneralizedEigenvalueDecompositionTest.GeneralizedEigenvalueDecompositionConstructorTest2 C# (CSharp) Метод

GeneralizedEigenvalueDecompositionConstructorTest2() приватный Метод

private GeneralizedEigenvalueDecompositionConstructorTest2 ( ) : void
Результат void
        public void GeneralizedEigenvalueDecompositionConstructorTest2()
        {
            double[,] A = Matrix.Identity(100);
            double[,] B = Matrix.Identity(100);

            GeneralizedEigenvalueDecomposition gevd = new GeneralizedEigenvalueDecomposition(A, B);

            double[,] expectedVectors = Matrix.Identity(100);
            double[,] expectedValues = Matrix.Identity(100);

            Assert.IsTrue(Matrix.IsEqual(gevd.Eigenvectors, expectedVectors));
            Assert.IsTrue(Matrix.IsEqual(gevd.DiagonalMatrix, expectedValues));
        }