高斯约旦消除nxm矩阵 [英] Gauss jordan elimination for nxm matrix

查看:82
本文介绍了高斯约旦消除nxm矩阵的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对不起,我是新来的。我搜索完全代码Gauss Jordan消除NxM矩阵。但我找不到它。你能帮助我吗?示例矩阵5 * 9:



Sorry, I am new here. I searching full code Gauss Jordan Elimination for NxM matrix.But I couldnt find it. Can you help me? Example matrix 5*9 :

0 -1 -1 0  0 0 0  0 -400 
0  0  0 0  1 0 0  0  50  
0  0  0 0 -1 0 0  0 -50  
0 -1  0 0  0 0 0 -1 -150
0  0 -1 0  0 0 0  1 -250





(C / C ++)



我尝试了什么:



对不起,我是新来的。我搜索完全代码Gauss Jordan消除NxM矩阵。但我找不到它。你能帮助我吗?示例矩阵5 * 9:





(C/C++)

What I have tried:

Sorry, I am new here. I searching full code Gauss Jordan Elimination for NxM matrix.But I couldnt find it. Can you help me? Example matrix 5*9 :

0 -1 -1 0  0 0 0  0 -400 
0  0  0 0  1 0 0  0  50  
0  0  0 0 -1 0 0  0 -50  
0 -1  0 0  0 0 0 -1 -150
0  0 -1 0  0 0 0  1 -250





(C / C ++)



(C/C++)

推荐答案

我们不是代码订购服务:我们更愿意帮助那些有问题的人但问题是我不想自己做然后我们不太可能提供帮助。



根据0x01AA的建议: Google:Gauss Jordan Elimination [ ^ ]
We aren't a "code to order" service: we are more that willing to help people who have problems but when the problem is "I don't want to do it myself" then we aren;t likely to assist much.

As suggested by 0x01AA: Google: Gauss Jordan Elimination[^]


oldie goldie C中的数字配方 [ ^ ]本书在这个主题上有一个(或两个)部分。

本书提供了相关的代码。
The oldie goldie Numerical recipes in C[^] book has a section (or two) on this very topic.
The book provides the relevant code.


我不得不在这里不同意Griff。欺骗家庭作业是错误的,但共享代码是代码项目的重点。谷歌是一个良好的开端,但如果您正在寻找源代码,那么有一些地方可以更好地关注您的搜索。当然还有sourceforge.net和github.com。检查您的Linux发行版,看看您需要的软件包是否可用。 (如果你不运行Linux,那么启动永远都不会太晚。)rosettacode.org在许多编程语言中解决了1000个问题。不要忘记维基百科。正确的源代码往往会从维基百科页面中删除,因此您可以查看文章历史记录以查看它是否是旧版本。

由于这是一个数字问题,因此有更多特定资源。 netlib.org拥有一系列已经发展超过30年的科学家使用的代码。具有特殊历史意义的是SLATEC,这是由美国核武器实验室开发并进入公共领域的图书馆。此外,从民用方面来看,标准局核心数学图书馆: ACMD软件产品| NIST [ ^ ]。

在Visual Basic中的codeproject.com上有项目(高精度原生高斯消除 [ ^ ])和C#(线性方程求解器 - 高斯消除(C#) [ ^ ])您正在寻找的内容可以在网上找到rosettacode: [< a href =http://www.rosettacode.org/wiki/Gaussian_elimination#Ctarget =_ blanktitle =New Window> Gaussian Elimination - Rosetta Code ]。一半的工程师知道目录中的内容。
I have to disagree with Griff here. Cheating on homework is wrong, but sharing code is the whole point of codeproject. Google is a good start, but if you are looking for source code, there are places to better focus your search. There are sourceforge.net, and github.com of course. Check your Linux distribution and see if what you need is available as a software package. (If you don't run Linux, it's never too late to start.) rosettacode.org has 1000 problems solved in dozens of programming languages. Don't forget wikipedia. Correct source code tends to get deleted from wikipedia pages, so you can check the article history to see if it was in an old edition.
Since this is a numerical problem, there are more specific resources. netlib.org has a collection of code used by scientists that has been grown over 30 years. Of special historic importance is SLATEC, the library developed by the US nuclear weapons labs and placed into the public domain. Also, from the civilian side, look into the Bureau of Standards Core Mathematical Library: ACMD Software Products | NIST[^] .
There are projects right here at codeproject.com in Visual Basic ( High precision native Gaussian Elimination[^]) and in C# ( Linear Equation Solver - Gaussian Elimination (C#)[^]) What you are looking for is available on the web from rosettacode: [Gaussian Elimination - Rosetta Code]. Half of engineering is knowing what's in the catalog.


这篇关于高斯约旦消除nxm矩阵的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆