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

ApplyTest() private method

private ApplyTest ( ) : void
return void
        public void ApplyTest()
        {
            double[] data = { 42, 1, -5 };
            Func<double, double> func = x => x - x;

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

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

            Matrix.ApplyInPlace(data, func);
            Assert.IsTrue(expected.IsEqual(data));
        }
MatrixTest