【发布时间】:2013-01-11 13:57:13
【问题描述】:
为什么会这样?它不在任何地方的文档中......
#include <iostream>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/io.hpp>
int main()
{
boost::numeric::ublas::matrix<double> twoByTwoMat(2,2,-2);
std::cout << "This is the matrix: " << twoByTwoMat << std::endl;
return 0;
}
输出:
This is the matrix: [2,2]((-2,-2),(-2,-2))
【问题讨论】:
标签: c++ boost boost-ublas