sample3_6.cs

来自「用于矩阵的各种运算」· CS 代码 · 共 39 行

CS
39
字号
/*
 * 示例程序Sample3_6: Matrix类的托伯利兹矩阵求逆的埃兰特方法
 */

using System;
using CSharpAlgorithm.Algorithm;

namespace CSharpAlgorithm.Sample
{
	class Class1
	{
		[STAThread]
		static void Main(string[] args)
		{
            // 矩阵数据
            double[] mtxData7 = {
                                    10, 5, 4, 3, 2, 1,
                                    -1,10, 5, 4, 3, 2,
                                    -2,-1,10, 5, 4, 3,
                                    -3,-2,-1,10, 5, 4,
                                    -4,-3,-2,-1,10, 5,
                                    -5,-4,-3,-2,-1,10};

            // 构造矩阵
            Matrix mtx7 = new Matrix(6, mtxData7);

            // 托伯利兹矩阵求逆的埃兰特方法
            if (mtx7.InvertTrench())
            {
                Console.WriteLine(mtx7);
            }
            else
            {
                Console.WriteLine("失败");
            }		
        }
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?