Accord.Tests.Math.MatrixTest.PowerTest2 C# (CSharp) Method

PowerTest2() private method

private PowerTest2 ( ) : void
return void
        public void PowerTest2()
        {
            double[,] a = Matrix.Magic(5);
            double[,] expected =
            {
                { 233699250, 233153250, 230181625, 230588750, 232667750 },
                { 233231250, 231525875, 230557375, 231902000, 233074125 },
                { 230869500, 229869750, 232058125, 234246500, 233246750 },
                { 231042125, 232214250, 233558875, 232590375, 230885000 },
                { 231448500, 233527500, 233934625, 230963000, 230417000 },
            };

            double[,] actual = Matrix.Power(a, 5);

            Assert.IsTrue(Matrix.IsEqual(expected, actual));
        }
        #endregion
MatrixTest