I'm a very noob at Boost::uBLAS.
I have a function which take a ublas::matrix_expression<double>
as input:
namespace ublas = boost::numeric::ublas;
void Func(const ublas::matrix_expression<double>& in,
ublas::matrix_expression<double>& out);
A caller is holding a row vector as ublas::vector<double>
, and I want it to be passed to Func
.
Until now I have not found any way to do this.
What is the best way, preferably without any temporary allocation?
Thanks.