Ejemplo n.º 1
0
        private void DivTest()
        {
            var MatA = new NMatrix(2, 3,
                                   new double[]
            {
                1, 2, 3, 4, 5, 6
            });
            var MatDiv    = MatA.Div(-2);
            var MatAnswer = new NMatrix(MatA.Row, MatA.Col,
                                        new double[] {
                -0.5, -1, -1.5,
                -2, -2.5, -3
            });

            Assert.True(MatAnswer.Equals(MatDiv));
        }