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

ElementwiseMultiplyTest2() private method

private ElementwiseMultiplyTest2 ( ) : void
return void
        public void ElementwiseMultiplyTest2()
        {
            int[,] a = 
            {
                { 1, -5 },
                { 2,  0 },
            };

            int[,] b = 
            {
                { -6, -5 },
                {  2,  9 },
            };

            int[,] expected = 
            {
                { -6, 25 },
                {  4,  0 },
            };

            int[,] actual = Elementwise.Multiply(a, b);
            Assert.IsTrue(expected.IsEqual(actual));
        }
MatrixTest