fork download
  1. #include <boost/numeric/ublas/vector.hpp>
  2. #include <boost/numeric/ublas/io.hpp>
  3.  
  4. int main () {
  5. using namespace boost::numeric::ublas;
  6. vector<double> v (3);
  7. for (unsigned i = 0; i < v.size (); ++ i)
  8. v (i) = i;
  9. std::cout << v << std::endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 15248KB
stdin
Standard input is empty
stdout
[3](0,1,2)