C ++中的线性方程组?

编程入门 行业动态 更新时间:2024-10-26 10:40:09
本文介绍了C ++中的线性方程组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我需要在我的程序中解决一个线性方程组。是否有一个简单的线性代数库的C ++,最好由不超过几个标题?我一直在寻找近一个小时,所有的那些我发现需要搞砸的Linux,编译DLL在MinGW等等(我使用Visual Studio 2008。)

解决方案

我认为Eigen是你要找的。

eigen.tuxfamily/index.php?title=Main_Page

它是一个头文件库,并在许多编译器上编译。它甚至使用异国情调组装更快的数学。

这是显示线性求解器api的页面。

eigen.tuxfamily/dox-2.0/TutorialAdvancedLinearAlgebra.html

它有一些简单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.

eigen.tuxfamily/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.

eigen.tuxfamily/dox-2.0/TutorialAdvancedLinearAlgebra.html

It has a few solvers with a simple api.

更多推荐

C ++中的线性方程组?

本文发布于:2023-11-30 14:49:48,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1650395.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:线性方程组

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!