public void SolveSimpleEquation2()
        {
            var mat = new[, ]
            {
                { 3.0, 1.0, 0.0, 0.0 },
                { 2.0, 3.0, 0.0, 0.0 },
                { 0.0, -1.0, 3.0, 1.0 },
                { 0.0, 0.0, 0.5, 3.0 },
            };

            var v      = new[] { 14.0, 21.0, 27.0, 36.5 };
            var output = LinearEquationSolver.SolveTDMA(mat, v);
        }
        public void SolveSimpleEquation()
        {
            var mat = new [, ]
            {
                { 1.0, 0.0, 0.0, 0.0 },
                { 0.0, 1.0, 0.0, 0.0 },
                { 0.0, 0.0, 1.0, 0.0 },
                { 0.0, 0.0, 0.0, 1.0 },
            };

            var v      = new[] { 3.0, 5.0, 7.0, 8.0 };
            var output = LinearEquationSolver.SolveTDMA(mat, v);
        }