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

InsertRowTest4() private method

private InsertRowTest4 ( ) : void
return void
        public void InsertRowTest4()
        {
            double[][] a =
            { 
               new double[] { 100.00, 27.56, 33.89},
               new double[] { 27.56, 100.00, 24.76},
               new double[] { 33.89, 24.76, 100.00} 
             };

            Assert.AreEqual(3, a.Length);
            Assert.AreEqual(3, a[0].Length);

            double[][] b = a.InsertColumn(new double[] { 1, 2, 3 });

            Assert.AreEqual(3, a.Length);
            Assert.AreEqual(3, a[0].Length);
            Assert.AreEqual(3, b.Length);
            Assert.AreEqual(4, b[0].Length);

            double[][] c = a.InsertRow(new double[] { 1, 2, 3 });

            Assert.AreEqual(3, a.Length);
            Assert.AreEqual(3, a[0].Length);
            Assert.AreEqual(4, c.Length);
            Assert.AreEqual(3, c[0].Length);

            a = a.InsertColumn(new double[] { 1, 2, 3 })
                 .InsertRow(new double[] { 1, 2, 3 });

            Assert.AreEqual(4, a.Length);
            Assert.AreEqual(4, a[0].Length);
        }
MatrixTest