I'm searching for a C++ library to solve linear equation systems. The problem is we need to use a special (rational) data type. Is there any templated library for this purpose?
Asked
Active
Viewed 1,198 times
2
-
possible duplicate of [System of linear equations in C++?](http://stackoverflow.com/questions/2474432/system-of-linear-equations-in-c) – djf Jul 02 '13 at 13:50
-
Belongs on http://google.stackexchange.net – Lightness Races in Orbit Jul 02 '13 at 13:51
-
@djf: it's not a duplicate because a _templated_ library is required. The answers below are already helpful, thanks a lot! – Geom Jul 02 '13 at 14:03
2 Answers
3
Take a look into Eigen:
"Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms"

Prashant Kumar
- 20,069
- 14
- 47
- 63
2
I believe this library may be what you're looking for. It is templated http://www.boost.org/doc/libs/1_54_0/libs/numeric/ublas/doc/index.htm

Salgar
- 7,687
- 1
- 25
- 39