Having two vectors:
Eigen::VectorXd A;
A << 1, 2, 3, 4;
Eigen::VectorXd B;
B << 1, 2, 3;
How to create following matrix C from vectors A and B? Matrix columns are equal to vector A, the elements of vector B are matrix column factors.
Eigen::MatrixXd C;
C << 1, 2, 3,
2, 4, 6,
3, 6, 9,
4, 8, 12;