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

DivideTest3() private method

private DivideTest3 ( ) : void
return void
        public void DivideTest3()
        {
            double[,] a = 
            {
                { 1,     0,     5 },
                { 1,     2,     1 },
                { 0,     6,     1 },
                { 2,     6,     5 },
                { 2,     1,     1 },
                { 5,     1,     1 }
            };

            var stra = a.ToString(OctaveMatrixFormatProvider.InvariantCulture);

            double[,] b =
            {
                { 1, 0, 0 },
                { 0, 1, 0 },
                { 0, 0, 1 },
            };

            var strb = b.ToString(OctaveMatrixFormatProvider.InvariantCulture);

            double[,] actual = Matrix.Divide(a, b);
            Assert.IsTrue(Matrix.IsEqual(a, actual, 1e-3));

            actual = Matrix.Divide(a.ToJagged(), b.ToJagged()).ToMatrix();
            Assert.IsTrue(Matrix.IsEqual(a, actual, 1e-3));
        }
MatrixTest