I have this:
using namespace boost::numeric::ublas;
matrix<double> m (3, 2);
int k = 0;
for (int j = 0; j < m.size1 (); j++) {
for (int i = 0; i < m.size2 (); i++)
m (j, i) = k++;
}
m =
0 1
2 3
4 5
And I need to append another matrix m2 to m
matrix<double> m2 (3, 1);
k = 0;
for (int i = 0; i < m2.size2 (); i++)
m (i, 0) = k++;
m2 =
0
1
2
So, what I need to do to have this
m =
0 1 0
2 3 1
4 5 2
Where can I find more information about operations like this? I ask because the information on http://www.boost.org/doc/libs/1_43_0/libs/numeric/ublas/doc/index.htm resembles more like an API, and it has not been so useful so far.