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

ApplyTest4() private method

private ApplyTest4 ( ) : void
return void
        public void ApplyTest4()
        {
            double[,] data =
            { 
                { 42, 1, -5 }, 
                { 42, 1, -5 }, 
            };

            Func<double, int> func = x => (int)(x - x);

            int[,] actual;
            int[,] expected =
            { 
                { 0, 0, 0 }, 
                { 0, 0, 0 }, 
            };

            actual = Matrix.Apply(data, func);
            Assert.IsTrue(expected.IsEqual(actual));
            Assert.AreNotEqual(actual, data);
        }
MatrixTest