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

GetIndicesTest() private method

private GetIndicesTest ( ) : void
return void
        public void GetIndicesTest()
        {
            double[,] v = Matrix.Ones(2, 3);
            int[][] idx = v.GetIndices().ToArray();
            Assert.IsTrue(idx.IsEqual(Jagged.Create(new [,] 
                {
                    {0, 0}, 
                    {0, 1}, 
                    {0, 2}, 
                    {1, 0}, 
                    {1, 1}, 
                    {1, 2},
                })));
        }
MatrixTest