Boost:uBLAS
lastmod 2022-06-29created 2015-04-034 edits
Provides matrix and vector classes for basic linear algebra.
Matrix
The templated class matrix
Example
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/io.hpp>
int main () {
using namespace boost::numeric::ublas;
matrix<double> m (3, 3);
for (unsigned i = 0; i < m.size1 (); ++ i)
for (unsigned j = 0; j < m.size2 (); ++ j)
m (i, j) = 3 * i + j;
std::cout << m << std::endl;
}
See also
Pages that link here