2

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?

Geom
  • 827
  • 4
  • 15

2 Answers2

3

Take a look into Eigen:
"Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms"

http://eigen.tuxfamily.org/index.php?title=Main_Page

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