Looking for a C++ open source matrix storage library [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this questionThe library needs to:
- record vector or matrices in "frames" (timestamped)
- enable multiple streams and markers
It would be good if the library:
- had a BSD licence
- was well documented
- was wri开发者_开发技巧tten in C++
- enabled non-linear access
I have found a library that is very interesting and does points (1) and (2): SDIF. But the documentation is lacking and the license is LGPL.
Any recommendations ?
What about boost ublas? The boost license that ublas uses looks pretty liberal but IANAL.
I stumbled across Armadillo. It is LGPL. Well documented though.
As I have just suggested, Eigen is the way a matrix library in C++ should be.
Eigen is definitely the best matrix library in C++ at the moment.
http://eigen.tuxfamily.org/index.php?title=Main_Page
I warmly suggest you.
For example this code creates a random 10x10 matrix and compute its inverse:
MatrixXd A(10,10); A.setRandom(10,10); MatrixXd B = A.inverse(); you can have access to all numerical matrix algebra things, such as decompositions, linear system solving and other geometry algorithms.
It's only headers, no external dependency, no installation. It works for a large range of compilers and is very well mantained and documented.
精彩评论