|
Ublas : |
From: Hongyu Miao (jackymiao_at_[hidden])
Date: 2007-11-08 10:46:02
Hi, All
I found it is not so convenient to forcely convert between vector and column/row(matrix). This situation usually happens when I do this:
uBlas::matrix<double> A(3,3);
norm_2(column(A,1));
and I get a compiling error message which says "cannot convert parameter 1 from 'boost::numeric::ublas::matrix_column<double>' to boost::numeric::ublas::vector<double>". Now I have to write my codes like this
norm_2(boost::numeric::ublas::vector<double>(column(A,1)));
Is there any reason a smooth automatical convertion can not be done?
Thanks,
Hongyu