📄 sample3_8.cs
字号:
/*
* 示例程序Sample3_8: Matrix类的求矩阵秩的全选主元高斯消去法
*/
using System;
using CSharpAlgorithm.Algorithm;
namespace CSharpAlgorithm.Sample
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
// 矩阵数据
double[] mtxData9 = {
3.0,-3.0,-2.0,4.0,
5.0,-5.0,1.0,8.0,
11.0,8.0,5.0,-7.0,
5.0,-1.0,-3.0,-1.0};
// 构造矩阵
Matrix mtx9 = new Matrix(4, mtxData9);
// 求矩阵秩的全选主元高斯消去法
int rankValue = mtx9.ComputeRankGauss();
Console.WriteLine(rankValue.ToString());
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -