⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 applications.cs

📁 C#矩阵运算类
💻 CS
字号:
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Collections.Generic;
using System.Text;
using NumericRcipes;

namespace LevelSet
{
    class Applications 
    {
      
        
        static void Main(string[] args)
        {
            //NRMatrix A = new NRMatrix(100, 100);
            //double h = 1.0;
            //Point[] BP = new Point[2];
            //BP[0].X = 20; BP[0].Y = 20;
            //BP[1].X = 50; BP[1].Y = 40;
            //NR.FastSweeping2D(A, BP, h);
            //A.Save2Txt(@"C:\distance.txt");
            
            //MessageBox.Show (A.ToString());
            //MessageBox.Show("Good!");

            //double[,] a = new double[,] { { 4, 1, -2 }, { 2, 2, 1 }, { 3, 1, -1 } };
            //double[,] b = new double[,] { { 1, -3 }, { 2, 2 }, { 3, -1 } };
            //double[,] a = new double[,]{{1,2,3,4,5},{2,2,3,4,5},{3,3,3,4,5},
            //    {4,4,4,4,5},{5,5,5,5,5}};
            //double[,] a = new double[,] { { 1.0, 2.0, 3.0, 4.0, 5.0 }, { 5.0, 1.0, 2.0, 3, 4 }, { 4, 5, 1, 2, 3 }, { 3, 4.0, 5.0,1,2 }, { 2, 3, 4, 5.0,1 } };
            //double[,] a = new double[,] { {1.4 ,2.1 ,2.1 ,7.4 ,9.6},{1.6, 1.5 ,1.1, 0.7, 5.0},{3.8 ,8.0, 9.6, 5.4, 8.8},{4.6 ,8.2 ,8.4,0.4, 8.0},{2.6, 2.9, 0.1, 9.6, 7.7} };
            //double[] b=new double[]{4.0 ,9.3, 8.4 ,0.4, 4.1};
            //NRVec B = new NRVec(b);
            //NRMatrix A = new NRMatrix(a);
            ////NRMatrix B = new NRMatrix(b);
            //NRMatrix result,solution;
            //int[] index;
            //int d;
            //NR.LUdcmp(out result, out index,out d,A);
            //Console.WriteLine(result.ToString());
           // Console.WriteLine(inverse.ToString());
           // Console.WriteLine(solution.ToString());
           
           //Console.WriteLine((A * inverse).ToString());
           //Console.WriteLine((A*solution).ToString());

        }
    }
}

⌨️ 快捷键说明

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