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

ApplyInPlaceTest() private method

private ApplyInPlaceTest ( ) : void
return void
        public void ApplyInPlaceTest()
        {
            float[] vector = { 1, 2, 3 };
            Func<float, int, float> func = (x, i) => x + i;
            Matrix.Apply(vector, func, vector);
            float[] expected = { 1, 3, 5 };

            Assert.IsTrue(expected.IsEqual(vector));
        }
MatrixTest