I am trying something which I would think is relatively simple but am at a loss how to do it. I have a function which as an argument takes a boost::numeric::ublas::vector, instead of having to declare the vector beforehand I want to be able to just declare it inside the function as rvalue, is this possible with boost::numeric::ublas::vector?
Now I do it like this
boost::numeric::ublas::vector<double> point(3);
point <<= 1, 2, 3;
test(point);
I would like to do it something like this, which is possible for normal std::vectors with list initialization.
test( {1,2,3} )
Is this possible or can't you do it with boost::numeric::ublas::vector this way?