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

ApplyTest3() private method

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

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

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