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

FindTest() private method

private FindTest ( ) : void
return void
        public void FindTest()
        {
            double[,] data = 
            {
                { 1, 2, 0, 3 },
                { 1, 0, 1, 3 },
            };

            Func<double, bool> func = x => x == 0;
            bool firstOnly = false;
            int[][] expected = 
            {
                new int[] { 0, 2 },
                new int[] { 1, 1 },
            };

            int[][] actual = Matrix.Find(data, func, firstOnly);
            Assert.IsTrue(expected.IsEqual(actual));
        }
MatrixTest