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

OuterProductTest() private method

private OuterProductTest ( ) : void
return void
        public void OuterProductTest()
        {
            double[] a = { 1, 2, 3, 4 };
            double[] b = { 1, 2, 3, 4 };
            double[,] expected = 
            {
                { 1.000,  2.000,  3.000,  4.000 },
                { 2.000,  4.000,  6.000,  8.000 },
                { 3.000,  6.000,  9.000, 12.000 },
                { 4.000,  8.000, 12.000, 16.000 }
            };

            double[,] actual;
            actual = Matrix.OuterProduct(a, b);
            Assert.IsTrue(expected.IsEqual(actual));
        }
MatrixTest