I have two Eigen::MatrixXd
and they always have a single row. The input matrix is A
and I want to copy this matrix into another matrix B
, but the number of columns between the matrices can be different.
Following is an example:
A
0.5
And I need to create a B
matrix of 1 rows and 4 columns, so that it will be:
B
0.5 0.5 0.5 0.5
But if A
is:
A
1 0.5
Then B
will be
B
1 0.5 1 0.5
How can I do?