#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/ublas/io.hpp>
int main () {
using namespace boost::numeric::ublas;
vector<double> v (3);
for (unsigned i = 0; i < v.size (); ++ i)
v (i) = i;
std::cout << v << std::endl;
return 0;
}
I2luY2x1ZGUgPGJvb3N0L251bWVyaWMvdWJsYXMvdmVjdG9yLmhwcD4KI2luY2x1ZGUgPGJvb3N0L251bWVyaWMvdWJsYXMvaW8uaHBwPgoKaW50IG1haW4gKCkgewogICAgdXNpbmcgbmFtZXNwYWNlIGJvb3N0OjpudW1lcmljOjp1YmxhczsKICAgIHZlY3Rvcjxkb3VibGU+IHYgKDMpOwogICAgZm9yICh1bnNpZ25lZCBpID0gMDsgaSA8IHYuc2l6ZSAoKTsgKysgaSkKICAgICAgICB2IChpKSA9IGk7CiAgICBzdGQ6OmNvdXQgPDwgdiA8PCBzdGQ6OmVuZGw7CiAgICByZXR1cm4gMDsKfQ==