How do you make a matrix out of vectors in eigen?

c++, eigen, matrix, vector

Solution

You can also append them using the comma initializer syntax:

m << v1, v2, v3, v4;

The matrix `m` must have been properly resized first.

Problem

I have four column vectors. I need to append them to make a four by four matrix. Is there a constructor or something for that?

Original source

Related problems