问题描述
我需要在我的程序中解决一个线性方程组。是否有一个简单的线性代数库的C ++,最好由不超过几个标题?我一直在寻找近一个小时,所有的那些我发现需要搞砸的Linux,编译DLL在MinGW等等(我使用Visual Studio 2008。)
我认为Eigen是你要找的。 p>
它是一个头文件库,并在许多编译器上编译。它甚至使用异国情调组装更快的数学。
这是显示线性求解器api的页面。
它有一些简单api的解算器。
I need to solve a system of linear equations in my program. Is there a simple linear algebra library for C++, preferably comprised of no more than a few headers? I've been looking for nearly an hour, and all the ones I found require messing around with Linux, compiling DLLs in MinGW, etc. etc. etc. (I'm using Visual Studio 2008.)
I think Eigen is what you're looking for.
http://eigen.tuxfamily.org/index.php?title=Main_Page
It is a headers only library and compiles on many compilers. It even uses exotic assembly for faster math.
This is the page that shows off the linear solver api.
http://eigen.tuxfamily.org/dox-2.0/TutorialAdvancedLinearAlgebra.html
It has a few solvers with a simple api.
这篇关于C ++中的线性方程组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!